Skip to content
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

Github doesn't return private user repositories #65

Open
foot opened this issue Nov 15, 2020 · 1 comment
Open

Github doesn't return private user repositories #65

foot opened this issue Nov 15, 2020 · 1 comment
Assignees

Comments

@foot
Copy link
Collaborator

foot commented Nov 15, 2020

We use GET /users/{username}/repos which only returns the user's public repositories.

It seems we can use the search API to get the private repositories too https://api.github.com/search/repositories?q=user:USERNAME

@Seth-McKilla
Copy link

Hey I was having this same issue and fixed it by installing the GitHub app I created onto my own GitHub profile. Then both the public and private repos were returned using this method: https://docs.github.com/en/rest/repos/repos#list-repositories-for-the-authenticated-user

image

Hope this helps! 🤞 I was banging my head against the wall for a while on this one 😅

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 a pull request may close this issue.

3 participants