Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JIRA + fisheye + git -> how to repair missing links?

When using Subversion, JIRA, and fisheye, it's easy enough to edit a log message to fix the JIRA number. With git, not so much. Once a commit is pushed to a shared repo, modifying the commit is fraught.

Is there some other mechanism in these products to allow for fixing the links between commits and JIRAs if someone typos and pushes?

like image 386
bmargulies Avatar asked Dec 14 '25 15:12

bmargulies


1 Answers

One mechanism is to use hooks to prevent pushes with typos.

A pre-commit hook on your local repo can check the pattern fits (but doesn't check remote jira so you keep offline capability). This prevents developers committing without a properly formed jira reference.

A pre-receive or update hook on the server does a more complete check (like ensuring all commits have a jira reference that is valid / open / assigned to them).

This isn't bulletproof but it should be good enough.

like image 126
Gavin Avatar answered Dec 17 '25 13:12

Gavin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!