For permission prompts in a Claude Code session, see Configure permissions.
Find Claude Approvals on a pull request
Approvals adds a check named Claude Approvals to the pull requests that it evaluates. The check’s title says what’s still needed, such as Waiting on human review from any person (1/2). A title that starts with (observe mode) means that the policy wasn’t enforced when the check ran. In observe mode, the check shows what your policy would decide. Claude also posts a comment with the reasons. Where the policy allows it, Claude can post an approving review. For the common titles and what to do about each, see Find your approval status and what to do next. If a pull request has no check, see No Claude Approvals check appeared.Example policy
You write a policy as a list of rules in.claude/approvals.yml.
This policy has one rule, which asks for two people on every change:
mode: observe: starts the policy in observe modepurpose: says why the rule existspaths: names the files that the rule matches, which here is every fileseats: 2: asks for two people, one of whom can be the authorclaude: comments: means that Claude doesn’t approveadvisory: keeps automatic Code Reviews
- Facts about the pull request: such as how many lines changed, who opened it, and which branch it targets
- A classifier’s answer: a model’s judgment on a question such as how risky the change is
Before you turn on Approvals
Before you add a policy file to a repository, check that your organization qualifies and who can turn Approvals on or off. Then see what Approvals changes for merges, Code Review, and billing.Availability
Approvals is in public beta for Claude organizations on Team and Enterprise plans, as part of Claude Ship. It works on github.com, including GitHub Enterprise Cloud. Compliance settings limit who can use it:- Not available: with Zero Data Retention enabled, the HIPAA configuration applied, or customer-managed encryption keys (CMEK)
- Can’t start Approvals: with FERPA or Access Transparency settings
Who can turn Approvals on or off
Once the prerequisites are met, anyone who can merge a policy file into the default branch can turn Approvals on. An Owner of the Claude organization can turn Approvals off for the whole organization, and it then stays off when a policy file merges.Merges without human review
A pull request can merge when nobody but its author has looked at it. Check your policy and your GitHub rules for cases such as these:- The check isn’t required: the Claude Approvals check blocks a merge only where you make it a required check in GitHub, and normally not in observe mode
- The policy asks for nobody else: the author can fill a seat, so with
seats: 1nobody else has to look. Withseats: 0, a pull request that a bot wrote can merge when no person has looked at it - GitHub counts Claude’s approval: where a GitHub branch rule requires one approval, Claude’s approving review can be that approval
- Claude approves with no review: a rule with
claude: approvesstarts no Code Review by itself, so Claude can approve a change that nothing has reviewed. To get a review first, let Claude approve only when Code Review passes
Keep automatic Code Reviews
Code Review, another Claude Ship agent, can review each pull request automatically. Adding a policy file can stop those reviews. Where every file that a pull request changes lies under a policy file, automatic reviews normally stop, unless a rule for those files namesclaude/code_review. That holds in observe mode and when the policy is enforced.
To keep automatic reviews, list claude/code_review in a rule, as the example policy does under advisory.
Billing for Approvals
Approvals bills your organization’s usage credits, by tokens, for the Code Reviews and classifier runs that a policy starts. See what starts a charge.Set up Claude Approvals
To set up Approvals, start your policy in observe mode, where the Claude Approvals check shows what your policy would decide. Reviews and classifier runs are billed in observe mode. For starter policies and the steps, see Set up Claude Approvals.Related resources
- Work with Claude Approvals on a pull request: check titles and comment commands
- Approvals and your GitHub rules: required reviews, CODEOWNERS, and merge queues
- Policy file reference: keys and an example policy
- Troubleshoot Claude Approvals: when no check appears or a policy file is refused
- Configure permissions: permission prompts in Claude Code