Skip to content

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

Notifications You must be signed in to change notification settings

kosmala007/semantic-versioning-git-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages