Skip to content

Mention needed Members organization permission to add team as PR reviewer #38153

Closed as not planned
@tobias-tengler

Description

@tobias-tengler

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/pulls/review-requests?apiVersion=2022-11-28#request-reviewers-for-a-pull-request

What part(s) of the article would you like to see updated?

The "The fine-grained token must have the following permission set" section should be updated to mentioned that you need the "Members" organization permission (read) in order to add a team as a reviewer.

This is especially important, since it means a GitHub action (without PAT or a GitHub app, just GITHUB_TOKEN) will not be able to add a team as PR reviewer, even if the "Pull requests" repository permissions (write) is given.

Additional information

cli/cli#10948 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teampull requestsContent related to pull requestsrestContent related to rest - overview.staleThere is no recent activity on this issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions