/** * Creates a new repository. * * @return * Newly created repository. */ public GHRepository createRepository(String name, String description, String homepage, String team, boolean isPublic) throws IOException { GHTeam t = getTeams().get(team); if (t==null) throw new IllegalArgumentException("No such team: "+team); return createRepository(name,description,homepage,t,isPublic); }
/** * Creates a new repository. * * @return * Newly created repository. * @deprecated * Use {@link #createRepository(String)} that uses a builder pattern to let you control every aspect. */ public GHRepository createRepository(String name, String description, String homepage, String team, boolean isPublic) throws IOException { GHTeam t = getTeams().get(team); if (t==null) throw new IllegalArgumentException("No such team: "+team); return createRepository(name, description, homepage, t, isPublic); }
/** * Creates a new repository. * * @return * Newly created repository. * @deprecated * Use {@link #createRepository(String)} that uses a builder pattern to let you control every aspect. */ public GHRepository createRepository(String name, String description, String homepage, String team, boolean isPublic) throws IOException { GHTeam t = getTeams().get(team); if (t==null) throw new IllegalArgumentException("No such team: "+team); return createRepository(name, description, homepage, t, isPublic); }
public GHTeam loadTeam(String organization, String team) throws IOException { if (gh != null && isAuthenticated()) { GHOrganization org = gh.getOrganization(organization); if (org != null) { Map<String, GHTeam> teamMap = org.getTeams(); return teamMap.get(team); } else return null; } else return null; } }