Let users know if no code owners are defined yet

As explained in [1] we have a special bootstrapping behaviour for
code-owners if
- the code owners functionality is enabled (and hence code owner
  approvals are required) and
- no code owners are defined yet (branch doesn't contain any OWNERS
  file yet)

In this case to submit a change the change owner either needs a code
owner override or an approval from a project owner. Currently users are
not aware of this, and the frontend should inform the users about this,
e.g. show this info as a message to the user when they try to get code
owners suggested. Since there are no code owners defined yet, we cannot
suggest any code owners and hence the suggestion is always empty in this
situation.

The Get Code Owner Branch Config REST endpoint was updated to include a
flag for this [2].

[1] https://gerrit-review.googlesource.com/c/plugins/code-owners/+/286639/2/resources/Documentation/user-guide.md
[2] https://gerrit-review.googlesource.com/c/plugins/code-owners/+/286473/2/resources/Documentation/rest-api.md





Change-Id: Ia09cc5f43e1ed0684f4b443932356dd26107982d
2 files changed
tree: d707b80defbe912a146356059787a01d009cb18e
  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