Skip to content

Commit 3a982a0

Browse files
Add blacklist support for contributors (#15)
* Initial plan * Initial implementation plan for blacklist feature Agent-Logs-Url: https://github.com/ohcnetwork/leaderboard-github-plugin/sessions/45cce8fe-c629-4318-b7bd-dd55930b6079 Co-authored-by: rithviknishad <25143503+rithviknishad@users.noreply.github.com> * Add blacklist support for contributors Agent-Logs-Url: https://github.com/ohcnetwork/leaderboard-github-plugin/sessions/45cce8fe-c629-4318-b7bd-dd55930b6079 Co-authored-by: rithviknishad <25143503+rithviknishad@users.noreply.github.com> * changeset --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: rithviknishad <25143503+rithviknishad@users.noreply.github.com> Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com> Co-authored-by: rithviknishad <mail@rithviknishad.dev>
1 parent 3d76753 commit 3a982a0

5 files changed

Lines changed: 5041 additions & 1 deletion

File tree

.changeset/curly-lights-wear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ohcnetwork/leaderboard-github-plugin": minor
3+
---
4+
5+
Adds support for blacklisting github users

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ leaderboard:
2020
# - ${{ env.GITHUB_TOKEN_1 }}
2121
# - ${{ env.GITHUB_TOKEN_2 }}
2222
# - ${{ env.GITHUB_TOKEN_3 }}
23+
# Optional: Blacklist contributors (exclude from tracking):
24+
# blacklist:
25+
# - invalid-email-address
26+
# - bot-account
2327
```
2428

2529
### Config Options
@@ -29,6 +33,7 @@ leaderboard:
2933
| `githubOrg` | `string` | Yes | GitHub organization name |
3034
| `githubToken` | `string` | Yes* | A single GitHub personal access token |
3135
| `githubTokens` | `string[]` | Yes* | Array of GitHub tokens for rotation on rate limit |
36+
| `blacklist` | `string[]` | No | Array of GitHub usernames to exclude from tracking |
3237

3338
\* At least one of `githubToken` or `githubTokens` must be provided. When multiple tokens are supplied, the plugin automatically rotates to the next available token when one hits GitHub's rate limit, instead of waiting an hour.
3439

0 commit comments

Comments
 (0)