| commit | 1f4904e22f2d90cd59a814a06b5f4fc118fe8c11 | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <ekempin@google.com> | Thu Dec 04 10:18:23 2025 +0000 |
| committer | Edwin Kempin <ekempin@google.com> | Thu Dec 04 13:51:09 2025 +0000 |
| tree | c72f2f3ec806f043cf9f50405b4ad765cde2d2db | |
| parent | 0863f5ceab9ec739ddd6459850e97df50522d03f [diff] |
CheckCodeOwnerConfigFilesInRevision: Get changed files without rename detection CheckCodeOwnerConfigFilesInRevision checks OWNERS files in a revision. For this we do not care about renames and deletions, hence rename detection is not needed here. Change-Id: Iedb2f65698eaae073a61b0e926c5d188af31e45b 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.