When working with JIRA, you might want to make sure that your commit messages contain your issue number. If you have set up JIRA to track your VCS, it will automatically link issues to commits and pull requests.
I made a small GIT hook which solves this problem by checking if your commit message contains an issue number
Note: You should update the pattern variable to match your commit message format.
If you don’t know how to setup GIT hooks, you should take a look at the following guide: