wp-dev-lib icon indicating copy to clipboard operation
wp-dev-lib copied to clipboard

Add commit-msg Git hook to enforce good commit messages

Open westonruter opened this issue 9 years ago • 3 comments

https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Client-Side-Hooks

westonruter avatar Sep 08 '15 18:09 westonruter

:+1: I am taking over this ticket

yani- avatar Sep 09 '15 01:09 yani-

This would go nicely with a prepare-commit-msg hook which tried to automatically formulate a commit message based on the feature branch, e.g. extract a JIRA ticket number or GitHub issue.

westonruter avatar Oct 08 '15 20:10 westonruter

@westonruter @yani- if you want to do this in Github, you can use CommitCheck. It's an app I built for things like, checking commit messages contain a JIRA number. It's free to use for OSS projects -> https://github.com/apps/commitcheck-app. I'm happy to answer any questions :)

commitcheck avatar Jul 08 '19 07:07 commitcheck