feat: add co-author support and bot filtering to contributors#17758
Open
myelinated-wackerow wants to merge 5 commits intodevfrom
Open
feat: add co-author support and bot filtering to contributors#17758myelinated-wackerow wants to merge 5 commits intodevfrom
myelinated-wackerow wants to merge 5 commits intodevfrom
Conversation
Parse Co-authored-by trailers from commit messages to include co-authors in page contributor lists. Add exclusion lists for AI agents and bots (Claude, Copilot, CodeRabbit, Gemini, etc.) to keep contributor lists human-only. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Resolve conflict in src/lib/utils/gh.ts by accepting dev version -- fetching logic moved to data-layer in PR #17174, so the old code from this branch is no longer needed here. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
Move co-author parsing, bot/AI filtering, and exclusion lists from the removed gh.ts fetching code into fetchGitHubContributors.ts where the contributor fetching now lives post-#17174. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
Add fallback chain for co-author resolution: 1. Extract login from GitHub noreply email 2. Match name against .all-contributorsrc 3. Fall back to trailer name (no avatar/link) Update FileContributors component to handle contributors without GitHub profiles by showing initials and name without link. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
Use avatars.githubusercontent.com/{login} instead of
the API's /u/{id}?v=4 format which causes redirect
loops with Next.js image optimization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
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
Contributor lists previously only showed primary commit authors, missing anyone credited via
Co-authored-by:trailers. This expands attribution to include co-authors and filters out bots/AI agents.What changed
Co-authored-by:trailers from commit messages and include co-authors in page contributor listsfetchGitHubContributors.ts(the data-layer fetcher from Move GitHub contributors fetching to scheduled data-layer task #17174), not the oldgh.ts.all-contributorsrc(1,500+ known contributors)avatars.githubusercontent.com/{login}instead of the API's/u/{id}?v=4format, which causes redirect loops with Next.js image optimizationFileContributorscomponent handles contributors without GitHub accounts (initials fallback, name without@prefix, no broken link)Excluded patterns
Logins: dependabot[bot], github-actions[bot], allcontributors[bot], netlify[bot], crowdin-bot, eth-bot, ethereumoptimism-bot, coderabbitai[bot]
Name patterns (case-insensitive): claude, copilot, gpt, chatgpt, openai, cursor, codeium, tabnine, amazon q, cody, gemini, coderabbit
Emails: noreply@anthropic.com, copilot@github.com, bot noreply addresses
Files changed
src/data-layer/fetchers/fetchGitHubContributors.ts-- co-author parsing, bot filtering, name lookup, avatar URL fixsrc/components/FileContributors.tsx-- no-profile contributor rendering (initials fallback, conditional link/label)Test plan
@prefix in modal.all-contributorsrcname match get proper avatarsGenerated with Claude Code