Class BranchEmailUtils
java.lang.Object
com.google.gerrit.server.mail.send.BranchEmailUtils
Contains utils for email notification related to the events on project+branch.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addBranchData
(OutgoingEmail email, EmailArguments args, BranchNameKey branch) Add branch information to soy template params.static String
getInstanceAndProjectName
(String instanceName, String projectName) Returns a project/repo name that includes instance as prefix.static String
getShortProjectName
(String projectName) Shortens project/repo name to only show part after the last '/'.static void
setListIdHeader
(OutgoingEmail email, BranchNameKey branch) Set a reasonable list id so that filters can be used to sort messages.
-
Constructor Details
-
BranchEmailUtils
public BranchEmailUtils()
-
-
Method Details
-
setListIdHeader
Set a reasonable list id so that filters can be used to sort messages. -
addBranchData
Add branch information to soy template params. -
getShortProjectName
Shortens project/repo name to only show part after the last '/'. -
getInstanceAndProjectName
Returns a project/repo name that includes instance as prefix.
-