Read all required approvals that are configured

We want to allow configuring multiple override approvals. As a first
step towards this we extend the config backend to read all configured
required approvals so that they get available for upper layers (namely
CodeOwnersPluginConfiguration).

With this change we still only support a single override approval. If
multiple override approvals are configured we use the last one. This is
the same behavior as before this change, since also JGit uses the last
configured value if a single config value is read, but multiple values
are configured.

Follow-up changes will adapt the upper layers to support multiple
override approvals.

Change-Id: I2a4387340e0336ea3ebe599b6e0fce913fa3689a
Signed-off-by: Edwin Kempin <ekempin@google.com>
9 files changed
tree: e841836ab5ba05e83ee42ca8244b71018a62d51a
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

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