You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsite/docs/pull_request.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ with Github4s, you can interact with:
17
17
-[Reviews](#reviews)
18
18
-[List reviews](#list-pull-request-reviews)
19
19
-[Get a review](#get-an-individual-review)
20
+
-[Create a review](#create-a-review)
20
21
21
22
The following examples assume the following code:
22
23
@@ -219,6 +220,37 @@ The `result` on the right is the matching [PullRequestReview][pr-scala].
219
220
220
221
See [the API doc](https://developer.github.com/v3/pulls/reviews/#get-a-single-review) for full reference.
221
222
223
+
### Create a review
224
+
225
+
You can create a review for a pull request using `createReview`; it takes as arguments:
226
+
227
+
- the repository coordinates (`owner` and `name` of the repository).
228
+
- the pull request id.
229
+
-`commit_id` (as part of the `CreatePRReviewRequest` object): The SHA of the commit that needs a review. Defaults to the most recent commit.
230
+
-`body` (as part of the `CreatePRReviewRequest` object): Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
231
+
-`event` (as part of the `CreatePRReviewRequest` object): The review action you want to perform. By leaving this blank, you set the review action state to PENDING.
232
+
-`comments` (as part of the `CreatePRReviewRequest` object): An optional list of draft review comments.
0 commit comments