Required reviews and branch protection on GitHub

What "review required" means on GitHub, how branch protection and rulesets require approvals and passing checks before merging, and the settings teams use most.

On this page
  1. Branch protection and rulesets
  2. Common rules
  3. What authors see
  4. What reviewers should know
  5. Choosing rules for a team
  6. Rules in small teams
  7. Seeing review status at a glance
  8. FAQs

When a GitHub pull request says "review required", the repository has a rule that a certain number of approving reviews are needed before it can merge. Rules like this are set with branch protection or rulesets on branches such as main. They can also require passing status checks, reviews from code owners, and up-to-date branches, so nothing reaches the main branch without the agreed checks.

Branch protection and rulesets

Repository admins can protect important branches in two ways:

  • Branch protection rules: settings attached to a branch name pattern, such as main.
  • Rulesets: a newer, more flexible way to define rules that can apply across branches and, in organisations, across repositories.

Both can require reviews and checks. GitHub's documentation on protected branches and rulesets covers the details and differences.

Common rules

RuleWhat it does
Require a pull request before mergingNo direct pushes to the branch
Required approvalsA number of approving reviews before merge, often one or two
Dismiss stale approvalsNew commits remove existing approvals, so reviewers look again
Require review from Code OwnersAn owner of the changed files must approve
Require status checks to passNamed CI checks must succeed
Require branches to be up to dateThe branch must include the latest base branch before merging
Require conversation resolutionAll review comments must be resolved

What authors see

The merge box at the bottom of a pull request lists what's missing: "Review required", "Changes requested", "Some checks were not successful", "This branch is out-of-date". Each must be resolved before the merge button becomes available, unless an admin has permission to bypass.

What reviewers should know

  • Your approval counts toward the requirement. Approve when you're comfortable with it merging. See how to approve a pull request on GitHub.
  • Requesting changes blocks the merge until you approve or your review is dismissed.
  • If stale approvals are dismissed, you'll be asked again after new commits. Keep an eye on pull requests you've approved.
  • Code owner reviews come from the CODEOWNERS file. See team review requests on GitHub.

Choosing rules for a team

  • Start with one required approval and required checks for tests and builds.
  • Add code owner review for sensitive areas, such as payments or infrastructure.
  • Dismiss stale approvals if follow-up commits often change behaviour; skip it if it just causes repeated re-approvals for trivial fixes.
  • Avoid rules nobody understands. Every rule should have a reason the team can explain.

Rules in small teams

A two- or three-person team may find strict rules slow them down. A light setup works well: require a pull request, one approval and the main test check, and nothing else. Add rules only when something goes wrong that a rule would have prevented. In larger organisations, rulesets let you apply the same baseline to many repositories at once, with stricter rules where needed.

Seeing review status at a glance

OneNotch's GitHub screen shows each pull request's approval count and "Changes requested" or "Approved" marks, along with a check summary, for both the pull requests waiting for your review and your own. On Your PRs, that tells you at a glance whether something you wrote has the approvals and passing checks it needs, without opening GitHub. Required rules themselves are configured and enforced on GitHub. See GitHub Actions and status checks, explained.

FAQs

Why can't I merge even though it's approved?

Another rule isn't met: a required check, a code owner review, an out-of-date branch or unresolved conversations. The merge box lists what's missing.

Who can change branch protection?

Repository admins, or organisation owners for organisation-wide rulesets.

Does a team review request satisfy required reviews?

An approval from a team member counts toward the required number; code owner rules may require specific owners.

Can admins bypass required reviews?

Depending on the settings, some roles can bypass rules. It's best kept for emergencies.