fix(rank): 排行榜过滤机器人账号(github-actions[bot] 等)#363
Merged
Conversation
generate-leaderboard 之前不过滤 bot,github-actions[bot](154 次自动化 commit) 排到第 2。在生成阶段按 [bot] 后缀 + 已知 bot id 兜底过滤,单一来源——JSON 里 没有 bot,rank/profile/sitemap 所有消费端都干净,不靠各处再写一遍 filter。 重新生成的 JSON:21 人(去掉 1 个 bot),0 条 community 链接,0 占位名。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
问题
贡献者排行榜没过滤机器人账号,
github-actions[bot](154 次 CI 自动化 commit)排在第 2。修复
在
generate-leaderboard.mts生成阶段过滤:按 GitHub 约定的[bot]后缀识别,外加已知 bot id(github-actions / dependabot / google-labs-jules)兜底。单一来源——bot 不进 JSON,则 rank tab / 个人主页 / sitemap 所有消费端都干净,不用各处再写一遍 filter。重新生成的
site-leaderboard.json:21 人(去掉 1 个 bot),0 条 community 链接,0 占位名。🤖 Generated with Claude Code