Skip to content

Branch protection, Mergify's conditions, and repo permissions #5115

Discussion options

You must be logged in to vote

Hi

Mergify can't bypass GitHub's branch protections. Mergify has its own rules to perform actions, like merging or creating a check-run. See it like a wrapper on GitHub.

If you want to prevent someone from merging manually, you have to protect the branch using GitHub's branch protections, so the UI disables the manual merge. Either Mergify is the only one who can merge, or Mergify can post a check-run (using the post_check action) to meet the branch protection requirements. That's how you achieve finer-grained branch protection.

I hope that answer your question.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by MattSturgeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants