hobbs / jirret

Gerrit hooks to update JIRA
42 stars 20 forks source link

Link to JIRA issue in Gerrit commit messages #7

Closed tomjakubowski closed 12 years ago

tomjakubowski commented 12 years ago

So for example, in this commit message:

SAT-666 fix bug that prevents hailing

The ticket ID, as displayed in Gerrit, would be replaced with a link to that ticket on JIRA. I don't know if Gerrit can be configured to do this (just for display… of course we wouldn't want the actual commit message to be changed), or if it's out of the scope of this project.

hobbs commented 12 years ago

patches accepted :P

But really, not sure what the best way to go about this would be. I know a guy at work who used a custom search chrome plugin, so when you highlight text and right click there is an option "Search Jira". I've also thought about making a "regex" chrome plugin, where you could make regex rules for specific domains (ie, gerrit, hudson, email, etc) that would linkify issue numbers.

tomjakubowski commented 12 years ago

http://stackoverflow.com/questions/8080576/link-to-other-system-issue-number-in-gerrit-code-review-page-based-on-commit-mes?rq=1

tomjakubowski commented 12 years ago

guess this is a gerrit configuration issue, not a hook thing.