public class GHPullRequestReviewBuilder extends Object
GHPullRequestReview.GHPullRequest.createReview()| Modifier and Type | Method and Description |
|---|---|
GHPullRequestReviewBuilder |
body(String body)
Required when using REQUEST_CHANGES or COMMENT for the event parameter.
|
GHPullRequestReviewBuilder |
comment(String body,
String path,
int position) |
GHPullRequestReviewBuilder |
commitId(String commitId)
The SHA of the commit that needs a review.
|
GHPullRequestReview |
create() |
GHPullRequestReviewBuilder |
event(GHPullRequestReviewEvent event)
The review action you want to perform.
|
public GHPullRequestReviewBuilder commitId(String commitId)
public GHPullRequestReviewBuilder body(String body)
public GHPullRequestReviewBuilder event(GHPullRequestReviewEvent event)
public GHPullRequestReviewBuilder comment(String body, String path, int position)
body - The relative path to the file that necessitates a review comment.path - The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.position - Text of the review comment.public GHPullRequestReview create() throws IOException
IOExceptionCopyright © 2018. All rights reserved.