java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHPullRequestReviewComment
- All Implemented Interfaces:
Reactable
Review comment to the pull request.
- Author:
- Julien Henry
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The side of the diff to which the comment applies -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
ConstructorDescriptionCreate default GHPullRequestReviewComment instance -
Method Summary
Modifier and TypeMethodDescriptioncreateReaction
(ReactionContent content) Creates the reaction.void
delete()
Deletes this review comment.void
deleteReaction
(GHReaction reaction) Delete reaction.protected String
Gets api route.protected String
getApiRoute
(boolean includePullNumber) Gets api route.Gets the author association to the project.getBody()
The comment itself.Gets The body in html format.Gets The body text.Gets commit id.Gets diff hunk.Gets the html url.long
Gets in reply to id.int
getLine()
Gets The line of the blob to which the comment applies.Gets commit id.int
Gets The line of the blob to which the comment applies.int
Gets original position.int
Gets The first line of the range for a multi-line comment.Gets the pull request to which this review comment is associated.getPath()
Gets path.int
Gets 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 RollupgetSide()
Gets The side of the diff to which the comment applies.int
Gets The first line of the range for a multi-line comment.Gets The side of the first line of the range for a multi-line comment.getUser()
Gets the user who posted this comment.List reactions.Create a new comment that replies to this comment.void
Updates the comment.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHPullRequestReviewComment
public GHPullRequestReviewComment()Create default GHPullRequestReviewComment instance
-
-
Method Details
-
getParent
Gets the pull request to which this review comment is associated.- Returns:
- the parent
-
getBody
The comment itself.- Returns:
- the body
-
getUser
Gets the user who posted this comment.- Returns:
- the user
- Throws:
IOException
- the io exception
-
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
Gets diff hunk.- Returns:
- the diff hunk
-
getCommitId
Gets commit id.- Returns:
- the commit id
-
getOriginalCommitId
Gets commit id.- Returns:
- the commit id
-
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
Gets the html url.- Returns:
- the html url
-
getApiRoute
Gets api route.- Returns:
- the api route
-
getApiRoute
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
-
getStartSide
Gets The side of the first line of the range for a multi-line comment.- Returns:
GHPullRequestReviewComment.Side
the side of the first 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
-
getSide
Gets The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment- Returns:
GHPullRequestReviewComment.Side
the side if the diff to which the comment applies
-
getPullRequestReviewId
Gets The ID of the pull request review to which the comment belongs.- Returns:
Long
the ID of the pull request review
-
getPullRequestUrl
Gets URL for the pull request that the review comment belongs to.- Returns:
URL
the URL of the pull request
-
getBodyHtml
Gets The body in html format.- Returns:
String
the body in html format
-
getBodyText
Gets The body text.- Returns:
String
the body text
-
getReactions
Gets the Reaction Rollup- Returns:
GHPullRequestReviewCommentReactions
the reaction rollup
-
update
Updates the comment.- Parameters:
body
- the body- Throws:
IOException
- the io exception
-
delete
Deletes this review comment.- Throws:
IOException
- the io exception
-
reply
Create a new comment that replies to this comment.- Parameters:
body
- the body- Returns:
- the gh pull request review comment
- Throws:
IOException
- the io exception
-
createReaction
Creates the reaction.- Specified by:
createReaction
in interfaceReactable
- Parameters:
content
- the content- Returns:
- the GH reaction
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
deleteReaction
Delete reaction.- Specified by:
deleteReaction
in interfaceReactable
- Parameters:
reaction
- the reaction- Throws:
IOException
- Signals that an I/O exception has occurred.
-
listReactions
List reactions.- Specified by:
listReactions
in interfaceReactable
- Returns:
- the paged iterable
-