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

Romain B skunnyk at alteroot.org
Tue May 30 23:36:32 CEST 2017


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 
<https://blog.alteroot.org/articles/2017-05-30/road-to-xfce-4.14-part-2.html#git--bugzilla> 


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,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20170530/8efb07e5/attachment.html>


More information about the Xfce4-dev mailing list