Skip to content

Commit c74edbb

Browse files
committed
Add outside_collaborators list
1 parent ee1f068 commit c74edbb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/java/org/kohsuke/github/GHOrganization.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,17 @@ public PagedIterable<GHUser> listPublicMembers() throws IOException {
315315
return listMembers("public_members");
316316
}
317317

318+
/**
319+
* All the outside collaborators of this organization.
320+
*
321+
* @return the paged iterable
322+
* @throws IOException
323+
* the io exception
324+
*/
325+
public PagedIterable<GHUser> listOutsideCollaborators() throws IOException {
326+
return listMembers("outside_collaborators");
327+
}
328+
318329
private PagedIterable<GHUser> listMembers(String suffix) throws IOException {
319330
return listMembers(suffix, null, null);
320331
}
@@ -332,6 +343,19 @@ public PagedIterable<GHUser> listMembersWithFilter(String filter) throws IOExcep
332343
return listMembers("members", filter, null);
333344
}
334345

346+
/**
347+
* List outside collaborators with filter paged iterable.
348+
*
349+
* @param filter
350+
* the filter
351+
* @return the paged iterable
352+
* @throws IOException
353+
* the io exception
354+
*/
355+
public PagedIterable<GHUser> listOutsideCollaboratorsWithFilter(String filter) throws IOException {
356+
return listMembers("outside_collaborators", filter, null);
357+
}
358+
335359
/**
336360
* List members with specified role paged iterable.
337361
*

0 commit comments

Comments
 (0)