On 2023-09-07, Giovanni Biscuolo wrote: > Hi Maxim and Ludovic, > Maxim Cournoyer writes: >> Giovanni Biscuolo writes: .. >>> When I asket I though the best way would be to scan for a string like >>> "Close #" 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: #" 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: #" 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