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:
Jacek Centkowski
2019-12-02 11:56:28 +01:00
parent 3c0b2d4255
commit d90465732f

View File

@@ -123,7 +123,7 @@ public abstract class NotificationEmail extends OutgoingEmail {
soyContext.put("branch", branchData);
footers.add(MailHeader.PROJECT.withDelimiter() + branch.getParentKey().get());
footers.add("Gerrit-Branch: " + branch.getShortName());
footers.add(MailHeader.BRANCH.withDelimiter() + branch.getShortName());
}
@VisibleForTesting