commit | 37e13d9144400f6c0c4452a9f542cd73b68369bf | [log] [tgz] |
---|---|---|
author | Kaushik Lingarkar <kaushik.lingarkar@linaro.org> | Wed Nov 08 12:39:30 2023 -0800 |
committer | Nasser Grainawi <nasser.grainawi@linaro.org> | Fri Dec 01 15:55:58 2023 -0800 |
tree | 3be443d774d98b138392f0b9c95dede36ea033d7 | |
parent | 8e61b440e562dcba97e1de9130a4a62f8d984f74 [diff] |
Don't show config validation hints when code-owners is disabled These hints don't provide a lot of value and are especially unwanted when a server has lot of projects and code-owners is enabled only on a handful of them. Log a message at fine level so that it's visible from traces that the code owners validation is skipped because the code owners functionality is disabled. Change-Id: Ieb0033351554ed339cba484daf7b7ca6b0614d93
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
.