commit | 86719c78e0cce706b0c7061564a1ba0087963d14 | [log] [tgz] |
---|---|---|
author | Youssef Elghareeb <ghareeb@google.com> | Thu Oct 14 19:01:47 2021 +0200 |
committer | Youssef Elghareeb <ghareeb@google.com> | Mon Oct 25 14:27:02 2021 +0200 |
tree | b04629d4ecea2791b6e6bec126cee4e05ddf3c0a | |
parent | fb5b95005fb2aa718365ddfc6d3da1c3faa13f26 [diff] |
Add a has:enabled_code-owners and has:approval_code-owners operands Adding two operands to the 'has' predicate: * has:enabled_code-owners * has:approval_code-owners The CodeOwnerApprovalPredicate wraps the existing CodeOwnerSubmitRule logic. The predicate returns true only if the submit rule returns a record with status = "OK". We will need this predicate to create query expressions that depend on code owner approvals in submit requirements. The two new operators work only for submit requirement expressions and are not supported in search queries. Bug: Google b/200665812 Change-Id: I391a0d7fd43528c87ff9dfc7ca981c7dc4d05407
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.