java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHIssueComment
- All Implemented Interfaces:
Reactable
- Direct Known Subclasses:
GHPullRequestReviewComment
Comment to the issue.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe author's association with the repository.protected StringThe comment body.protected StringThe comment body in HTML format.protected StringThe comment body in plain text format.protected StringThe HTML URL of the comment.protected GHUserThe user who created the comment.Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReaction(ReactionContent content) Creates the reaction.voiddelete()Deletes this issue comment.voiddeleteReaction(GHReaction reaction) Delete reaction.Gets author association.getBody()The comment itself.Gets the body in HTML format.Gets the body in plain text format.Gets the html url.Gets the issue to which this comment is associated.getUser()Gets the user who posted this comment.List reactions.voidUpdates the body of the issue comment.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Field Details
-
authorAssociation
The author's association with the repository. -
body
The comment body. -
bodyHtml
The comment body in HTML format. -
bodyText
The comment body in plain text format. -
htmlUrl
The HTML URL of the comment. -
user
The user who created the comment. Note: not fully populated, use getUser() for full details.
-
-
Constructor Details
-
GHIssueComment
public GHIssueComment()Create default GHIssueComment instance
-
-
Method Details
-
createReaction
Creates the reaction.- Specified by:
createReactionin interfaceReactable- Parameters:
content- the content- Returns:
- the GH reaction
- Throws:
IOException- Signals that an I/O exception has occurred.
-
delete
Deletes this issue comment.- Throws:
IOException- the io exception
-
deleteReaction
Delete reaction.- Specified by:
deleteReactionin interfaceReactable- Parameters:
reaction- the reaction- Throws:
IOException- Signals that an I/O exception has occurred.
-
getAuthorAssociation
Gets author association.- Returns:
- the author association
-
getBody
The comment itself.- Returns:
- the body
-
getBodyHtml
Gets the body in HTML format.- Returns:
- the body in HTML format
-
getBodyText
Gets the body in plain text format.- Returns:
- the body in plain text format
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getParent
Gets the issue to which this comment is associated.- Returns:
- the parent
-
getUser
Gets the user who posted this comment.- Returns:
- the user
- Throws:
IOException- the io exception
-
listReactions
List reactions.- Specified by:
listReactionsin interfaceReactable- Returns:
- the paged iterable
-
update
Updates the body of the issue comment.- Parameters:
body- the body- Throws:
IOException- the io exception
-