|author||Edwin Kempin <firstname.lastname@example.org>||Thu Apr 15 13:32:45 2021 +0200|
|committer||Edwin Kempin <email@example.com>||Fri Apr 16 16:15:30 2021 +0200|
AbstractGetCodeOwnersForPath: Make code owner scorings accessible So far AbstractGetCodeOwnersForPath didn't know which code owner had which score. The total scores were internals of CodeOwnerScorings and not exposed to AbstractGetCodeOwnersForPath. Refactor the code so that AbstractGetCodeOwnersForPath gets access to the total code owner scores. This is done for 2 reasons: 1. we want to add a highest-score-only option that only returns the code owners with the highest score, for this AbstractGetCodeOwnersForPath needs to know what is the highest score and which code owners have it 2. at some point in time we may want to return the total scores to the client, for this AbstractGetCodeOwnersForPath needs to know the total scores so that they can be included into the JSON that is returned to the client Signed-off-by: Edwin Kempin <firstname.lastname@example.org> Change-Id: Iafb1d32f03b6b7a828f83b8843b4407b6075bc2e
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.