Skip to content

Comments

docs: add co-author attribution instructions for external contributors#423

Merged
stack72 merged 1 commit intomainfrom
docs/co-author-attribution
Feb 23, 2026
Merged

docs: add co-author attribution instructions for external contributors#423
stack72 merged 1 commit intomainfrom
docs/co-author-attribution

Conversation

@stack72
Copy link
Contributor

@stack72 stack72 commented Feb 23, 2026

Summary

  • Adds instructions to CLAUDE.md's Source Control & Pull Requests section
    encoding the co-author attribution 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
  • Claude checks gh api /repos/systeminit/swamp/collaborators to distinguish
    team members from external contributors before adding the trailer
  • Uses gh api /users/<username> to look up the contributor's name and falls
    back to <username>@users.noreply.github.com for the email

Why

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

  • Verify deno fmt passes (no code changes, only markdown)
  • Confirm the new instructions are clear and actionable by reviewing the
    diff in CLAUDE.md

🤖 Generated with Claude Code

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.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 api commands are valid and will work as expected
  • Format: The Co-authored-by trailer 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)

@stack72 stack72 enabled auto-merge (squash) February 23, 2026 14:21
@stack72 stack72 merged commit 9a46220 into main Feb 23, 2026
4 checks passed
@stack72 stack72 deleted the docs/co-author-attribution branch February 23, 2026 14:21
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