commit | ae7c78e7c59563fc908e3586dc16d62b79f8fb8d | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Mon Jan 17 15:07:12 2022 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Mon Jan 17 15:07:12 2022 +0100 |
tree | aa13ed9d32e8aede7bd071337f24daa00132c827 | |
parent | 95c97bd03e7524613fa2769ed07423bb02b13a68 [diff] |
Stop using deprecated ImmutableMap.Builder#build() method Use buildOrThrow() instead which is equivalent to build() but makes it explicit that the method will throw an exception if there are duplicate keys. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ia26b721880934d61cbef615a149d4773a74b1711
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
.