On Wed, 4 Dec 2024 at 20:43, Vineet Gupta <vine...@rivosinc.com> wrote: > > On 12/4/24 11:48, Jonathan Wakely wrote: > >> gcc/ChangeLog: > >> PR target/11472 > > Note that you typo'd the PR number here, so that it added a comment > > to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11472 > > Apologies my bad. > > In my defense I ran following: > > ./contrib/gcc-changelog/git_check_commit.py
Yes, it seems this script doesn't notice this problem. It will complain if the summary line has [PRnnn] and the ChangeLog part doesn't have a matching PR, but apparently it doesn't complain the other way around. Or maybe it didn't complain because the ChangeLog part contained *both* PR target/114729 and PR target/11472, and so the PR/114729 in the summary did match something in the ChangeLog part. > ./contrib/check_GNU_style.sh > > > > The server-side git hooks that check commit logs didn't notice it, > > because you used [PR/114729] in the subject line, which should be in > > the form [PR114729]. If you'd used the correct form, the hooks would > > have told you that the two PR numbers didn't match. > > > > I see you've been using the PR/nnn form for all your commits, please > > use the [PRnnn] form as described at > > https://gcc.gnu.org/contribute.html#patches > > Alright I'll do this going fwd. > > Thx, > -Vineet >