commit | fbc8f4d6a26afe7999912ce8f074f7e9e52ff05d | [log] [tgz] |
---|---|---|
author | Chris Poucet <poucet@google.com> | Tue Sep 20 13:21:25 2022 +0200 |
committer | Chris Poucet <poucet@google.com> | Tue Sep 20 13:29:34 2022 +0200 |
tree | 5053d90904ccfba4a81fac81b24e1003e32b8125 | |
parent | f08b0a474ab7df43255642af1af67ed71adfdb96 [diff] |
Do not show the suggest-owners box if show-suggestions is disabled The solution is to reflect showSuggestions to the attribute 'show-suggestions' and only render the :host attributes for suggest-owners if show-suggestions is present. Screenshot: https://imgur.com/a/lYsrbvu Google-Bug-Id: b/247728198 Release-Notes: skip Change-Id: I44b9d6dbeb53d4a34731fb2c0caddd90d400b76e
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
.