After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744068 - Link "branch wip/$username/$branch" to
Link "branch wip/$username/$branch" to
Classification: Infrastructure
Component: general
Other Linux
: Normal enhancement
: ---
Assigned To: Bugzilla Maintainers
Bugzilla Maintainers
Depends on:
Reported: 2015-02-05 19:59 UTC by Xavier Claessens
Modified: 2018-06-16 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---

Automatically link Git wip/ branches to the corresponding URL (1.83 KB, patch)
2015-02-11 19:56 UTC, Xavier Claessens
none Details | Review

Description Xavier Claessens 2015-02-05 19:59:57 UTC
Following the idea from bug #559537, it would be nice to also be able to link our wip branches.
Comment 1 Xavier Claessens 2015-02-05 20:11:53 UTC
That would be the same as in

But with this regex (untested):

and change "/commit/?id=" with "/log/?h=" in the URL.
Comment 2 Xavier Claessens 2015-02-05 20:22:30 UTC
Untested patch pushed in branch wip/xclaesse/branch. This comment can serve as a test.
Comment 3 Xavier Claessens 2015-02-05 20:24:20 UTC
It is commit ad6dd452. This comment can serve as a test as well.
Comment 4 Krzesimir Nowak 2015-02-08 21:29:06 UTC
The linking will fail (as it will for commits as well) if comment starts with "branch wip/xclaesse/branch". Or if you write something like "See my changes in my wip branch (branch wip/xclaesse/branch)." or "I pushed it already (commit 1234567).".

I'd suggest using \b for detecting word boundary instead \s for it, like I did in this commit:
Comment 5 Krzesimir Nowak 2015-02-08 21:34:52 UTC
I just pushed the relevant fix for commit linking to master.
Comment 6 Xavier Claessens 2015-02-11 19:56:37 UTC
Created attachment 296634 [details] [review]
Automatically link Git wip/ branches to the corresponding URL

Automatically link "branch wip/$branch" to the corresponding URL for that branch
on The URL construction relies on the product name of the
Bugzilla report so if the name in Bugzilla does not match the repository name in
Git the URL will be a 404. So you might want to make sure that names are the
same in Bugzilla
Comment 7 Xavier Claessens 2015-02-11 19:58:07 UTC
Included Krzesimir's change in my patch. Still untested though, I don't think I can run an instance of patched bugzilla.
Comment 8 André Klapper 2018-06-16 13:37:09 UTC
After , GNOME is moving its task tracking from Bugzilla to GitLab at as previously announced in . See for more information.

Hence closing this ticket as WONTFIX: There are no plans to work on Bugzilla.