[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [workflow] Automatically close bug report when a patch is committed
From: |
Vagrant Cascadian |
Subject: |
Re: [workflow] Automatically close bug report when a patch is committed |
Date: |
Thu, 07 Sep 2023 09:12:29 -0700 |
On 2023-09-07, Giovanni Biscuolo wrote:
> Hi Maxim and Ludovic,
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>> Giovanni Biscuolo <g@xelera.eu> writes:
..
>>> When I asket I though the best way would be to scan for a string like
>>> "Close #<bug-number>" in the commit message (the committer should add
>>> such a string) but probably this can be avoided: the bug can be closed
>>> when a patch is committed to one of the listed official brances (master,
>>> core-updates, etc.)
>>
>> You mean by simply matching the subject? Maybe that could work.
>
> Thinking twice maybe it's better to add a "Close: #<bug>" to the commit
> message.
Sooooo... I maintain the guix package in Debian, and want to make sure
that whatever bug-closing indicator guix upstream uses, does not end up
triggering when I push new upstream versions to salsa.debian.org ... and
start incorrectly marking incorrect bug numbers on bugs.debian.org that
were meant for debbugs.gnu.org.
Currently that is:
https://salsa.debian.org/salsa/salsa-webhook/-/blob/997412ad4b1d89fd3227d5409471bdf71abcf863/helpers/bugs.rb#L19
SCAN_BUGS =
/Closes:\s+(?:Bug)?#(?:(\d{4,8})\b)(?:,?\s*(?:Bug)?#(?:(\d{4,8})\b))*/i
"Close: #<bug>" is a bit nervously close; I could see a stray typo of an
extra "s" triggering the occasional very annoying problem.
I am much more comfortable with the "Fixes" convention of:
Fixes: https://issues.guix.gnu.org/NNN
So, while I cannot insist here... I can plead a bit... and a namespaced
URL is kind of better in some ways anyways. :)
live well,
vagrant
signature.asc
Description: PGP signature
- Re: [workflow] Automatically close bug report when a patch is committed, (continued)
- Re: [workflow] Automatically close bug report when a patch is committed, Vagrant Cascadian, 2023/09/12
- Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/13
- Re: [workflow] Automatically close bug report when a patch is committed, Vagrant Cascadian, 2023/09/14
- Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/14
- Re: [workflow] Automatically close bug report when a patch is committed, Giovanni Biscuolo, 2023/09/07
Re: [workflow] Automatically close bug report when a patch is committed, Giovanni Biscuolo, 2023/09/07
Re: [workflow] Automatically close bug report when a patch is committed,
Vagrant Cascadian <=
Re: [workflow] Automatically close bug report when a patch is committed, Felix Lechner, 2023/09/07
Re: [workflow] Automatically close bug report when a patch is committed, Liliana Marie Prikler, 2023/09/09
Re: [workflow] Automatically close bug report when a patch is committed, Giovanni Biscuolo, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Liliana Marie Prikler, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Liliana Marie Prikler, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/11
Re: [workflow] Automatically close bug report when a patch is committed, Giovanni Biscuolo, 2023/09/12
Re: [workflow] Automatically close bug report when a patch is committed, Maxim Cournoyer, 2023/09/13