GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hazcod/semantic-commit-hook: Git hook that enforces semantic commit messages.

BranchesTags
Open more actions menu

Latest commit

 

History

86 Commits
86 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
CHANGELOG.md
CHANGELOG.md
 
 
README.md
README.md
 
 
commit-msg
commit-msg
 
 

Repository files navigation

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

gitgit-hookhooksemantic-versioning

Resources

Readme
Activity

Stars

57 stars

Watchers

2 watching

Forks

10 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.