-
Notifications
You must be signed in to change notification settings - Fork 446
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
removeRequestedReviewers api do not remove CODEOWNER teams #520
Comments
Appreciate if this ticket can get some attenion. |
👋 This is not the right place to ask questions about the GitHub API. The GitHub Community or Support would be better places for this type of question. |
I am not sure why , when i am using the removeRequestedReviewers which is part of |
This action does not control the behavior of the GitHub API - it is just a tool to interact with it. |
I see, thanks for the input. Have added my views to the above link. |
Describe the bug
I tried using a PAT token which has admin access to a repo. The api succeed and it removed all teams and users but do not removed CODEOWNER team. I am not understanding why. As per the documentation, there is not exception mentioned to this doc.
https://docs.github.com/en/rest/pulls/review-requests?apiVersion=2022-11-28#remove-requested-reviewers-from-a-pull-request
To Reproduce
Steps to reproduce the behavior:
`
await github.rest.pulls.removeRequestedReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_request.number,
reviewers: pendingUserReviewers,
team_reviewers: pendingTeamReviewers
});
pendingTeamReviewers: [CODEOWNER TEAMS and Other TEAMS]
`
Expected behavior
All pendingTeamReviewers, should be removed including CODEOWNER TEAMS
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: