Skip to content

Per repo Git hook commit message validator. Applies a portion of the Conventional Commit specification rules to every commit.

License

Notifications You must be signed in to change notification settings

dkameoka/conventional-git-message-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Per repo Git hook commit message validator

  • Validates Conventional Commits' rules 1-6.
  • Ensures short descriptions are not longer than 50 and body lines are not longer than 72.

Conventional Rules Supported

  • Follow the format: type(scope)!: short description followed by an empty line and the body and footer.
  • Type must be one of the following: build, change, chore, ci, deprecate, docs, feat, fix, perf, refactor, remove, revert, security, style, test, version, or wip.
  • (Scope) is an optional noun that describes the code section.
  • The exclamation point is optional and it indicates breaking changes.
Features Description
feat Add feature
remove Remove feature
change Change feature
deprecate Mark feature to be removed
wip Work In Progress. Must be squashed
Other Description
build Update build system files
chore Required periodic changes
ci Update configurations or continuouse integration files
docs Update documentation
fix Fix a bug
perf Improve performance without changing features
refactor Revise code without changing features
revert Remove a problematic commit
security Fix an bug that resolves a security issue
style Revise how code looks
test Update test code
version Bump the version

Requires

  • Bash
  • Python 3
  • A Git repo

About

Per repo Git hook commit message validator. Applies a portion of the Conventional Commit specification rules to every commit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages