Skip to content

chore: add .mailmap to fold the Claude co-author identity#107

Merged
hyoshi merged 1 commit into
mainfrom
chore/mailmap-drop-claude-coauthor
May 16, 2026
Merged

chore: add .mailmap to fold the Claude co-author identity#107
hyoshi merged 1 commit into
mainfrom
chore/mailmap-drop-claude-coauthor

Conversation

@hyoshi
Copy link
Copy Markdown
Collaborator

@hyoshi hyoshi commented May 16, 2026

Why

GitHub's contributors graph listed a claude contributor. Cause: a few early commits (e.g. PR #100) carried a Co-Authored-By: Claude … <noreply@anthropic.com> trailer; GitHub counts co-authors. No commit is authored by Claude.

Fix (non-destructive)

Add .mailmap mapping <noreply@anthropic.com> → the maintainer's canonical identity. git shortlog/blame and the GitHub contributors graph all honor .mailmap, so the spurious contributor disappears with no history rewrite — tags, the v0.9.0 GitHub Release, and PyPI are completely untouched.

Verified locally: git check-mailmap "Claude Opus 4.7 (1M context) <noreply@anthropic.com>"Hirokazu Yoshinaga <…@users.noreply.github.com>; git shortlog -sne --all no longer lists claude/anthropic.

Future prevention

~/.claude/settings.jsonincludeCoAuthoredBy: false (separate, user-global) so new commits/PRs never add the trailer.

A few early commits (e.g. PR #100) carried a
`Co-Authored-By: Claude … <noreply@anthropic.com>` trailer, which
made GitHub's contributors graph list a spurious "claude"
contributor. .mailmap canonicalizes that identity to the maintainer
so shortlog / blame / the GitHub contributors graph no longer show
it. No history is rewritten; tags, releases (v0.9.0) and PyPI are
untouched. Future attribution is separately disabled via
~/.claude/settings.json (includeCoAuthoredBy: false).
@hyoshi hyoshi merged commit 7c1709e into main May 16, 2026
8 checks passed
@hyoshi hyoshi deleted the chore/mailmap-drop-claude-coauthor branch May 16, 2026 10:25
hyoshi added a commit that referenced this pull request May 16, 2026
The .mailmap was added (#107) to drop the spurious "claude"
contributor, but GitHub does not remap Co-authored-by trailer
attribution via .mailmap, so it did not achieve its purpose. The
single legacy co-author trailer on #100 is accepted as-is; future
attribution is prevented at the source via ~/.claude/settings.json
(includeCoAuthoredBy: false + attribution commit/pr empty). Removing
the dead file.
@hyoshi hyoshi mentioned this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant