CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

tracking id doesn't generate hyperlinks #1400

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 2.3

What steps will reproduce the problem?

1. set this in etc/gerrit.config
[trackingid "bugzilla"]
        footer = Ticket
        system = Bugzilla
        match = \\b(\\d{1,10})\\b

2. push a commit to Gerrit to be reviewed, the commit's message
contains line Ticket: 33,44 55 66, 77

3. The multiple tracking ids are distinguished correctly as I can
search them in the search box, but these tracking ids don't have
hyperlinks showed in commit message on Gerrit web UI.

The commentlink feature can be used to link "Ticket:33, Ticket:44",
but it's hard to match "Ticket:33, 44" things, the trackingid feature
can parse "Ticket:33, 44, ...." but doesn't generate links:-(

Often the tracking ids are bug ids in bug tracking system, thus
it's very helpful to show them as hyperlinks in commit message.

Original issue reported on code.google.com by Yubao....@gmail.com on 22 May 2012 at 10:20

GoogleCodeExporter commented 9 years ago
I also wonder why the two exist. Looks like they are there to achieve the same 
thing.

Original comment by wer...@beroux.com on 14 Sep 2012 at 8:37

GoogleCodeExporter commented 9 years ago
trackingid and commentlink features provide different functionality. However, 
it makes sense that trackingid feature would be extended with adding hyperlinks.

Original comment by aspr...@gmail.com on 16 Sep 2012 at 9:20

GoogleCodeExporter commented 9 years ago
Agree.

Original comment by wer...@beroux.com on 17 Sep 2012 at 8:22