commit | 55c8be3cd099ff9b73f6e7ee53f56faa8ce22309 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Oct 16 11:41:27 2020 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Oct 23 16:02:45 2020 +0200 |
tree | 1ba8cd502ea23e75622a25b252b67d1b94c93554 | |
parent | 46f4ae0d2ff7e5a48c86db316079b5d2759b3a0e [diff] |
Add class that updates all code owner configs in a branch atomically CodeOwnerConfigFileUpdateScanner scans a branch for code owner config files and allows a callback to update them. The callback gets the plain file content, which means that the code owner configs are not parsed. Hence the callback also gets invoked for non-parseable code owner configs. Updates to the code owner configs are committed atomically with a single commit. In case of a no-op the branch is not updated. In a follow-up change we will make use of CodeOwnerConfigFileUpdateScanner to support replacing an email in all code owner config files of a branch. Change-Id: I2113ca172060ddfc97d548ddbbecef19aca5a7e2 Signed-off-by: Edwin Kempin <ekempin@google.com>
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