Skip to content

removeRequestedReviewers api do not remove CODEOWNER teams #520

Closed
@PSinha1202

Description

@PSinha1202

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

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions