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
Constructors -
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
-
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.
-
delete
Deletes this issue comment.- Throws:
IOException
- the io exception
-
deleteReaction
Delete reaction.- Specified by:
deleteReaction
in 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
-
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:
listReactions
in interfaceReactable
- Returns:
- the paged iterable
-
update
Updates the body of the issue comment.- Parameters:
body
- the body- Throws:
IOException
- the io exception
-