Is there a way to automate adding the Jira Issue Ticket as a prefix to the git commit message

Nathan Yeung November 20, 2019

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

1 answer

1 vote
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events