★ wanayoo — archive 1999 https://github.com/hazcod/semantic-commit-hookNouvelle recherche | Portail wanayoo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

semantic-commit-hook

Git hook that enforces semantic commit messages.

What is it

Semantic versioning automatically assigns version numbers on your code based on your commit messages. This means that it recognizes hotfixes, refactors, breaking and non-breaking changes. In my case, it automatically builds and creates a new release on Github based on the work that has been done.

You can read more about it here.

How to use

Any commit to your local git repository will be rejected if the first line (the title) does not follow the semantic versioning format.

For releasing, I use go-semantic-release.

Installation

curl --fail -o .git/hooks/commit-msg https://raw.githubusercontent.com/hazcod/semantic-commit-hook/master/commit-msg \
  && chmod 500 .git/hooks/commit-msg

About

Git hook that enforces semantic commit messages.

Topics

Resources

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.