Repository navigation
fix(scripts): never count bots or AI agents as contributors - #329
Merged
danbaruka merged 1 commit intoOct 14, 2026
Merged
Conversation
The build-time fetch filtered on type !== 'Bot' plus a dependabot name check, which misses automation accounts GitHub reports as type 'User' — cursoragent is one, and it sits exactly on the .slice(0, 15) boundary, so it flickers in and out of the rendered contributor list depending on tie ordering. A Claude or Copilot agent account would land the same way. Filter the login against the automation patterns (bot, dependabot, agent, copilot, claude, cursor, codex, devin) in addition to the type check, so no automation account can render as a person. Verified by running the script: 15 human contributors, cursoragent excluded. Refs IntersectMBO#326
danbaruka
approved these changes
Oct 14, 2026
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.
Description
The build-time fetch that populates the homepage community section filtered contributors on the account type plus a hard-coded Dependabot name check:
GitHub only labels some automation accounts as type
Bot.cursoragentis reported as typeUserwith 1 contribution, and it sits at position 15 in the API's contribution order — exactly the boundary of the script's.slice(0, 15)— so it flickers in and out of the rendered contributor list depending on tie ordering. It was present in the snapshot committed on 2026-08-01 and absent from a fetch run today. SinceContributors.tsxrenders whatever the snapshot contains, the site can present an AI coding agent as a person who contributed. Aclaude,copilot-swe-agent,codex-agentordevin-*account would land the same way.This filters the login against automation patterns in addition to the type check, so no automation account can render as a contributor. Widening the slice would not have fixed it — that only moves the boundary.
Type of Change
Testing
Ran the script end to end against the live API:
Filter behaviour against agent-style logins that could appear later:
Notes for review
scripts/fetch-github-data.js. It does not touch the committed snapshot, so nothing inwebsite/src/data/githubData.jsonchanges here — that file is regenerated by theprebuildhook on every build.agent,cursor,claude, …). A human login containing one of those words would be filtered too; none exist in this repo's contributor list today.Fixes #326
Checklist