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

        @CheckForNull
        public long getInReplyToId()
        Gets in reply to id.
        Returns:
        the in reply to id
      • 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.
      • 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
      • 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