Write debug log if account from commit identity is added as reviewer

If a user pushes a commit that has another user as author or committer
that user is automatically added as reviewer. Log this on fine level so
that we see in traces when this happens.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I25487d917557a023f8b5df1c5c408f79db0c9156
This commit is contained in:
Edwin Kempin
2019-12-23 15:55:32 +01:00
parent 9bf7a5130e
commit 96af065cbf
3 changed files with 22 additions and 5 deletions

View File

@@ -368,10 +368,16 @@ public class ReplaceOp implements BatchUpdateOp {
Streams.concat(
Streams.stream(
newAddReviewerInputFromCommitIdentity(
change, psInfo.getAuthor().getAccount(), NotifyHandling.NONE)),
change,
psInfo.getCommitId(),
psInfo.getAuthor().getAccount(),
NotifyHandling.NONE)),
Streams.stream(
newAddReviewerInputFromCommitIdentity(
change, psInfo.getCommitter().getAccount(), NotifyHandling.NONE)));
change,
psInfo.getCommitId(),
psInfo.getCommitter().getAccount(),
NotifyHandling.NONE)));
if (magicBranch != null) {
inputs =
Streams.concat(