Skip to content
Alex Hints

How to require a review before merging in GitHub

This guide shows how to add a branch protection rule, require approving reviews, and confirm that an unreviewed pull request is blocked.

8 steps · About 3 minutes · Last reviewed July 18, 2026

Independent guide

Before you start

  • A GitHub account with admin access to the repository
  • A default branch that is safe to protect

Interactive guide

Guide frame
The interactive guide for this task is not published yet. The steps below cover the whole workflow.

What you will do

This guide shows how to add a branch protection rule, require approving reviews, and confirm that an unreviewed pull request is blocked. When you finish, the change is saved in GitHub and you can confirm it without leaving the screen you ended on.

Steps at a glance

  1. 01Open repository settings
  2. 02Select Branches
  3. 03Add a branch protection rule
  4. 04Enter the branch name pattern
  5. 05Require a pull request before merging
  6. 06Set the number of approving reviews
  7. 07Save the rule
  8. 08Open a test pull request to confirm it is blocked

Something changed?

Software changes quickly. Tell us if a step is inaccurate or no longer matches the product.

Report an outdated step

Need a different workflow?

Request a clear guide for another task in GitHub.

Request a guide

Want guides like this for your product?

Alex Hints creates interactive guide libraries for onboarding, support, releases, and training.

Created with FramePin.Explore FramePin

Privacy settings

Optional analytics

Analytics cookies help us count visits and understand which pages and guides are useful. They do not affect access to any feature. The analytics page names the provider we use and what it receives.

The choice is saved in this browser. Turning analytics off stops future collection and removes the analytics cookies this site can access.

Read how analytics works