commit | 290ec30b32489c3acfafea1213cc4c2d2f72f3dd | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Apr 09 15:48:11 2021 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Mon Apr 12 11:05:51 2021 +0200 |
tree | e374f799652cd04a9c8660943cc0ea2dbf1844b4 | |
parent | 0a181a7fa26034fb3f92e95c9269f9cb8aba917c [diff] |
CodeOwnerSubmitRule: Report metric for invalid OWNERS files The count_invalid_code_owner_config_files metric gets already increased in CodeOwnersExceptionHook when an invalid OWNERS file causes a failure. However this hook doesn't get invoked if the error happens in the submit rule (since the submit rule returns a RULE_ERROR rather than throwing an exception). Hence we should increase the count_invalid_code_owner_config_files metric in the code owners submit rule too if a failure is caused by an invalid OWNERS file there. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Idf5849909121e88acfcc65dba88c09ec8d723113
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.