1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/content/github/administering-a-repository/enabling-required-status-checks.md
2020-11-02 15:12:44 -06:00

1.7 KiB

title, intro, product, redirect_from, versions
title intro product redirect_from versions
Enabling required status checks Repository administrators can enforce required status checks before a branch is merged in a pull request or before commits on a local branch can be pushed to the protected remote branch. {% data reusables.gated-features.protected-branches %}
/articles/enabling-required-status-checks
free-pro-team enterprise-server github-ae
* * *

{% data reusables.repositories.protected-branches-options %}

Before you can enable required status checks, you must configure the repository to use the status API. For more information, see "Building a CI Server."

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.repository-branches %} {% data reusables.repositories.add-branch-protection-rules %} 6. Under "Protect matching branches", select Require status checks to pass before merging. Required status checks option 7. Optionally, select Require branches to be up to date before merging. If selected, this ensures that the branch is tested with the latest code on the base branch. Loose or strict required status checkbox 7. From the list of available status checks, select the checks you want to require. List of available status checks {% data reusables.repositories.include-administrators %} 9. Click Create.

{% data reusables.repositories.required-status-merge-tip %}