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

A pull request can merge without human review if the Claude Approvals check is optional in GitHub or the policy is in observe mode. After you require the check and enforce the policy, a pull request can still merge without human review. Causes include the following: 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 make the Claude Approvals check require approval on every path from one person other than the authors, 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

The following table shows how GitHub’s review settings work with your Approvals 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. If the pull request was last evaluated in observe mode, the commit’s check normally ends neutral, which GitHub counts as passing, and the title starts (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. If you queue a pull request before you rerun the check, it can merge without meeting the policy
  • 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.