You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(github): show private repos for authenticated user's own account (#8680) (#8681)
Previously, when listing repos for the PAT owner's own account, the code
used /users/{username}/repos which only returns public repos.
Changes:
- Add getOwnerInfo() to fetch owner type (User/Organization) from API
- Add getAuthenticatedUserID() to get current user's ID
- Use switch on owner type to select the correct endpoint:
- Organization: /orgs/{owner}/repos
- Authenticated user: /user/repos (includes private repos)
- Other users: /users/{owner}/repos (public only)
- Rename function to listGithubOwnerRepos and parameter to 'owner'
- Add type=all query parameter to include all repo types
Closes#8680
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Klesh Wong <klesh@qq.com>
0 commit comments