Add new notify type that allows watching of new patch sets
Users can now watch the creation of new patch sets. They get notified if a new patch set is uploaded, but also if a rebase is done from the WebUI or the commit message is edited in the WebUI. Change-Id: Ieabc4c00d2b185e5b452ac43706cb0fdd9d87f77 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
Shawn Pearce
parent
81f2be8cef
commit
1121475d1c
@@ -17,6 +17,7 @@ package com.google.gerrit.server.mail;
|
||||
import com.google.gerrit.common.errors.EmailException;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType;
|
||||
import com.google.gerrit.server.config.AnonymousCowardName;
|
||||
import com.google.gerrit.server.ssh.SshInfo;
|
||||
import com.google.inject.Inject;
|
||||
@@ -69,6 +70,7 @@ public class ReplacePatchSetSender extends ReplyToChangeSender {
|
||||
add(RecipientType.CC, extraCC);
|
||||
rcptToAuthors(RecipientType.CC);
|
||||
bccStarredBy();
|
||||
includeWatchers(NotifyType.NEW_PATCHSETS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user