/** If this repository belongs to an organization, return a set of teams. */ public Set<GHTeam> getTeams() throws IOException { return Collections.unmodifiableSet( new HashSet<GHTeam>( Arrays.asList( GHTeam.wrapUp( root.retrieve() .to("/repos/" + owner.login + "/" + name + "/teams", GHTeam[].class), root.getOrganization(owner.login))))); }