org.kohsuke.github
Class GHIssue

java.lang.Object
  extended by org.kohsuke.github.GHIssue
Direct Known Subclasses:
GHPullRequest

public class GHIssue
extends Object

Represents an issue on GitHub.

Author:
Eric Maupin, Kohsuke Kawaguchi

Constructor Summary
GHIssue()
           
 
Method Summary
 void close()
          Closes this issue.
 void comment(String message)
          Updates the issue by adding a comment.
 String getBody()
          The description of this pull request.
 List<GHIssueComment> getComments()
          Obtains all the comments associated with this issue.
 Date getCreatedAt()
           
 Collection<String> getLabels()
           
 int getNumber()
          ID.
 GHRepository getRepository()
          Repository to which the issue belongs.
 GHIssueState getState()
           
 String getTitle()
           
 Date getUpdatedAt()
           
 URL getUrl()
          The HTML page of this issue, like https://github.com/jenkinsci/jenkins/issues/100
 void reopen()
          Reopens this issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHIssue

public GHIssue()
Method Detail

getRepository

public GHRepository getRepository()
Repository to which the issue belongs.


getBody

public String getBody()
The description of this pull request.


getNumber

public int getNumber()
ID.


getUrl

public URL getUrl()
The HTML page of this issue, like https://github.com/jenkinsci/jenkins/issues/100


getTitle

public String getTitle()

getState

public GHIssueState getState()

getLabels

public Collection<String> getLabels()

getCreatedAt

public Date getCreatedAt()

getUpdatedAt

public Date getUpdatedAt()

comment

public void comment(String message)
             throws IOException
Updates the issue by adding a comment.

Throws:
IOException

close

public void close()
           throws IOException
Closes this issue.

Throws:
IOException

reopen

public void reopen()
            throws IOException
Reopens this issue.

Throws:
IOException

getComments

public List<GHIssueComment> getComments()
                                 throws IOException
Obtains all the comments associated with this issue.

Throws:
IOException


Copyright © 2012. All Rights Reserved.