Skip to content

How to ensure Github merge queue does not allow failed checks into master #75568

Answered by b8zeek
ncjones asked this question in Actions
Discussion options

You must be logged in to vote

Hey Nathan. 👋🏼

I think this is what you need, pull requests to the protected branch able to be merged if all the required checks pass and the branch is up to date with the base branch:

Your repository ➡️ Settings ➡️ Branches ➡️ Branch protection rules ➡️ Add rule ➡️ In the Branch name pattern, enter the name of the branch you want to protect (master, main, etc.) ➡️
In Protect matching branches, check Require status checks to pass before merging ➡️ Check Require branches to be up to date before merging ➡️ Under Status checks found in the last week for this repository check the boxes for the checks you want to require ➡️ Create.

Hopes this solves your issue. 🍺

🍀

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@pete-watters
Comment options

@SphericalPotatoInVacuum
Comment options

@air3ijai
Comment options

@yeongrokgim
Comment options

@air3ijai
Comment options

Answer selected by ncjones
Comment options

You must be logged in to vote
1 reply
@ncjones
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
7 participants