- The branch name that you commit to must include the ticket number in the beginning of the name.
i.e "sam/fix/sk-345-this-is-a-cool-branch" or "sk-1234-even-cooler-branch-2345" where the first number in the name is the JIRA ticket number.
- Open your terminal
- cd <YourRepositoryHere>/.git/hooks/
- Enter the follow line of code
sh -c "$(curl -O -fsSL https://raw.githubusercontent.com/s-kantor/jiragithubcommithook/master/prepare-commit-msg)"
- chmod a+x prepare-commit-msg
That's it!
If your JiraSpace is not "MOB", just change the MOB in line 10, to the specific JiraSpace.