Closed
Description
I've been able to list the repositories for a public organization:
GHOrganization org = gitHub.getOrganization("jenkinsci");
for (GHRepository r : org.getRepositories().values()) {
System.out.println("Repo: " + r.getName());
}
And I've been able to list the users for a private organization (I believe this should prove I'm successfully authenticating against that organization):
GHOrganization org = gitHub.getOrganization("merchantwarehouse");
List<GHUser> users = org.getMembers();
for (GHUser user : users) {
System.out.println("User: " + user.toString());
}
But when I try to list the repositories (all private) for the private organization, I get nothing. Have I missed a step?
My apologies if this is something that should have been obvious to me.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels