Link to another system issue number on the gerrit code review page based on commit message

I used to write a fix message to connect the system problems, for example issue #9548, redmine start page is fixed, and wondered if it could be written to a hook or plugin in the gerrit system.

So, on the code review page, issue # 9548 can automatically display an http link to my problem system (e.g. redmine): => issue # 9548 ,redmine start page is fixed

This will easily check the code.

+5
source share
3 answers

, . Gerrit bugtracker . . Gerrit. (issue\s + #?) (\ D +)

+4

Jira Jira , gerrit.config, :

[commentlink "jira"]
    match = "^([A-Z]*-[0-9]*)"
    link = http://jira/browse/$1

( Rubular ):

  • PRJ-123:
  • ABC-123 - -:
  • PROJ-123
  • ABCD-123 -

. Gerrit

+4

Yes, you can include the problem tag in the link in Gerrit. Take a look at the comment configuration - http://gerrit-documentation.googlecode.com/svn/Documentation/2.2.0/config-gerrit.html#_a_id_commentlink_a_section_commentlink

+1
source

All Articles