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

GHUser.getRepositories() does not pull private repositories #88

Closed
anandcv opened this issue Apr 26, 2014 · 2 comments
Closed

GHUser.getRepositories() does not pull private repositories #88

anandcv opened this issue Apr 26, 2014 · 2 comments

Comments

@anandcv
Copy link

anandcv commented Apr 26, 2014

When I tries to pull repositories of a user, I get all public repositories.
But the list does not show private repository at all.

github = GitHub.connectUsingOAuth(oAuthToken);
user = github.getMyself();
Map<String,String> repos = new HashMap<String,String>();
this.repos = user.getRepositories();
System.out.println(Repos.toString());
kohsuke added a commit that referenced this issue May 10, 2014
@kohsuke
Copy link
Collaborator

kohsuke commented May 10, 2014

Resolved toward 1.53

@kohsuke kohsuke closed this as completed May 10, 2014
@anandcv
Copy link
Author

anandcv commented May 11, 2014

Thanks kohsuke,
I figured out I needed to use listAllRepositories() to pull private repository.
Thanks for wonderful code. Hope I can also contribute to opensource sometime.

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

No branches or pull requests

2 participants