https://bts.adelielinux.org/show_bug.cgi?id=104
--- Comment #2 from Max Rees (sroracle) <maxcrees(a)me.com> ---
While Bugzilla is great, this is the problem that inevitably arises as
everyone moves to GitHub / GitLab / SourceHut issues: the actual bug
tracking software ecosystem starts to rot.
I did some investigating based on knowing that both Gentoo and FreeBSD
automatically post relevant commits to Bugzilla.
While Gentoo does not use GitZilla directly, it uses a bespoke git
hook[1] that utilizes pybugz, the library underlying GitZilla. However,
pybugz[2] is seemingly unmaintained as well (last activity February
2017). You can see an example of this hook in action at [3].
FreeBSD does not use git directly of course - their source of truth is
still svn based. They use a bespoke svn hook[4] that emails Bugzilla
directly. The hook itself looks for lines containing only "PR: XXXX" to
grab the bug ID. Bugzilla then grabs the bug ID from the Subject: if it
starts with "[Bug XXXX]". The corresponding part of BugZilla's source is
[5] I believe. You can see an example of this hook in action at [6].
In light of this research it seems that just emailing BugZilla directly
as FreeBSD does would seem to be much easier, but it presents two new
issues:
1. It must be determined what the hook should be looking for in
commit messages (ideally this should match what GitLab is looking
for).
2. Our Bugzilla instance currently does not support emails:
Hi. This is the qmail-send program at
mail.wilcox-tech.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work
out.
<bugs(a)adelielinux.org>:
Sorry, no mailbox here by that name. (#5.1.1)
Of course, there is also the API[7] that can be used. This is much
better documented than the email interface as far as I can tell and
would allow things such as closing a bug[8].
[1]
https://github.com/gentoo/git-gx86-tools/blob/master/hooks/dev-git/postre...
[2]
https://github.com/williamh/pybugz
[3]
https://bugs.gentoo.org/656022#c4
[4]
https://svnweb.freebsd.org/base/svnadmin/hooks/scripts/notify_bz.sh?view=...
[5]
https://github.com/bugzilla/bugzilla/blob/preview/5.0.4/email_in.pl
[6]
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=165622#c14
[7]
https://bugzilla.readthedocs.io/en/5.0/api/core/v1/comment.html#create-co...
[8]
https://bugzilla.readthedocs.io/en/5.0/api/core/v1/bug.html#update-bug
--
You are receiving this mail because:
You are the assignee for the bug.