Pre-Commit hook that prepends JIRA ticket number and URL in the commit message.
- repo: https://github.com/mmphego/prepend-jira-ticket-link
rev: master
hooks:
- id: prepend-jira-link
# ...
- prepend-jira-link - Adds JIRA ticket number and link to commit message.
- If JIRA ticket ID is not present in commit message, it will check the branch name, if it contains a ticket id.
- If found will append it to the commit message.
JIRA: [MT-740](skaafrica.atlassian.net/browse/MT-740)