Package org.kohsuke.github
Class GHIssueComment
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.getRoot()
Deprecated.getUser()
Gets the user who posted this comment.Deprecated.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()
-
-
Method Details
-
getParent
Gets the issue to which this comment is associated.- Returns:
- the parent
-
getBody
The comment itself.- Returns:
- the body
-
getUserName
Deprecated.Gets the ID of the user who posted this comment.- Returns:
- the user name
-
getUser
Gets the user who posted this comment.- Returns:
- the user
- Throws:
IOException
- the io exception
-
getHtmlUrl
Gets the html url.- Specified by:
getHtmlUrl
in classGHObject
- 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
@Preview(SQUIRREL_GIRL) public GHReaction createReaction(ReactionContent content) throws IOException 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
-
getRoot
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
GitHub
instance, use a local copy instead of pulling it out of objects.