Repository navigation
Add the hackathon contributor leaderboard - #83
Merged
Merged
Conversation
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.
Merged PRs earn points from the
difficulty:label on the issues they close: hard 10, medium 6, low 3. Contributors reach Bronze at 25, Silver at 50, Gold at 100.What's in it
scripts/leaderboard.py: scores every merged PR via GitHub's closing-issue links, rendersLEADERBOARD.md,leaderboard.jsonand a shields.iobadge.json. Each issue scores once (first PR to close it), bots are skipped, and issues closed without a difficulty label are listed under "Needs a difficulty label" so a maintainer can fix them and the next run credits the author..github/workflows/leaderboard.yml: runs on merged PRs (pull_request_target, so fork PRs get a write token; it never checks out PR code), on difficulty-label changes, every 6 hours and on demand. Publishes to theleaderboardbranch (main is protected) and comments the award on the merged PR..github/workflows/issue-difficulty.yml: creates the labels, marks issues without one asneeds difficulty, and can backfill all open issues via workflow_dispatch.CONTRIBUTING.mddocuments the rules;README.mdlinks the board and badge.tests/test_leaderboard.py: 15 tests over the scoring rules and rendering.After merge
leaderboardbranch.Made with Cursor