With features like GitHub issue auto-closing and JIRA/GitHub integration, it's good to have a commit linting prepush script to ensure at least one message from a new feature branch references an existing issue/ticket to enable automation-enhanced workflows.
Add a basic commitlint script to check for issue/ticket number references in commit messages between master..head
Allow ticket/issue number format to be easily edited via grep
Allow easy disabling by only adding to the existing prepush script (if a project doesn't have an issue tracker, the commitlint script can simply be deleted from the prepush script.
With features like GitHub issue auto-closing and JIRA/GitHub integration, it's good to have a commit linting
prepush
script to ensure at least one message from a new feature branch references an existing issue/ticket to enable automation-enhanced workflows.commitlint
script to check for issue/ticket number references in commit messages betweenmaster..head
prepush
script (if a project doesn't have an issue tracker, thecommitlint
script can simply be deleted from theprepush
script.