-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add review leaderboard, fix incorrect data of leaderboard #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add review leaderboard, fix incorrect data of leaderboard #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a Review Leaderboard feature to the hackathon dashboard and attempts to fix data accuracy issues in the existing PR leaderboard. The implementation fetches and displays GitHub PR review activity alongside PR contributions.
Key Changes:
- Added Review Leaderboard section to track and display PR review contributions
- Modified PR data processing logic to better track contributors and filter out bots/Copilot
- Changed API data fetching to sort by creation date instead of update date
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| js/main.js | Added renderReviewLeaderBoard() method to display review leaderboard, integrated review data fetching into initialization, added getReviewStateClass() helper for review state styling |
| js/github-api.js | Implemented getAllReviews() and processReviewData() methods for fetching and processing review data, refactored processPRData() to use new leaderboard structure, added generateReviewLeaderboard() method, modified issue/PR fetching to use creation date sorting |
| index.html | Added Review Leaderboard section to the page, added whitespace-pre-line class to rules section for proper formatting |
- Cache timeout reduced to 1 second will cause excessive API calls and rate limiting
- Missing variable
relevantByCreationin processPRData causing ReferenceError - Daily activity tracking broken due to removed initialization logic
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fixes: #7
Summary
This PR updates the Hackathon GitHub Pages implementation and adds the missing Review Leaderboard functionality. The goal is to keep the page simple, fully static, and easy to clone/modify through the config file.
Test Screenshot
NOTE: This is only tested for BLT REPO. And all the stats are related to the same.
I have tested my adding only the BLT repo in hackathon, to test the stats with these parameters
What’s Updated
Goal
Keep the hackathon page lightweight and easy for any org to clone, and run their own event with an up-to-date leaderboard. Fix the pr leaderboard and added review leaderboard. (Fully tested)