Class GHIssueComment

    • Constructor Detail

      • GHIssueComment

        public GHIssueComment()
    • Method Detail

      • 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
      • getUserName

        @Deprecated
        public String getUserName()
        Deprecated.
        Gets the ID of the user who posted this comment.
        Returns:
        the user name
      • 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()
        Description copied from class: GHObject
        Gets html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        URL of this object for humans, which renders some HTML.
      • 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