commit | 7ccbeca538b5a67367436039e795def6408e866b | [log] [tgz] |
---|---|---|
author | Youssef Elghareeb <ghareeb@google.com> | Tue Dec 14 11:06:06 2021 +0100 |
committer | Youssef Elghareeb <ghareeb@google.com> | Tue Dec 14 12:02:17 2021 +0100 |
tree | 2dfe2683f37a7f3a7fca460d84247a211d3d9f33 | |
parent | 404d7efe2ea583eaa1419e9fec7e97a904994228 [diff] |
Adapt to changes in gerrit core Change I314ae829f made it so that we evaluate change submittability based on submit requirements instead of submit rules. Submit rules are still evaluated transitively through submit requirements. Adapting assert statements in code owners tests according to this change. Change-Id: I1b489614832353f3895d90766a5225f4e7e675ba
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.
Also see resources/Documentation/about.md.
IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md.
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/code-owners/ui:code-owners cp -f bazel-bin/plugins/code-owners/ui/code-owners.js plugins/
and let the Dev Helper redirect from .+/plugins/code-owners/static/code-owners.js
to http://localhost:8081/plugins_/code-owners.js
.