/semantic-versioning-git-hook

Hook for increase semantic version of release (git tag) like semver.org

Primary LanguageShell

Semantic versioning git hook

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:

  1. MAJOR version
  2. MINOR version
  3. PATCH version

How it use?

  • You can copy hook into your repo your-repo-dir/.githooks/post-merge and add local configuration for git git 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