diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-06-06 22:01:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-06 22:01:52 +0300 |
| commit | 720f635e630de21921e1f81e0f456cc6954284ec (patch) | |
| tree | 0193a87e74a1177c8ed7b90b39a9cbaf4f5da013 | |
| parent | de4b0925d09d93791f7210cb39d5fa737cc21d48 (diff) | |
| download | mergify-production.tar.gz mergify-production.zip | |
ci: add WIP-label merge protection (bot/mirror-exempt) (#20)HEADproduction
Add a merge_protection that blocks merge while a maintainer-applied WIP
label is present. Bot authors (mirror pipeline vyos-bot, mergify,
copilot, vyosbot) are exempt via the if: scope, so cross-org mirror PRs
to rolling are never held. Same shape as the existing label gates; has
teeth once the Mergify Merge Protections check is made required
(T8850 Cat 1). Mergify does not auto-merge in this fleet, so today this
is an advisory check-run.
🤖 Generated by [robots](https://vyos.io)
| -rw-r--r-- | .mergify.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.mergify.yml b/.mergify.yml index e467fdd..23b1682 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -480,5 +480,24 @@ merge_protections: - label = invalid-task-id success_conditions: - label != invalid-task-id + + # Block merge while a maintainer-applied WIP label is present. Unlike the + # auto-applied gates above, WIP is set by hand to hold a PR from merging + # (it has teeth once the Mergify Merge Protections check is made required — + # T8850 Cat 1). Bot authors are exempt via the if: scope so cross-org + # mirror-pipeline PRs (vyos-bot[bot]) to rolling are never held — they + # merge right away via the pipeline's admin-merge regardless. + - name: WIP label must be absent to merge + description: > + Block merge while the WIP label is present. Maintainers apply WIP by + hand to hold a PR. Bot authors (mirror pipeline vyos-bot, mergify) are + exempt so mirror PRs to rolling are never held. + if: + - label = WIP + - '-author~=\[bot\]$' + - 'author!=copilot-swe-agent' + - 'author!=vyosbot' + success_conditions: + - label != WIP merge_protections_settings: reporting_method: check-runs |
