commit | 42ccc56e0558db9a7ea5870ac018c1ad3c4f9080 | [log] [tgz] |
---|---|---|
author | Nitzan Gur-Furman <nitzan@google.com> | Thu Sep 21 19:58:02 2023 +0000 |
committer | Nitzan Gur-Furman <nitzan@google.com> | Thu Sep 21 20:01:49 2023 +0000 |
tree | f598cf33695e3436e47c79ddeb7268ca1d80fd08 | |
parent | 37f9da60d3cca556efe59728bfc4c08a1abd5e42 [diff] |
Refactor CodeOwnersResolver to use ExternalIdCache directly Some implementations of ExternalIds might not use ExternalIdCache. Change-Id: Iebeda70b144df3daf9a741dd558105bdef5f89c2 Bug: Google b/289357382
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
.