-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Add pull review endpoints #11224
API: Add pull review endpoints #11224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #11224 +/- ##
=======================================
Coverage 43.76% 43.76%
=======================================
Files 607 607
Lines 86807 86807
=======================================
Hits 37995 37995
Misses 44120 44120
Partials 4692 4692 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only some small nits.
Co-authored-by: David Svantesson <davidsvantesson@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can consider my review comments, but they are merely opinions so I approve this.
* API: Added pull review read only endpoints * Update Structs, move Conversion, Refactor * refactor * lint & co * fix lint + refactor * add new Review state, rm unessesary, refacotr loadAttributes, convert patch to diff * add DeletePullReview * add paggination * draft1: Create & submit review * fix lint * fix lint * impruve test * DONT use GhostUser for loadReviewer * expose comments_count of a PullReview * infent GetCodeCommentsCount() * fixes * fix+impruve * some nits * Handle Ghosts 👻 * add TEST for GET apis * complete TESTS * add HTMLURL to PullReview responce * code format as per @lafriks * update swagger definition * Update routers/api/v1/repo/pull_review.go Co-authored-by: David Svantesson <davidsvantesson@gmail.com> * add comments Co-authored-by: Thomas Berger <loki@lokis-chaos.de> Co-authored-by: David Svantesson <davidsvantesson@gmail.com>
GET /repos/:owner/:repo/pulls/:pull_number/reviews
ListPullReviewsGET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id
GetPullReviewGET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments
GetPullReviewCommentsPOST /repos/:owner/:repo/pulls/:pull_number/reviews
CreatePullReviewPOST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id
SubmitPullReviewDELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id
DeletePullReviewToDo:
take things of #10005
and finish it ...
close #5733
close #10005