Git post-receive hook to add a comment to related issue in bugzilla

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Git post-receive hook to add a comment to related issue in bugzilla

Romain B

Hi all,

A new git post-receive hook is in place, it parse the git commit message, detect if there is a bug number referenced,  and automatically posts commits references to bugzilla related issue.

An example: https://bugzilla.xfce.org/show_bug.cgi?id=12159#c4

Regex is "(?<=Bug)[:# ]*[0-9]+" for now.

This is a really cool new feature (thanks Simon for the idea/specs). It’s not perfect and it need more work, but it is now available on all repositories (appart from user repo and archives).

Also, syntax and bugs highlighting has been enabled on https://git.xfce.org .

- https://git.xfce.org/xfce/libxfce4util/tree/libxfce4util/xfce-fileutils.c?id=f8e35f0889ad9c7bf6a6ccacce1592a4f0060cef as a syntax highlighting example

- https://git.xfce.org/xfce/libxfce4util/commit?id=f8e35f0889ad9c7bf6a6ccacce1592a4f0060cef look at the nice css around the bug number reference in the commit title :)

Enjoy,



_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev