-
-
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
Add review request api #11355
Add review request api #11355
Conversation
* add : POST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers * Remove : DELET /repos/{owner}/{repo}/pulls/{index}/requested_reviewers * fix some request review bug * block delet request review by models/DeleteReview() Signed-off-by: a1012112796 <[email protected]>
nil pointer exeptions |
This comment has been minimized.
This comment has been minimized.
on my linux system I just use |
I see, I haven't try it in linux, I use windows more offen.Do you know how to run it with ide like vscode or other? Thanks |
sorry - I dont, I use the shell all the time so I didnt looked at gui stuff |
Please review, Thanks :) |
ìnstead of a own PullReviewRequestErr format just use the default error format the API returns normaly & I would return a PullReview on rewuest addition and a 204 with empty body on deletion ... |
Co-authored-by: Lauris BH <[email protected]>
@a1012112796 I still think we should not combine error and sucess into a single responce |
I know it, your style is ok if this api only allow add or remove one reviewer in one time , but now I follow github style to allow add or remove more than one, then if the result have some not successfull result because of permission wrong or reviewer is not exist, I think we should let users know which one is fail ,the reason ,and which one is success. Only 422 or 200 feedback does not provide enough valid information when the request is partially successful and partially unsuccessful |
Add team support for review request Block #11355 Signed-off-by: a1012112796 <[email protected]> Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Andrew Thornton <[email protected]>
pleace resolve conflicts |
* fix test * fix an known bug
&pleace merge master in :) |
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.
Spelling and English nits
Co-authored-by: zeripath <[email protected]>
🚀 |
…ments-in-pull-request-label-style * origin/master: (27 commits) [skip ci] Updated translations via Crowdin add more clarification to the issue-template.md (go-gitea#13235) go-version constraints ignore pre-releases (go-gitea#13234) [skip ci] Updated translations via Crowdin Update some JS dependencies (go-gitea#13222) Return the full rejection message and errors in flash errors (go-gitea#13221) Update heatmap fixtures to restore tests (go-gitea#13224) [skip ci] Updated translations via Crowdin Add review request api (go-gitea#11355) [skip ci] Updated translations via Crowdin When the git ref is unable to be found return broken pr (go-gitea#13218) Various arc-green fixes (go-gitea#13214) Show stale label for stale code comment which is marked as resolved (go-gitea#13213) Move install pages out of main macaron routes (go-gitea#13195) Use CSS Variables for fonts, remove postcss-loader (go-gitea#13204) [skip ci] Updated translations via Crowdin Align `SSH_AUTHORIZED_KEYS_BACKUP` var with the value in `app.ini` (go-gitea#13212) Fix size and clickable area on file table back link (go-gitea#13205) [skip ci] Updated translations via Crowdin Fix error in diff html rendering (go-gitea#13191) ...
New api:
Note: reviw request can be alos get and list by get or list review api, so not add another like github
Other changes:
Contains #13187