java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHPullRequestReview.ReviewComment
- Enclosing class:
- GHPullRequestReview
Represents a review comment as returned by the review comments endpoint. This is a limited view that does not
include line-related fields such as
line, originalLine, side, etc.
To obtain the full GHPullRequestReviewComment with all fields, call
readPullRequestReviewComment().
- See Also:
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the author association to the project.getBody()The comment itself.Gets commit id.Gets diff hunk.Gets the html url.Gets commit id.intGets original position.getPath()Gets path.intGets position.Gets The ID of the pull request review to which the comment belongs.Gets URL for the pull request that the review comment belongs to.Gets the Reaction Rollup.getUser()Gets the user who posted this comment.Fetches the fullGHPullRequestReviewCommentfrom the API, which includes all fields such asline,originalLine,side, etc.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
ReviewComment
public ReviewComment()Create default ReviewComment instance
-
-
Method Details
-
getAuthorAssociation
Gets the author association to the project.- Returns:
- the author association to the project
-
getBody
The comment itself.- Returns:
- the body
-
getCommitId
Gets commit id.- Returns:
- the commit id
-
getDiffHunk
Gets diff hunk.- Returns:
- the diff hunk
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getOriginalCommitId
Gets commit id.- Returns:
- the original commit id
-
getOriginalPosition
public int getOriginalPosition()Gets original position.- Returns:
- the original position
-
getPath
Gets path.- Returns:
- the path
-
getPosition
public int getPosition()Gets position.- Returns:
- the position
-
getPullRequestReviewId
Gets The ID of the pull request review to which the comment belongs.- Returns:
Longthe ID of the pull request review
-
getPullRequestUrl
Gets URL for the pull request that the review comment belongs to.- Returns:
URLthe URL of the pull request
-
getReactions
Gets the Reaction Rollup.- Returns:
GHPullRequestReviewCommentReactionsthe reaction rollup
-
getUser
Gets the user who posted this comment.- Returns:
- the user
- Throws:
IOException- the io exception
-
readPullRequestReviewComment
Fetches the fullGHPullRequestReviewCommentfrom the API, which includes all fields such asline,originalLine,side, etc.- Returns:
- the full
GHPullRequestReviewComment - Throws:
IOException- if an I/O error occurs
-