Package org.kohsuke.github
Class GHIssueComment
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHIssueComment
-
- All Implemented Interfaces:
Reactable
public class GHIssueComment extends GHObject implements Reactable
Comment to the issue- Author:
- Kohsuke Kawaguchi
- See Also:
GHIssue#comment(String),GHIssue#listComments()
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHIssueComment()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GHReactioncreateReaction(ReactionContent content)Deprecated.voiddelete()Deletes this issue comment.GHCommentAuthorAssociationgetAuthorAssociation()Gets author association.StringgetBody()The comment itself.URLgetHtmlUrl()Gets html url.GHIssuegetParent()Gets the issue to which this comment is associated.GHUsergetUser()Gets the user who posted this comment.StringgetUserName()Deprecated.PagedIterable<GHReaction>listReactions()Deprecated.voidupdate(String body)Updates the body of the issue comment.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Method Detail
-
getParent
public GHIssue getParent()
Gets the issue to which this comment is associated.- Returns:
- the parent
-
getBody
public String getBody()
The comment itself.- Returns:
- the body
-
getUserName
@Deprecated public String getUserName()
Deprecated.Gets the ID of the user who posted this comment.- Returns:
- the user name
-
getUser
public GHUser getUser() throws IOException
Gets the user who posted this comment.- Returns:
- the user
- Throws:
IOException- the io exception
-
getHtmlUrl
public URL getHtmlUrl()
Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getAuthorAssociation
public GHCommentAuthorAssociation getAuthorAssociation()
Gets author association.- Returns:
- the author association
-
update
public void update(String body) throws IOException
Updates the body of the issue comment.- Parameters:
body- the body- Throws:
IOException- the io exception
-
delete
public void delete() throws IOExceptionDeletes this issue comment.- Throws:
IOException- the io exception
-
createReaction
@Preview @Deprecated public GHReaction createReaction(ReactionContent content) throws IOException
Deprecated.Description copied from interface:ReactableLeaves a reaction to this object.- Specified by:
createReactionin interfaceReactable- Parameters:
content- the content- Returns:
- the gh reaction
- Throws:
IOException- the io exception
-
listReactions
@Preview @Deprecated public PagedIterable<GHReaction> listReactions()
Deprecated.Description copied from interface:ReactableList all the reactions left to this object.- Specified by:
listReactionsin interfaceReactable- Returns:
- the paged iterable
-
-