fix: fetch all GitHub repositories in repo explorer using pagination#2903
fix: fetch all GitHub repositories in repo explorer using pagination#2903codecrafted1 wants to merge 3 commits into
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
The approach is right, but the implementation has issues that would break the build:
Please remove the old fetch logic entirely, remove the duplicate import, and verify it compiles locally before re-submitting. |
|
Thanks for working on the pagination fix — fetching all repos is the right goal. However the PR has some issues blocking merge:
Please clean up the imports and fix the try/catch structure, then push an update. |
|
Thanks for the review. I've addressed the issues raised:
I've verified the changes locally and pushed the updated commit. Ready for re-review. |
|
The pagination fix direction is right, but CI is red (5 failing checks). Please fix the failures and we'll re-review. |
|
The idea is right — |
Description
This PR fixes an issue where the Repository Explorer fetched only the first 100 repositories from the GitHub API, resulting in incomplete repository data for users with more than 100 repositories.
The route previously made a direct API request to
/user/repos?per_page=100, which only returned the first page of results. This PR replaces that logic with the existing paginatedfetchUserRepos()helper to ensure all repositories are retrieved.Related Issue
Fixes #2902
Type of Change
Changes Made
repo-explorer/route.ts.fetchUserRepos()utility fromsrc/lib/github.ts.Testing
Screenshots / Video
N/A (No UI changes)