Hook for increase semantic version of release (git tag) like semver.org
Hook is trigger when you execute git merge
on production branch (in this case stable
). You can also exec manually hook.
When your branch is called differently than stable
. You can change config var named prodBranch
in hook file.
You can increase with hook:
- MAJOR version
- MINOR version
- PATCH version
- You can copy hook into your repo
your-repo-dir/.githooks/post-merge
and add local configuration for gitgit config --local core.hooksPath .githooks/
- You can copy hook into git dir in repo
your-repo-dir/.git/hooks/post-merge
and that's all