Class BranchEmailUtils

java.lang.Object
com.google.gerrit.server.mail.send.BranchEmailUtils

public class BranchEmailUtils extends Object
Contains utils for email notification related to the events on project+branch.
  • Constructor Details

    • BranchEmailUtils

      public BranchEmailUtils()
  • Method Details

    • setListIdHeader

      public static void setListIdHeader(OutgoingEmail email, BranchNameKey branch)
      Set a reasonable list id so that filters can be used to sort messages.
    • addBranchData

      public static void addBranchData(OutgoingEmail email, EmailArguments args, BranchNameKey branch)
      Add branch information to soy template params.
    • getShortProjectName

      public static String getShortProjectName(String projectName)
      Shortens project/repo name to only show part after the last '/'.
    • getInstanceAndProjectName

      public static String getInstanceAndProjectName(String instanceName, String projectName)
      Returns a project/repo name that includes instance as prefix.