commit | 525f8f6f7439d5006990005a1f54bce354fe291e | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Wed Mar 31 15:18:31 2021 +0200 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Wed Mar 31 20:03:31 2021 +0200 |
tree | a0a641d1c777517024ab43ec66f0eab5d9849c76 | |
parent | f4dfcee3d7f554d82dc063a8ba4b18aff4926785 [diff] |
Show different error message if server config is invalid If a code-owners operation cannot be performed because the project contains an invalid OWNERS file the backend returns a '409 Conflict' response informing about the invalid OWNERS file. An invalid OWNERS file is a configuration issue that needs to be fixed by the project owner or host admin, it's not an error in the code-owners plugin (an error would be signaled as 500 response). At the moment the frontend reports invalid OWNERS file as a red error banner. This gives the wrong impression that there was an error in the code-owners plugin. The way how invalid OWNERS files are reported/shown to the user is changed so that it's more clear that this is a configuration issue and not an error in the plugin. Change-Id: I0e2524cbd1c76f954b77aff19a0da06b78574aec
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.