Skip to content

Commit d0db081

Browse files
authored
Add GHOrganization.listSecurityManagers()
Add support to list Security Managers in a GitHub Organization.
1 parent 6b2a487 commit d0db081

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,19 @@ private PagedIterable<GHUser> listMembers(final String suffix, final String filt
378378
.toIterable(GHUser[].class, null);
379379
}
380380

381+
/**
382+
* List up all the security managers.
383+
*
384+
* @return the paged iterable
385+
* @throws IOException
386+
* the io exception
387+
*/
388+
public PagedIterable<GHTeam> listSecurityManagers() throws IOException {
389+
return root().createRequest()
390+
.withUrlPath(String.format("/orgs/%s/security-managers", login))
391+
.toIterable(GHTeam[].class, item -> item.wrapUp(this));
392+
}
393+
381394
/**
382395
* Conceals the membership.
383396
*

0 commit comments

Comments
 (0)