diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-28 13:22:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-28 13:22:08 +0300 |
| commit | 51553b65feb1d2834f074525670a43d62aeeecbc (patch) | |
| tree | ec44ff1ff9d0cd31630fc296f4c94f69042ae71c | |
| parent | dcd2b12ad7b9ba71c7b7320f08dbfadeabffbe40 (diff) | |
| parent | 761be4ff83965440ff970e00de89f6f3cb06ee58 (diff) | |
| download | mergify-51553b65feb1d2834f074525670a43d62aeeecbc.tar.gz mergify-51553b65feb1d2834f074525670a43d62aeeecbc.zip | |
Merge pull request #13 from vyos/feature/auto-close-eol-branches
feat(close): auto-close PRs targeting EOL release branches (sagitta, crux, circinus)
| -rw-r--r-- | .mergify.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.mergify.yml b/.mergify.yml index 1ee98b7..08541df 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -173,6 +173,52 @@ pull_request_rules: actions: update: {} + # ------------------------------------------------------------------ + # Auto-close PRs targeting EOL release branches. + # + # Replaces vyos/vyos-1x:.github/workflows/pr-auto-close.yml, which only + # covered `sagitta`. Closes every PR (including Mergify-created + # backports) opened against `sagitta`, `crux`, or `circinus` in any + # vyos/* repo that extends this config, except the two excluded below. + # + # Excluded repos: + # - vyos-documentation — still accepts per-branch docs maintenance + # and backports to `sagitta` and `circinus`. + # - vyos.vyos — Ansible Galaxy collection on `main`; listed + # defensively so a future branch named `sagitta`/`crux`/`circinus` + # would not be auto-closed. + # + # Mergify's `repository-name` attribute is the bare repo name (no + # org prefix). Since this central config is consumed only by vyos/* + # repos via `extends: mergify`, the bare name is unambiguous. + # + # Backport interaction: the `defaults.actions.backport` block above + # creates backport PRs targeting whatever branch a Maintainer asks + # for. If a Maintainer issues `@Mergifyio backport sagitta` on a + # vyos/* repo other than the two excluded ones, the backport PR is + # created and then immediately closed by this rule. That is the + # intended behavior — backports to EOL branches are not accepted. + # ------------------------------------------------------------------ + - name: Auto-close PRs targeting EOL release branches + description: > + Close PRs (and Mergify-created backports) targeting the EOL release + branches sagitta, crux, and circinus. Excludes vyos-documentation + and vyos.vyos. Replaces vyos/vyos-1x:.github/workflows/pr-auto-close.yml. + conditions: + - '-closed' + - '-merged' + - or: + - base=sagitta + - base=crux + - base=circinus + - repository-name != vyos-documentation + - repository-name != vyos.vyos + actions: + close: + message: > + Pull requests targeting EOL release branches (`sagitta`, `crux`, + `circinus`) are not accepted and have been closed automatically. + commands_restrictions: # Both Maintainers teams are listed for defense-in-depth. # |
