Class GHIssueComment

java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHIssueComment
All Implemented Interfaces:
Reactable

public class GHIssueComment extends GHObject implements Reactable
Comment to the issue.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHIssueComment

      public GHIssueComment()
      Create default GHIssueComment instance
  • Method Details

    • getParent

      public GHIssue getParent()
      Gets the issue to which this comment is associated.
      Returns:
      the parent
    • getBody

      public String getBody()
      The comment itself.
      Returns:
      the body
    • getUser

      public GHUser getUser() throws IOException
      Gets the user who posted this comment.
      Returns:
      the user
      Throws:
      IOException - the io exception
    • getHtmlUrl

      public URL getHtmlUrl()
      Gets the html url.
      Returns:
      the html url
    • getAuthorAssociation

      public GHCommentAuthorAssociation getAuthorAssociation()
      Gets author association.
      Returns:
      the author association
    • update

      public void update(String body) throws IOException
      Updates the body of the issue comment.
      Parameters:
      body - the body
      Throws:
      IOException - the io exception
    • delete

      public void delete() throws IOException
      Deletes this issue comment.
      Throws:
      IOException - the io exception
    • createReaction

      public GHReaction createReaction(ReactionContent content) throws IOException
      Creates the reaction.
      Specified by:
      createReaction in interface Reactable
      Parameters:
      content - the content
      Returns:
      the GH reaction
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • deleteReaction

      public void deleteReaction(GHReaction reaction) throws IOException
      Delete reaction.
      Specified by:
      deleteReaction in interface Reactable
      Parameters:
      reaction - the reaction
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • listReactions

      public PagedIterable<GHReaction> listReactions()
      List reactions.
      Specified by:
      listReactions in interface Reactable
      Returns:
      the paged iterable