NotificationEmail: use MailHeader for 'Gerrit-Branch' footer name
MailHeader.BRANCH defines footer name that can be re-used in NotificationEmail. Change-Id: If8c6e2585f5b4ec566a91615aacea8e70378622f
This commit is contained in:
@@ -123,7 +123,7 @@ public abstract class NotificationEmail extends OutgoingEmail {
|
|||||||
soyContext.put("branch", branchData);
|
soyContext.put("branch", branchData);
|
||||||
|
|
||||||
footers.add(MailHeader.PROJECT.withDelimiter() + branch.getParentKey().get());
|
footers.add(MailHeader.PROJECT.withDelimiter() + branch.getParentKey().get());
|
||||||
footers.add("Gerrit-Branch: " + branch.getShortName());
|
footers.add(MailHeader.BRANCH.withDelimiter() + branch.getShortName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
Reference in New Issue
Block a user