Repository administrators can enforce required reviews so that pull requests must have at least one approved review before they are merged.

Note: Before enabling required reviews on a branch, you must first set the branch up as a protected branch. For more information, see "Configuring protected branches."

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. Repository settings buttonUnder your repository name, click Settings.

  3. Repository options sub-menuIn the left menu, click Branches.

  4. Selecting a protected branch drop-down menuUnder Protected Branches, select the branch you want to restrict using the drop-down menu.

  5. Pull request review restriction checkboxSelect Require pull request reviews before merging.

  6. Dismiss stale pull request approvals when new commits are pushed checkboxOptionally, select Dismiss stale pull request approvals when new commits are pushed. This dismisses a pull request approval review when a code-modifying commit is pushed to the branch.

  7. Require review from code ownersOptionally, select Require review from Code Owners to require review from a code owner when the pull request affects code that has a designated owner. For more information, see "About CODEOWNERS."
  8. Restrict who can dismiss pull request reviews checkboxOptionally, if the repository is part of an organization, select Restrict who can dismiss pull request reviews to search for and select the people or teams who can dismiss pull request reviews. For more information, see "Dismissing a pull request review." This option is not available for personal repositories.
  9. Include administrators checkboxOptionally, select Include administrators. This enforces the required status checks on the repository administrators.

  10. Click Save changes.

Further reading