npm install @talentry/elm-git-hooks
elm-git-hooks <sub command>
This script is meant to be used with Husky
Pre-append a commit message based on a provided regex string matching against git branch name. It will match against the first group found in the string. If a match isn't found, a message is not generated.
Any commit with a commit source eg. merging branches will also be omitted.
elm-git-hooks prepare-message 'JIRA-[0-9]{4}' commit-message-file commit-source?
With Husky
In .husky/prepare-commit-msg
append the following line
elm-git-hooks prepare-message 'JIRA-[0-9]{4}' $1 $2
This repository uses husky, you can see example usage here. Talentry uses ClickUp, so
out tickets IDs look like CU-ASDF
MIT