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

Add outside_collaborators list #1561

Merged
merged 5 commits into from
Nov 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/main/java/org/kohsuke/github/GHOrganization.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,17 @@ public PagedIterable<GHUser> listPublicMembers() throws IOException {
return listMembers("public_members");
}

/**
* All the outside collaborators of this organization.
*
* @return the paged iterable
* @throws IOException
* the io exception
*/
public PagedIterable<GHUser> listOutsideCollaborators() throws IOException {
return listMembers("outside_collaborators");
Diegunix marked this conversation as resolved.
Show resolved Hide resolved
}

private PagedIterable<GHUser> listMembers(String suffix) throws IOException {
return listMembers(suffix, null, null);
}
Expand All @@ -332,6 +343,19 @@ public PagedIterable<GHUser> listMembersWithFilter(String filter) throws IOExcep
return listMembers("members", filter, null);
}

/**
* List outside collaborators with filter paged iterable.
*
* @param filter
* the filter
* @return the paged iterable
* @throws IOException
* the io exception
*/
public PagedIterable<GHUser> listOutsideCollaboratorsWithFilter(String filter) throws IOException {
return listMembers("outside_collaborators", filter, null);
}

/**
* List members with specified role paged iterable.
*
Expand Down