public class GHPullRequestReview extends GHObject
created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHPullRequestReview() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this review.
|
void |
dismiss(String message)
Dismisses this review.
|
protected String |
getApiRoute()
Gets api route.
|
String |
getBody()
The comment itself.
|
String |
getCommitId()
Gets commit id.
|
Date |
getCreatedAt()
Since this method does not exist, we forward this value.
|
URL |
getHtmlUrl()
Gets html url.
|
GHPullRequest |
getParent()
Gets the pull request to which this review is associated.
|
GHPullRequestReviewState |
getState()
Gets state.
|
Date |
getSubmittedAt()
When was this resource created?
|
GHUser |
getUser()
Gets the user who posted this review.
|
PagedIterable<GHPullRequestReviewComment> |
listReviewComments()
Obtains all the review comments associated with this pull request review.
|
void |
submit(String body,
GHPullRequestReviewEvent event)
Updates the comment.
|
void |
submit(String body,
GHPullRequestReviewState state)
Deprecated.
Former preview method that changed when it got public. Left here for backward compatibility. Use
submit(String, GHPullRequestReviewEvent) |
getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic GHPullRequest getParent()
public String getBody()
public GHUser getUser() throws IOException
IOException - the io exceptionpublic String getCommitId()
@CheckForNull public GHPullRequestReviewState getState()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectprotected String getApiRoute()
public Date getSubmittedAt() throws IOException
IOException - the io exceptionpublic Date getCreatedAt() throws IOException
getCreatedAt in class GHObjectIOException - on errorpublic void submit(String body, GHPullRequestReviewState state) throws IOException
submit(String, GHPullRequestReviewEvent)body - the bodystate - the stateIOException - the io exceptionpublic void submit(String body, GHPullRequestReviewEvent event) throws IOException
body - the bodyevent - the eventIOException - the io exceptionpublic void delete()
throws IOException
IOException - the io exceptionpublic void dismiss(String message) throws IOException
message - the messageIOException - the io exceptionpublic PagedIterable<GHPullRequestReviewComment> listReviewComments() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.