java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHIssueComment
- All Implemented Interfaces:
Reactable
Comment to the issue.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateReaction
(ReactionContent content) Creates the reaction.void
delete()
Deletes this issue comment.void
deleteReaction
(GHReaction reaction) Delete reaction.Gets author association.getBody()
The comment itself.Gets the html url.Gets the issue to which this comment is associated.getUser()
Gets the user who posted this comment.List reactions.void
Updates the body of the issue comment.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHIssueComment
public GHIssueComment()Create default GHIssueComment instance
-
-
Method Details
-
getParent
Gets the issue to which this 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
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getAuthorAssociation
Gets author association.- Returns:
- the author association
-
update
Updates the body of the issue comment.- Parameters:
body
- the body- Throws:
IOException
- the io exception
-
delete
Deletes this issue 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
-