[Ready for review] Add contributors page with data collection pipeline#17
Open
Hangzhi wants to merge 2 commits intoharbor-framework:mainfrom
Open
[Ready for review] Add contributors page with data collection pipeline#17Hangzhi wants to merge 2 commits intoharbor-framework:mainfrom
Hangzhi wants to merge 2 commits intoharbor-framework:mainfrom
Conversation
- Add three Python scripts to collect merged PR data, author info, and generate ranked contribution aggregates from laude-institute/harbor - Create /contributors page with Harbor Contributors, Adapter Contributors, and Acknowledgments sections using the same tile grid pattern as /registry - Add Contributors nav tab in the shared layout
👷 Deploy request for harborframework pending review.Visit the deploys page to approve it
|
526e39f to
4eaaeba
Compare
- Move scripts to utils/contributors/src/ and data to utils/contributors/data/ - Remove redundant public/harbor_contribution.json copy - Add ctbcli with refresh, refresh-prdata, refresh-userdata, generate commands - Add verified_github_users_data.json as source of truth for curated info - Rank Harbor Contributors by rank then non-adapter PR count - Rank Adapter Contributors by adapter_rank then adapter PR count - Show name, GitHub handle, and role on contributor cards - Include verified users with no PRs (e.g. advisors) in output - Refresh data: 332 merged PRs, 126 contributors - Add README documenting the pipeline
4eaaeba to
3c257ab
Compare
Slimshilin
approved these changes
Mar 9, 2026
Contributor
Slimshilin
left a comment
There was a problem hiding this comment.
Thanks for collecting this! lgtm 💯
We can update later once we have more contributor onboard.
Just a question: will the contributor page automatically sync as we merge more github PRs, or we need to manually run some script and submit new PRs to the doc to reflect the changes?
Author
It's not automated yet. It's complicated and not necessary to implement this data update automation as a part of the web app. A proper approach should be a github Action |
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.
Summary
/contributorspage as a top-level route (parallel to/registry) with three sections: Harbor Contributors, Harbor Adapter Contributors, and Acknowledgmentsutils/contributors/pipeline to collect and aggregate contributor data fromlaude-institute/harborvia GitHub APIctbcliCLI tool to manage the data refresh workflowHow it works
Data pipeline (
utils/contributors/)Three Python scripts collect and merge data:
collect_pr_data.py— fetches all merged PRs fromlaude-institute/harbor, classifies each asadapter,task,engineering, orother, writesraw_pr_data.jsoncollect_user_data.py— fetches GitHub profiles for each unique PR author, writesraw_github_users_data.jsongenerate_contributions.py— merges PR data with user data (verified data takes precedence over raw GitHub data), aggregates per contributor, and writesharbor_contribution.jsonVerified data (
verified_github_users_data.json)Manually curated file that overrides raw GitHub profile data. Supports
role(displayed on card),rank(sort priority for Harbor section), andadapter_rank(sort priority for Adapter section). Contributors in verified data with no PRs (e.g. advisors) are included automatically.Ranking
rank(desc) → non-adapter PR count (desc) → last name (asc)adapter_rank(desc) → adapter PR count (desc) → last name (asc)CLI (
ctbcli)Contributor card
Shows contributor name as title, with GitHub handle and role as subtitle. Falls back to
@handlewhen no name is available.harbor_contributor_page.mp4