> What are the formats recognized by the git hooks to detect that a commit > refers to a Bugzilla bug, and post a message on that bug? We used to > write "PR gdb/1234" and it was recognized. Now, we use "Bug:" trailers, > like in this commit: > > https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=152a17495663ae9099d5efdc38322c9ad348014e > > ... but it doesn't seem recognized. Would it be possible to recognize > Bugzilla URLs? This is actually not handled by the git-hooks themselves. The hooks are simply configured to pass the information to a script which already exists prior to the hooks themselves. # Send a copy to bugzilla if a commit has a PR number in it. file-commit-cmd = "/sourceware/infra/bin/email-to-bugzilla -G 'gdb binutils'" I'm attaching the script to this email. Not sure who maintains that script, though. It doesn't look hard to enhance it further. -- Joel