commit | 8e71cafe8ecef2fbe5a35bd1625f6bca7a8260a3 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Apr 15 10:39:58 2021 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Apr 16 16:15:30 2021 +0200 |
tree | c68b721101ce3c86cd79675388f19f9031d4deb0 | |
parent | 80aa1d391bd464a9126908cb79f1c8721ac193e5 [diff] |
Add distance scores for code owners that are added for resolving all users If --resolve-all-users is specified when listing code owners code ownerships that are assigned to all users (aka '*') are resolved to random users until the limit is reached. For these users no distance score was added. After adding random users to fill up the limit, no further code owners will be included in the result (because the limit is reached). This means the random users will always have the lowest score. For the sorting this means that this fix makes no difference (since lowest score and no score will result in the same sort position). Due to this we can't test this fix via the sort order. Since we also don't return the scores to the client, it's hard to test this and hence this change doesn't include a test. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: If579300d1af822c997344ca350a93a220047f2c8
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.