Git hook that enforces semantic commit messages.
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.
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.
curl --fail -o .git/hooks/commit-msg https://raw.githubusercontent.com/hazcod/semantic-commit-hook/master/commit-msg \
&& chmod 500 .git/hooks/commit-msg