Class GHPullRequestReviewComment

    • Constructor Detail

      • GHPullRequestReviewComment

        public GHPullRequestReviewComment()
    • Method Detail

      • getParent

        public GHPullRequest getParent()
        Gets the pull request to which this review 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
      • getPath

        public String getPath()
        Gets path.
        Returns:
        the path
      • getPosition

        @CheckForNull
        public int getPosition()
        Gets position.
        Returns:
        the position
      • getOriginalPosition

        public int getOriginalPosition()
        Gets original position.
        Returns:
        the original position
      • getDiffHunk

        public String getDiffHunk()
        Gets diff hunk.
        Returns:
        the diff hunk
      • getCommitId

        public String getCommitId()
        Gets commit id.
        Returns:
        the commit id
      • getOriginalCommitId

        public String getOriginalCommitId()
        Gets commit id.
        Returns:
        the commit id
      • getAuthorAssociation

        public GHCommentAuthorAssociation getAuthorAssociation()
        Gets the author association to the project.
        Returns:
        the author association to the project
      • getInReplyToId

        @CheckForNull
        public long getInReplyToId()
        Gets in reply to id.
        Returns:
        the in reply to id
      • getHtmlUrl

        public URL getHtmlUrl()
        Gets the html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        the html url
      • getApiRoute

        protected String getApiRoute()
        Gets api route.
        Returns:
        the api route
      • getApiRoute

        protected String getApiRoute​(boolean includePullNumber)
        Gets api route.
        Parameters:
        includePullNumber - if true, includes the owning pull request's number in the route.
        Returns:
        the api route
      • getStartLine

        public int getStartLine()
        Gets The first line of the range for a multi-line comment.
        Returns:
        the start line
      • getOriginalStartLine

        public int getOriginalStartLine()
        Gets The first line of the range for a multi-line comment.
        Returns:
        the original start line
      • getLine

        public int getLine()
        Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment.
        Returns:
        the line to which the comment applies
      • getOriginalLine

        public int getOriginalLine()
        Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment.
        Returns:
        the line to which the comment applies
      • getPullRequestReviewId

        public Long getPullRequestReviewId()
        Gets The ID of the pull request review to which the comment belongs.
        Returns:
        Long the ID of the pull request review
      • getPullRequestUrl

        public URL getPullRequestUrl()
        Gets URL for the pull request that the review comment belongs to.
        Returns:
        URL the URL of the pull request
      • getBodyHtml

        public String getBodyHtml()
        Gets The body in html format.
        Returns:
        String the body in html format
      • getBodyText

        public String getBodyText()
        Gets The body text.
        Returns:
        String the body text
      • update

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

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

        @Deprecated
        public GitHub getRoot()
        Deprecated.
        For access to the GitHub instance, use a local copy instead of pulling it out of objects.
        Get the root GitHub instance for this object.
        Returns:
        the root GitHub instance