Is there a way to automate adding the JIRA Issue Ticket as a prefix to the git commit message?
https://confluence.atlassian.com/jirasoftwarecloud/referencing-issues-in-your-development-work-777002789.html
Hello @Nathan Yeung,
Welcome to the Community!
This automation should kick in when you create a commit, which means on your machine. And yes, there're various tools that can help with that. I personally use pre-commit with giticket extension at the moment.
Before that I was using overcommit for quite a while. It doesn't have a hook for adding Jira ticket out of the box, but it's not hard to write one. If you're interested in a script for overcommit, let me know and I'll post it here – I still should have it somewhere in my archives.
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.