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 git.gnome.org
Link "branch wip/$username/$branch" to git.gnome.org
Status: RESOLVED WONTFIX
Product: bugzilla.gnome.org
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Bugzilla Maintainers
Bugzilla Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-05 19:59 UTC by Xavier Claessens
Modified: 2018-06-16 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
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 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.
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:

https://github.com/krnowak/bugzilla-gnome-org-customizations/commit/dba23a9ae00120e838161c9d56d0cb23ab09ba96
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 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
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 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.