wp-dev-lib
wp-dev-lib copied to clipboard
Add commit-msg Git hook to enforce good commit messages
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Client-Side-Hooks
:+1: I am taking over this ticket
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 @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 :)