Skip to main content
Claude Approvals adds a check to the GitHub pull requests that it evaluates. The check reports who has to approve a pull request, following a policy, a file in your repository. The check blocks a merge only where you make it a required check in GitHub, and your branch rules decide what merges. If you administer a repository or review its security, check how your policy and your GitHub settings work together before you enforce the policy:

Merges without human review

With Approvals on, a pull request can merge with no person but its author looking at it, or with no person at all if a bot wrote it. That can happen if GitHub doesn’t require the Claude Approvals check. It can also happen if the check passes with no person besides the author, for example with:
  • seats: 0
  • seats: 1, which the author can fill
  • A from list that admits bots
  • A machine user, a user account that a script or an agent drives, which can count as a person
  • A reuse that keeps seats after a push
  • Files that no rule covers, where GitHub counts the neutral result as passing
  • A condition that reads a classifier’s answer, in a rule’s if, an override’s if, or a reuse. That answer is one that a pull request’s text can steer
A push directly to the default branch gets no check. Require pull requests there in GitHub. Claude’s approving review can meet a GitHub branch rule that requires one approval.

Ask for a person who isn’t an author

To have the Claude Approvals check ask for one person who isn’t an author on every path, add this file’s rule to a root policy file that you enforce:
Each part of that rule does a job: For paths that need more people, copy the rule, narrow paths, and raise count.

Required reviews and CODEOWNERS

Check how each GitHub setting works beside your policy, and what to set:

Auto-merge and merge queues

If you use GitHub auto-merge or a merge queue with a policy that doesn’t require a person’s approval, a change can merge without anyone acting. To have the check ask for a person who isn’t an author on every path, add this rule, and require the Claude Approvals check. Approvals doesn’t evaluate the commits that a merge queue creates:
  • The queue’s commits: Approvals normally marks them as passed, with the title Stamped for merge queue, except for a pull request that was evaluated only in observe mode
  • Entry to the queue: GitHub’s own rule decides it, normally after the pull request’s required checks pass. A pull request can also enter while the check is still running. If the check doesn’t pass after that, remove the pull request from the queue
  • Pull requests that were only observed: after you start enforcing the policy, rerun the check on each open pull request before you queue it. Until its latest commit passes under the policy, its commit in the queue normally gets no check, and where the check is required, it can wait there
  • The app’s permission: ask an owner of your GitHub organization to accept the Claude GitHub App’s Merge queues permission. Without it, the queue’s commits get no check, so where GitHub requires the check, entries wait

Who can change or loosen a policy

A policy is a file in your repository, so your GitHub permissions decide who can change it.

Classifier answers that a pull request can steer

Approvals applies the policy files and your classifier definitions from the default branch. A pull request’s author’s text can steer a classifier’s answer. Where a rule’s if, an override’s if, or a reuse condition reads an answer, a steered answer can lower what the pull request needs. To ask for one person who isn’t an author on every path, add this rule.