ghtier
← All permissions
Repository permission·pull_requests:write

Pull requests: Write

Tier 2 · Medium

Why Tier 2

Opens, reviews, approves and merges pull requests. An approval can satisfy a review rule when the approver counts as a reviewer.

Target
Repository
Plane
DataCode: Repository contents, branches, tags, pull requests, checks and commit signing keys.
Granted by
Fine-grained PAT, GitHub App, GITHUB_TOKEN
Available on
Every setup
In a workflow
permissions: pull-requests: write

What it unlocks

43 REST endpoints need this permission. A few of them:

  • POST /repos/{owner}/{repo}/pulls
  • PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}
  • DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}
  • POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

Roles that include it

Classic scopes that reach it

No classic scope reaches it. Only fine-grained PATs, Apps or GITHUB_TOKEN can grant it.

Attack paths

Other levels

GitHub Docs: Repository permissions for "Pull requests"