logoalt Hacker News

cesarblast Thursday at 7:42 PM2 repliesview on HN

> But putting the ticket number in the commit ... that's basically automatic, I don't know why it should be that big a concern. The branch itself gets created with the ticket number and everything follows from that, there's no extra effort.

That poster said "attach a JIRA Ticket to the PR", so in their case, it's not that automatic.


Replies

rootusrootuslast Thursday at 9:03 PM

A lot of Jira shops use the rest of the stack, so it becomes automatic. The branch is named automatically when created from a link on the Jira task. Every time you push it gives you a URL for opening the PR if you want, and everything ends up pre-filled. All of the Atlassian tools recognize the format of a task ID and hyperlink automatically.

I haven't dealt with non-Atlassian tools in a while but I assume this is pretty much bog standard for any enterprise setup.

alexpotatolast Thursday at 8:47 PM

If you are using the Atlassian Git clone then just putting the JIRA ticket in the title automagically links the PR to the ticket.