Check jira issue id in commit message using git commit-msg hook
Clone or download the commit-msg
file and place it to your repository .git/hooks/
directory. Make this file executable using the command chmod +x commit-msg
.
- Branch name with Jira ID and Commit message without Jira ID
- Branch name without Jira ID and Commit message with Jira ID
- Branch name with Jira ID and Commit message with Jira ID
- Branch name without Jira ID and Commit message without Jira ID
- Branch name with/without Jira ID and Commit message having
merge conflict
keyword.