API Request: Re-request review post ("user") #11888

Closed
opened 2025-11-02 09:51:01 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Snappiestjack on GitHub (Oct 20, 2023).

Originally assigned to: @lng2020 on GitHub.

Feature Description

When a pull request is reviewed as Changes Request our workflow is to then Re-request a review from the user who requested the changes, our push process uses a in-house script. It would be great if the API had a post that allowed a re-request for a given user to be done, eliminating the need for the UI interaction as a additional step for the dev.

Screenshots

image

Originally created by @Snappiestjack on GitHub (Oct 20, 2023). Originally assigned to: @lng2020 on GitHub. ### Feature Description When a pull request is reviewed as Changes Request our workflow is to then Re-request a review from the user who requested the changes, our push process uses a in-house script. It would be great if the API had a post that allowed a re-request for a given user to be done, eliminating the need for the UI interaction as a additional step for the dev. ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/6187142/7c7803f9-2432-47bb-8463-65b500a55ae9)
GiteaMirror added the type/proposal label 2025-11-02 09:51:01 -06:00
Author
Owner

@lng2020 commented on GitHub (Oct 20, 2023):

Reasonable. I will handle this.

@lng2020 commented on GitHub (Oct 20, 2023): Reasonable. I will handle this.
Author
Owner

@lng2020 commented on GitHub (Oct 21, 2023):

endpoint POST /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers just works for me. Is it suitable for your case?

@lng2020 commented on GitHub (Oct 21, 2023): endpoint `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers` just works for me. Is it suitable for your case?
Author
Owner

@Snappiestjack commented on GitHub (Oct 22, 2023):

endpoint POST /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers just works for me. Is it suitable for your case?

works for you as in just works already?

If true, then yes that's all she wrote. I did see that endpoint, but assumed that was adding a new reviewer, I did not try to see what would happen if the reviewer was already requested, guess I should have,

@Snappiestjack commented on GitHub (Oct 22, 2023): > endpoint `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers` just works for me. Is it suitable for your case? works for you as in just works already? If true, then yes that's all she wrote. I did see that endpoint, but assumed that was adding a new reviewer, I did not try to see what would happen if the reviewer was already requested, guess I should have,
Author
Owner

@lng2020 commented on GitHub (Oct 23, 2023):

The endpoint is to add a new review request. If you want to re-request a reviewer, just use the same reviewer's name.

@lng2020 commented on GitHub (Oct 23, 2023): The endpoint is to add a new review request. If you want to re-request a reviewer, just use the same reviewer's name.
Author
Owner

@Snappiestjack commented on GitHub (Oct 23, 2023):

I shall give that a go, thanks.

@Snappiestjack commented on GitHub (Oct 23, 2023): I shall give that a go, thanks.
Author
Owner

@Snappiestjack commented on GitHub (Nov 1, 2023):

Can confirm this does work.

@Snappiestjack commented on GitHub (Nov 1, 2023): Can confirm this does work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11888