Skip to content

gh pr edit --remove-reviewer does not work when removing all reviewers #10958

@tobias-tengler

Description

@tobias-tengler

Describe the bug

I can request a review from a team for a pull-request using the following command:

gh pr edit 180 --add-reviewer <org>/<team-name> --repo <org-name>/<repo-name>

But I can not remove the same team with the following command:

gh pr edit 180 --remove-reviewer <org>/<team-name> --repo <org-name>/<repo-name>

(it works for regular users)

The CLI exits with code 0 and no error is logged, but the team is not removed from the PR.
I can remove the team through the PR UI though.

The repository is an internal one and I'm an owner of the organization.

Affected version

2.72.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsgh-prrelating to the gh pr command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions