Skip to content

Getting private repositories for a private organization #62

Closed
@cwarren-mw

Description

@cwarren-mw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions