commit | 07d6a76596a6c0ae4b62631a46ecc3bb3a6fbc45 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Jan 15 11:40:28 2021 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Thu Jan 21 09:33:55 2021 +0100 |
tree | a784f9fa71e28c20d86075b9f43898c4dcdf68d4 | |
parent | 6eb01ebd8d83fd1bd31ef3eb9340cde8ed3393a3 [diff] |
Make response of get code owners REST endpoints extensible At the moment the get code owners REST endpoints return a list of CodeOwnerInfo's. This doesn't allow us to add further fields to the response in the future (e.g. we consider adding an "owned_by_all_users" boolean field). To make the response extensible we change it from returning List<CodeOwnerInfo> to returning CodeOwnersInfo that has a "code_owners" field that contains the code owners as List<CodeOwnerInfo>. This is a backwards incompatible change and breaks existing callers of this API. To avoid this the frontend was adapted to be able to understand both response formats and other existing callers that we know are okay to be broken temporarily until they adapt to the new response format. Change-Id: Ib0c4c8edf3952b48bccdc99baf77380a3b3f0c49 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