GNOME Bugzilla – Bug 744068
Link "branch wip/$username/$branch" to git.gnome.org
Last modified: 2018-06-16 13:37:09 UTC
Following the idea from bug #559537, it would be nice to also be able to link our wip branches.
That would be the same as in https://git.gnome.org/browse/bugzilla-gnome-org-customizations/commit/?id=27f1c5e9e2758bdbd84b208adb078bfe77f69a40 But with this regex (untested): "(\sbranch\s)(wip/[\w\-\/]+)" and change "/commit/?id=" with "/log/?h=" in the URL.
Untested patch pushed in branch wip/xclaesse/branch. This comment can serve as a test.
It is commit ad6dd452. This comment can serve as a test as well.
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: https://github.com/krnowak/bugzilla-gnome-org-customizations/commit/dba23a9ae00120e838161c9d56d0cb23ab09ba96
I just pushed the relevant fix for commit linking to master.
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 https://git.gnome.org. 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
Included Krzesimir's change in my patch. Still untested though, I don't think I can run an instance of patched bugzilla.
After https://wiki.gnome.org/Initiatives/DevelopmentInfrastructure , GNOME is moving its task tracking from Bugzilla to GitLab at https://gitlab.gnome.org/ as previously announced in https://mail.gnome.org/archives/desktop-devel-list/2018-May/msg00026.html . See https://wiki.gnome.org/GitLab for more information. Hence closing this ticket as WONTFIX: There are no plans to work on Bugzilla.