From 3af3049313512b2e5763694ad9aea88697607054 Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 11 Nov 2026 10:19:15 -0300 Subject: [PATCH] multi: leave litbot-9000 out of release note contributors The release notes tool skips GitHub bot accounts by their [bot] suffix, but litbot-9000 commits under a plain name, partly with its operator's email, so v0.20.8 and v0.21.7 listed it as a contributor. Map its identities to a name with the suffix in .mailmap, matching the name as well as the email so the operator's own commits stay attributed to them. --- .mailmap | 7 +++++++ docs/release-notes/README.md | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 697d674506a..f3d9f0479fd 100644 --- a/.mailmap +++ b/.mailmap @@ -5,6 +5,10 @@ # # Add a line here, rather than editing the generated contributor list, when # a contributor appears under several names or prefers a different one. +# +# Bot accounts that don't use GitHub's "[bot]" suffix are mapped to a name +# with that suffix, which the release notes tool leaves out of the list. The +# name is matched too, since a bot may commit with its operator's email. elsirion hieblmi Kevin Cai @@ -16,3 +20,6 @@ Yong Yu Yong Yu Ziggie <90319354+ziggie1984@users.noreply.github.com> Ziggie +litbot-9000[bot] <58193817+litbot-9000@users.noreply.github.com> +litbot-9000[bot] +litbot-9000[bot] litbot-9000 diff --git a/docs/release-notes/README.md b/docs/release-notes/README.md index 2d5b0f099ba..3e0cd79884e 100644 --- a/docs/release-notes/README.md +++ b/docs/release-notes/README.md @@ -122,7 +122,9 @@ The fold is done by the Go program in `scripts/release-notes`: Git applies to `%aN`, instead of editing the generated list. That way the fix also applies to future releases. Names already listed under an alias are replaced with the `.mailmap` name on the next fold, while names added - by hand, such as co-authors, are kept. + by hand, such as co-authors, are kept. Bots are left out of the list: + GitHub bot accounts carry a `[bot]` suffix, and bot accounts without one + are mapped to a name with that suffix in `.mailmap`. 5. It deletes the folded fragments, but keeps `unreleased/.gitkeep` so the directory stays in place.