org.kohsuke.github
Class GHRepository

java.lang.Object
  extended by org.kohsuke.github.GHRepository

public class GHRepository
extends Object

A repository on GitHub.

Author:
Kohsuke Kawaguchi

Constructor Summary
GHRepository()
           
 
Method Summary
 void addCollaborators(Collection<GHUser> users)
           
 void addCollaborators(GHUser... users)
           
 void delete()
          Deletes this repository.
 GHRepository fork()
          Forks this repository.
 Set<GHUser> getCollaborators()
          Gets the collaborators on this repository.
 String getDescription()
           
 int getForks()
           
 String getHomepage()
           
 String getName()
           
 GHUser getOwner()
           
protected  String getOwnerName()
           
 Set<URL> getPostCommitHooks()
          Returns a set that represents the post-commit hook URLs.
 String getUrl()
          URL of this repository, like 'http://github.com/kohsuke/hudson'
 int getWatchers()
           
 boolean hasDownloads()
           
 boolean hasIssues()
           
 boolean hasWiki()
           
 boolean isFork()
           
 boolean isPrivate()
           
 void removeCollaborators(Collection<GHUser> users)
           
 void removeCollaborators(GHUser... users)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GHRepository

public GHRepository()
Method Detail

getDescription

public String getDescription()

getHomepage

public String getHomepage()

getUrl

public String getUrl()
URL of this repository, like 'http://github.com/kohsuke/hudson'


getName

public String getName()

getOwner

public GHUser getOwner()
                throws IOException
Throws:
IOException

getOwnerName

protected String getOwnerName()

hasIssues

public boolean hasIssues()

hasWiki

public boolean hasWiki()

isFork

public boolean isFork()

getForks

public int getForks()

isPrivate

public boolean isPrivate()

hasDownloads

public boolean hasDownloads()

getWatchers

public int getWatchers()

getCollaborators

public Set<GHUser> getCollaborators()
                             throws IOException
Gets the collaborators on this repository. This set always appear to include the owner.

Throws:
IOException

addCollaborators

public void addCollaborators(GHUser... users)
                      throws IOException
Throws:
IOException

addCollaborators

public void addCollaborators(Collection<GHUser> users)
                      throws IOException
Throws:
IOException

removeCollaborators

public void removeCollaborators(GHUser... users)
                         throws IOException
Throws:
IOException

removeCollaborators

public void removeCollaborators(Collection<GHUser> users)
                         throws IOException
Throws:
IOException

delete

public void delete()
            throws IOException
Deletes this repository.

Throws:
IOException

fork

public GHRepository fork()
                  throws IOException
Forks this repository.

Throws:
IOException

getPostCommitHooks

public Set<URL> getPostCommitHooks()
Returns a set that represents the post-commit hook URLs. The returned set is live, and changes made to them are reflected to GitHub.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.