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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user