Skip to content

Add the hackathon contributor leaderboard - #83

Merged
vsn411 merged 2 commits into
mainfrom
feat/contributor-leaderboard
Nov 11, 2026
Merged

vsn411 merged 2 commits into
mainfrom
feat/contributor-leaderboard

Conversation

@vsn411

@vsn411 vsn411 commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

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, renders LEADERBOARD.md, leaderboard.json and a shields.io badge.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 the leaderboard branch (main is protected) and comments the award on the merged PR.
  • .github/workflows/issue-difficulty.yml: creates the labels, marks issues without one as needs difficulty, and can backfill all open issues via workflow_dispatch.
  • CONTRIBUTING.md documents the rules; README.md links the board and badge.
  • tests/test_leaderboard.py: 15 tests over the scoring rules and rendering.

After merge

  1. Run Issue difficulty once (backfill on), then label the open issues.
  2. Run Leaderboard once to create the leaderboard branch.

Made with Cursor

@vsn411
vsn411 merged commit 28ff023 into main Nov 11, 2026
6 checks passed
@vsn411
vsn411 deleted the feat/contributor-leaderboard branch November 11, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant