| commit | c89c399d5cb4050e333291ece5bcd08e08952f32 | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <ekempin@google.com> | Thu May 06 13:14:57 2021 +0000 |
| committer | Edwin Kempin <ekempin@google.com> | Fri May 07 13:20:03 2021 +0000 |
| tree | 242fe63dcf95e5a46cf4bc611a3e89ccb86ffbec | |
| parent | 8e07d6e25e669c1d296fdb6eaabcbfc3a9e3ebde [diff] |
CodeOwnerResolver: Split methods to lookup and check accounts CodeOwnerResolver consists out of several steps to resolve code owner emails to code owner accounts. At the moment we iterate over the code owner emails and then execute these steps for each of the emails. Going forward we want to refactor this so that all emails are processed at once (so that each of the steps is executed only once, but with all emails). For this most of the steps will be converted into operations on a stream, e.g. the methods will filter the stream or map entries in the stream. To make this refactoring easier, this change splits the existing methods that lookup accounts and check their visibility into smaller steps that will become stream operations later. The methods are sorted in the order in which the steps are invoked. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: If8e6686ebe4bd144c66d471739a9a39a72115a94
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.