Convert the Abandoned and MergeFail email classes to templates
Convert the AbandonedSender and MergeFailSender classes to use file based velocity templates which an admin may edit. Change-Id: I5eae65a46aea074ef25bfc259c013f9be91fdc2f
This commit is contained in:
@@ -38,15 +38,6 @@ public class MergeFailSender extends ReplyToChangeSender {
|
||||
|
||||
@Override
|
||||
protected void formatChange() throws EmailException {
|
||||
appendText("Change " + change.getKey().abbreviate());
|
||||
if (patchSetInfo != null && patchSetInfo.getAuthor() != null
|
||||
&& patchSetInfo.getAuthor().getName() != null) {
|
||||
appendText(" by ");
|
||||
appendText(patchSetInfo.getAuthor().getName());
|
||||
}
|
||||
appendText(" FAILED to submit to ");
|
||||
appendText(change.getDest().getShortName());
|
||||
appendText(".\n\n");
|
||||
formatCoverLetter();
|
||||
appendText(velocifyFile("MergeFail.vm"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user