commit | f5c7c722a27a031823c7618505e287c77999bdb6 | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Thu Jan 20 18:12:53 2022 +0100 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Thu Jan 20 18:12:53 2022 +0100 |
tree | 8fa2b633b02084e20a132755978786104fbb0631 | |
parent | 241ad38e52f2f270b096fa4d561c2e2c7b9cd27c [diff] |
Do not show ADD OWNERS/SUGGEST OWNERS button if a user is not signed in The button opens Reply dialog, which can't work for anonymous user. Also, the GERRIT ui doesn't allow to modify a change for an anonymous user. Hiding the button is consistent with other UI. Google-Bug-Id: b/201687371 Change-Id: Ie11cbc6061aaa52813e7409d706fefce3c6ef1d7
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
.