commit | f048a2a764941c9f11c6aa6956c434185ee23341 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Nov 26 12:12:13 2020 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Mon Nov 30 09:54:24 2020 +0100 |
tree | b185fd8ce3e7f99e9e208674a3b75ae593efa7f0 | |
parent | b14cbe4e4ba583c95809555d7787ba3c90534f98 [diff] |
CodeOwnerResolverResult: Include flag if there are unresolved code owners Android wants a configuration option to make all users code owners of paths for which no code owners are defined: 1. if for a path no code owners are defined, the path is owned by all users 2. if for a path code owners are defined, only these users own the path 3. if for a path code owners are defined, but none of them is resolvable the path is owned by no one and changes require an override for submission As a first step for adding such a configuration option we extend CodeOwnerResolverResult with a flag that is set if there are unresolved code owners. This allows callers to differentiate the cases above: 1. codeOwners is empty, ownedByAllUsers = false, hasUnresolvedCodeOwners = false 2. codeOwner is non-empty or ownedByAllUsers = true 3. codeOwners is empty, ownedByAllUsers = false, hasUnresolvedCodeOwners = true Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Iab1abf7a139dcead9e8ccad55b989a00d53ff8fc
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