docs: add co-author attribution instructions for external contributors#423
Merged
docs: add co-author attribution instructions for external contributors#423
Conversation
Add instructions to CLAUDE.md's Source Control & Pull Requests section that encode the co-author policy from CONTRIBUTING.md. When a PR fixes a GitHub issue filed by an external contributor (not a repo collaborator), the commit should include a Co-authored-by trailer crediting them. The instructions tell Claude to check repo collaborators via the GitHub API to distinguish team members from external contributors, look up the contributor's name, and use their GitHub noreply email as a fallback. This ensures we honor the attribution promise in CONTRIBUTING.md automatically as part of the normal PR workflow.
There was a problem hiding this comment.
Review: Approved ✅
This is a clean documentation-only PR that adds co-author attribution instructions to CLAUDE.md.
What I Verified
- Consistency: The new instructions correctly encode the attribution policy from CONTRIBUTING.md (lines 29-32)
- Accuracy: The
gh apicommands are valid and will work as expected - Format: The
Co-authored-bytrailer format and fallback email format (<username>@users.noreply.github.com) follow GitHub standards - Clarity: The instructions are clear and actionable
No Blocking Issues
This is a straightforward documentation improvement that ensures Claude automatically follows the project's attribution policy for external contributors.
Reviewed with the DDD skill (not applicable to documentation changes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Source Control & Pull Requestssectionencoding the co-author attribution policy from CONTRIBUTING.md
collaborator), the commit should include a
Co-authored-bytrailergh api /repos/systeminit/swamp/collaboratorsto distinguishteam members from external contributors before adding the trailer
gh api /users/<username>to look up the contributor's name and fallsback to
<username>@users.noreply.github.comfor the emailWhy
Our CONTRIBUTING.md promises external
contributors who file issues that we will include them as a co-author on
the resulting PR. This change encodes that promise directly into Claude's
workflow instructions so it happens automatically — no manual reminder
needed.
Test plan
deno fmtpasses (no code changes, only markdown)diff in CLAUDE.md
🤖 Generated with Claude Code