Skip to content

faceit/commit-analyzer-regex

Repository files navigation

💡 commit-analyzer-regex

A Regex based commit analyzer for go-semantic-release.

This is a largely based on go semantic releases commit-analyzer-cz. With one major difference in that it takes regex to decide which commit types correspond to kind of version bump is used

How the commit messages are analyzed

Bump major version (0.1.2 -> 1.0.0)

  • By adding BREAKING CHANGE or BREAKING CHANGES in the commit message footer, e.g.:
    feat: allow provided config object to extend other configs
    
    BREAKING CHANGE: `extends` key in config file is now used for extending other config files
    
  • By adding ! at the end of the commit type, e.g.:
    refactor!: drop support for Node 6
    

Bump minor version (0.1.2 -> 0.2.0)

  • By using type feat, e.g.:
    feat(lang): add polish language
    

Bump patch version (0.1.2 -> 0.1.3)

  • By using type fix, e.g.:
    fix: correct minor typos in code
    
    see the issue for details
    
    on typos fixed.
    
    Reviewed-by: Z
    Refs #133
    

References