org.kohsuke.github
Class GHOrganization
java.lang.Object
org.kohsuke.github.GHPerson
org.kohsuke.github.GHOrganization
public class GHOrganization
- extends GHPerson
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GHOrganization
public GHOrganization()
createRepository
public GHRepository createRepository(String name,
String description,
String homepage,
String team,
boolean isPublic)
throws IOException
- Creates a new repository.
- Returns:
- Newly created repository.
- Throws:
IOException
getTeams
public Map<String,GHTeam> getTeams()
throws IOException
- Teams by their names.
- Throws:
IOException
createTeam
public GHTeam createTeam(String name,
GHOrganization.Permission p,
Collection<GHRepository> repositories)
throws IOException
- Creates a new team and assigns the repositories.
- Throws:
IOException
createTeam
public GHTeam createTeam(String name,
GHOrganization.Permission p,
GHRepository... repositories)
throws IOException
- Throws:
IOException
getRepositoriesWithOpenPullRequests
public List<GHRepository> getRepositoriesWithOpenPullRequests()
throws IOException
- List up repositories that has some open pull requests.
- Throws:
IOException
getPullRequests
public List<GHPullRequest> getPullRequests()
throws IOException
- Gets all the open pull requests in this organizataion.
- Throws:
IOException
Copyright © 2011. All Rights Reserved.