Add email footer token to identify if inline comments are present

Add a new mail template that is appended to the end of mails
related to users adding comments on changes.

The new template adds an extra token at the end of the mail:

  Gerrit-HasInlineComments: Yes

or

  Gerrit-HasInlineComments: No

which will be set depending on whether or not the reviewer has left
any inline comments.

This will allow users to filter their incoming notification emails
according to whether or not the review contains inline comments.

Bug: Issue 1531
Change-Id: Iafa5d69cc8a502c7afb1338dec681ca47c63338b
This commit is contained in:
David Pursehouse
2012-09-24 20:58:21 +09:00
parent f153f2b832
commit 85287c1663
5 changed files with 55 additions and 2 deletions

View File

@@ -89,6 +89,7 @@ public class SitePathInitializer {
extractMailExample("ChangeFooter.vm");
extractMailExample("ChangeSubject.vm");
extractMailExample("Comment.vm");
extractMailExample("CommentFooter.vm");
extractMailExample("Merged.vm");
extractMailExample("MergeFail.vm");
extractMailExample("NewChange.vm");