Class ConventionalCommitParser

java.lang.Object
se.bjurr.gitchangelog.internal.semantic.ConventionalCommitParser

public class ConventionalCommitParser extends Object
  • Constructor Details

    • ConventionalCommitParser

      public ConventionalCommitParser()
  • Method Details

    • getDate

      public static String getDate(String tagTime)
    • commitScope

      public static boolean commitScope(Commit commit, com.github.jknack.handlebars.Options options)
    • revertedCommit

      public static String revertedCommit(Object commitMessage)
    • commitFixes

      public static List<String> commitFixes(Object commitMessage)
    • commitRefs

      public static List<String> commitRefs(Object commitMessage)
    • commitDescription

      public static String commitDescription(Object commitMessage)
    • commitScopes

      public static List<String> commitScopes(Object commitMessage)
    • commitBreaking

      public static boolean commitBreaking(String commitMessage)
    • containsBreaking

      public static boolean containsBreaking(List<Commit> commits, com.github.jknack.handlebars.Options options)
    • containsType

      public static boolean containsType(List<Commit> commits, com.github.jknack.handlebars.Options options)
    • containsScope

      public static boolean containsScope(List<Commit> commits, com.github.jknack.handlebars.Options options)
    • containsTypeAndScope

      public static boolean containsTypeAndScope(List<Commit> commits, com.github.jknack.handlebars.Options options)
    • containsTypeAndScopeNotIn

      public static boolean containsTypeAndScopeNotIn(List<Commit> commits, com.github.jknack.handlebars.Options options)
      Like containsTypeAndScope(java.util.List<se.bjurr.gitchangelog.api.model.Commit>, com.github.jknack.handlebars.Options), but for checking that a type exists with a scope that is not one of the given, comma-separated, scopes. Useful for a catch-all section (e.g. "chore" commits without a "deps" or "ci" scope) whose heading should not be rendered when every commit of that type has already been claimed by a more specific section.
    • containsTypeAndScopeNotIn

      public static boolean containsTypeAndScopeNotIn(List<Commit> commits, String type, List<String> excludedScopes)
    • containsTypeOtherThan

      public static boolean containsTypeOtherThan(List<Commit> commits, com.github.jknack.handlebars.Options options)
    • containsIssueType

      public static boolean containsIssueType(List<Issue> issues, com.github.jknack.handlebars.Options options)
    • containsIssueTypeOtherThan

      public static boolean containsIssueTypeOtherThan(List<Issue> issues, com.github.jknack.handlebars.Options options)
    • containsIssueLabel

      public static boolean containsIssueLabel(List<Issue> issues, com.github.jknack.handlebars.Options options)
    • containsIssueLabelOtherThan

      public static boolean containsIssueLabelOtherThan(List<Issue> issues, com.github.jknack.handlebars.Options options)
    • issueType

      public static boolean issueType(String issueType, com.github.jknack.handlebars.Options options)
    • issueLabel

      public static boolean issueLabel(Issue issue, com.github.jknack.handlebars.Options options)
    • commitType

      public static boolean commitType(String commitMessage, com.github.jknack.handlebars.Options options)
    • commitScope

      public static boolean commitScope(String commitMessage, com.github.jknack.handlebars.Options options)
    • isReleaseTag

      public static boolean isReleaseTag(Tag tag)
    • getMessageParts

      public static ConventionalCommitParser.MessageParts getMessageParts(String commitMessage)