commit | 53a86a8de705b4afa0c5a0ece88ccfead5617067 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Oct 12 11:41:09 2023 +0000 |
committer | Edwin Kempin <ekempin@google.com> | Fri Oct 13 07:54:52 2023 +0000 |
tree | f77edb33f1e88a0037a16cff99af30846ddb2600 | |
parent | 42ccc56e0558db9a7ea5870ac018c1ad3c4f9080 [diff] |
Fix default file name for code owner configs if file extension is configured AbstractFileBasedCodeOwnerBackend#getFileName uses ProjectCache to check whether the project exists since trying to get the code-owners plugin configuration for a non-existing project throws an exception. Bug: Google b/302720443 Change-Id: I65818e7dd875bf4a370e9ce49a87103d55eef0f5 Signed-off-by: Edwin Kempin <ekempin@google.com>
This plugin provides support for defining code owners for files in a repository.
If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.
For a detailed description of the plugin functionality please refer to the plugin documentation.
IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide.
NOTE: The plugin documentation only renders correctly when the plugin is installed in Gerrit and the documentation is accessed via https:///plugins/code-owners/Documentation/index.html. If you want to read the documentation before installing the plugin, you can find it properly rendered here.
From the root of the gerrit repository.
bazel test //plugins/code-owners/web:karma_test
For testing the plugin with the Gerrit FE Dev Helper the command below builds
bazel build //plugins/code-owners/web:code-owners ln -s bazel-bin/plugins/code-owners/web/code-owners.js polygerrit-ui/app/plugins/
and let the Dev Helper redirect from .+/plugins/code-owners/static/code-owners.js
to http://localhost:8081/plugins/code-owners.js
.