-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
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 ➡️ Hopes this solves your issue. 🍺 🍀 |
Beta Was this translation helpful? Give feedback.
-
This is the key. In fact, I am now using a general "status-checks" job which depends on everything that is required. This also enables having different required checks for merge queue and PR pipelines. It also allows non-admins to modify the required checks which is super helpful. |
Beta Was this translation helpful? Give feedback.
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 theBranch name pattern
, enter the name of the branch you want to protect (master
,main
, etc.) ➡️In
Protect matching branches
, checkRequire status checks to pass before merging
➡️ CheckRequire branches to be up to date before merging
➡️ UnderStatus 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. 🍺
🍀