1
0
Fork 0
forked from forgejo/forgejo

[GITEA] POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments

Refs: https://codeberg.org/forgejo/forgejo/issues/2109
(cherry picked from commit 8b4ba3dce7)
This commit is contained in:
Earl Warren 2024-01-09 12:49:18 +01:00
parent ef5e1b01b8
commit 196edea0f9
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
7 changed files with 298 additions and 21 deletions

View file

@ -1228,7 +1228,8 @@ func Routes() *web.Route {
Delete(reqToken(), repo.DeletePullReview).
Post(reqToken(), bind(api.SubmitPullReviewOptions{}), repo.SubmitPullReview)
m.Combo("/comments").
Get(repo.GetPullReviewComments)
Get(repo.GetPullReviewComments).
Post(reqToken(), bind(api.CreatePullReviewCommentOptions{}), repo.CreatePullReviewComment)
m.Post("/dismissals", reqToken(), bind(api.DismissPullReviewOptions{}), repo.DismissPullReview)
m.Post("/undismissals", reqToken(), repo.UnDismissPullReview)
})