I'm trying to list the private repositories of a user via the GitHub API. The request I'm currently making to GitHub is the following.
https://api.github.com/users/username/repos?sort=updated&direction=desc&visibility=all
It does return the user's repositories but not the private ones. At first I thought that the problem was with the scopes options on my OAuth token. I currently have the following set in my application.
'user',
'repo',
'repo_deployment',
'admin:repo_hook',
'admin:org_hook',
But even if I set all of the scope option on my dev box, I see all the public repositories but none of the user's private ones. I've also tried removing all of the parameters from the url. So that the request is the following.
https://api.github.com/users/username/repos
Which again did not return the user's private repositories.
I am trying to get the private repositories for the current user. But only the ones owned under their account.