commit | 8a9288f3f50a02044c962db604999be8b8626c1e | [log] [tgz] |
---|---|---|
author | Kamil Musin <kamilm@google.com> | Thu Aug 24 14:15:29 2023 +0200 |
committer | Kamil Musin <kamilm@google.com> | Thu Aug 24 14:18:07 2023 +0200 |
tree | ed32df4378e725418b45fa294d8ba9840fb7ea84 | |
parent | 21078b561261ede7e643578ba650ca2a393ca4f7 [diff] |
Use reason as tooltip comment if available. We show generic, "Approved by code-owner" even though more precise information is available Screenshots: https://imgur.com/a/lAlFdT2 Release-Notes: skip Google-Bug-Id: b/184241013 Change-Id: Ic926dac499ebe9e7fb6742880e1eed6db7e9ad2f
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
.