From cae416e72baa2771b049d3575ba7cfb08f683e88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 17:30:20 +0000 Subject: [PATCH 1/2] Initial plan From f951ca8057777be3a8b93c57f3cae281ef654590 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 17:33:13 +0000 Subject: [PATCH 2/2] Remove bots and agents from leaderboard Co-authored-by: naheel0 <191262736+naheel0@users.noreply.github.com> --- profile/README.md | 6 +++--- profile/scripts/updateReadme.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/profile/README.md b/profile/README.md index 8234ab7..a064330 100644 --- a/profile/README.md +++ b/profile/README.md @@ -58,9 +58,9 @@ Browse issues labeled **`good first issue`** across our repos to get started. | Rank | Avatar | Username | Total | Commits | PRs | Issues | Reviews | Docs | |------|--------|----------|------:|--------:|----:|------:|--------:|----:| | 🥇 | | [@naheel0](https://github.com/naheel0) | **83** | 39 | 11 | 0 | 10 | 23 | -| 🥈 | | [@Copilot](https://github.com/Copilot) | **39** | 22 | 11 | 0 | 0 | 6 | -| 🥉 | | [@jaseel0](https://github.com/jaseel0) | **27** | 12 | 0 | 0 | 8 | 7 | -| 4 | | [@github-actions[bot]](https://github.com/github-actions[bot]) | **8** | 4 | 0 | 0 | 0 | 4 | +| 🥈 | | [@jaseel0](https://github.com/jaseel0) | **27** | 12 | 0 | 0 | 8 | 7 | +| 3 | - | - | - | - | - | - | - | - | +| 4 | - | - | - | - | - | - | - | - | | 5 | - | - | - | - | - | - | - | - | | 6 | - | - | - | - | - | - | - | - | | 7 | - | - | - | - | - | - | - | - | diff --git a/profile/scripts/updateReadme.js b/profile/scripts/updateReadme.js index 04104cd..99cf9d1 100644 --- a/profile/scripts/updateReadme.js +++ b/profile/scripts/updateReadme.js @@ -47,6 +47,13 @@ async function getAllPages(apiPath) { return results; } +function isBot(user) { + if (!user) return false; + if (user.type === 'Bot') return true; + if (user.login && user.login.endsWith('[bot]')) return true; + return false; +} + async function main() { if (!TOKEN) { console.error('GIT_PAT is not set'); @@ -63,6 +70,7 @@ async function main() { try { const contribs = await getAllPages(`/repos/${ORG}/${repo.name}/contributors`); for (const c of contribs) { + if (isBot(c)) continue; if (!contributors[c.login]) { contributors[c.login] = { login: c.login, @@ -86,6 +94,7 @@ async function main() { if (!pr.merged_at) continue; const login = pr.user && pr.user.login; if (!login) continue; + if (isBot(pr.user)) continue; if (!contributors[login]) { contributors[login] = { login, @@ -109,6 +118,7 @@ async function main() { if (issue.pull_request) continue; const login = issue.user && issue.user.login; if (!login) continue; + if (isBot(issue.user)) continue; if (!contributors[login]) { contributors[login] = { login,