public class GHPullRequestReviewComment extends GHObject implements Reactable
GHPullRequest#listReviewComments(),
GHPullRequest#createReviewComment(String, String,
String, int)created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHPullRequestReviewComment() |
| Modifier and Type | Method and Description |
|---|---|
GHReaction |
createReaction(ReactionContent content)
Deprecated.
|
void |
delete()
Deletes this review comment.
|
static GHPullRequestReviewComment |
draft(String body,
String path,
int position)
Deprecated.
You should be using
GHPullRequestReviewBuilder.comment(String, String, int) |
protected String |
getApiRoute()
Gets api route.
|
String |
getBody()
The comment itself.
|
URL |
getHtmlUrl()
Gets html url.
|
long |
getInReplyToId()
Gets in reply to id.
|
int |
getOriginalPosition()
Gets original position.
|
GHPullRequest |
getParent()
Gets the pull request to which this review comment is associated.
|
String |
getPath()
Gets path.
|
int |
getPosition()
Gets position.
|
GHUser |
getUser()
Gets the user who posted this comment.
|
PagedIterable<GHReaction> |
listReactions()
Deprecated.
|
GHPullRequestReviewComment |
reply(String body)
Create a new comment that replies to this comment.
|
void |
update(String body)
Updates the comment.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic static GHPullRequestReviewComment draft(String body, String path, int position)
GHPullRequestReviewBuilder.comment(String, String, int)body - the bodypath - the pathposition - the positionpublic GHPullRequest getParent()
public String getBody()
public GHUser getUser() throws IOException
IOException - the io exceptionpublic String getPath()
@CheckForNull public int getPosition()
public int getOriginalPosition()
@CheckForNull public long getInReplyToId()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectprotected String getApiRoute()
public void update(String body) throws IOException
body - the bodyIOException - the io exceptionpublic void delete()
throws IOException
IOException - the io exceptionpublic GHPullRequestReviewComment reply(String body) throws IOException
body - the bodyIOException - the io exception@Preview @Deprecated public GHReaction createReaction(ReactionContent content) throws IOException
ReactablecreateReaction in interface Reactablecontent - the contentIOException - the io exception@Preview @Deprecated public PagedIterable<GHReaction> listReactions()
ReactablelistReactions in interface ReactableCopyright © 2020. All rights reserved.