| commit | 04815f5f664e8abd41097c1c348b9a672321104c | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <ekempin@google.com> | Tue Mar 04 15:25:47 2025 +0000 |
| committer | Edwin Kempin <ekempin@google.com> | Tue Mar 04 07:49:47 2025 -0800 |
| tree | a35fa74d3db962201c1e1abfd8d16804ba4bffa4 | |
| parent | 49016cc1cbcefbb1a6091ed994eef7a4b2ba6c97 [diff] |
Adapt to change in Gerrit core that allows admins to see everything by default Change I44d97259f in Gerrit core allows admins to see everything by default. Hence tests that verify read restrictions need to use a non-admin user now. Change-Id: I0278e2be32b9980f4c1ca769bdb849f94d66ac74 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.