|
1 | | -pull_request_rules: |
2 | | - - name: Label conflicting pull requests |
3 | | - description: Add a label to a pull request with conflict to spot it easily |
4 | | - conditions: |
5 | | - - conflict |
6 | | - - '-closed' |
7 | | - actions: |
8 | | - label: |
9 | | - toggle: |
10 | | - - conflicts |
| 1 | +# yaml-language-server: $schema=https://docs.mergify.com/configuration/file-format/ |
| 2 | +# Mergify configuration for vyos/vyos-build. |
| 3 | +# |
| 4 | +# Inherits the central baseline from vyos/mergify:.mergify.yml. The central |
| 5 | +# baseline provides: |
| 6 | +# - `defaults.actions.backport.ignore_conflicts: false` |
| 7 | +# - `pull_request_rules` → label conflicting PRs with `conflicts`; |
| 8 | +# T-ID format checks on PR title and commit messages. |
| 9 | +# - `commands_restrictions` → restrict @Mergifyio slash commands to the |
| 10 | +# org Maintainers team + vyosbot. Resolves correctly on both sides of |
| 11 | +# the cross-org mirror: vyos/mergify uses @vyos/maintainers, |
| 12 | +# VyOS-Networks/mergify uses @VyOS-Networks/maintainers. |
| 13 | +# |
| 14 | +# Replaces the inline T8531 predecessor config. Rollout context: |
| 15 | +# T8782 (Mergify central-config rollout), T8852 (fleet migration to |
| 16 | +# `extends:`). See https://vyos.dev/T8782, https://vyos.dev/T8852, |
| 17 | +# and the Confluence spec at |
| 18 | +# https://vyos.atlassian.net/wiki/spaces/VYOS/pages/849477640. |
11 | 19 |
|
12 | | -commands_restrictions: |
13 | | - backport: &allowed |
14 | | - conditions: |
15 | | - - or: |
16 | | - - sender=@vyos/maintainers |
17 | | - - sender=vyosbot |
18 | | - copy: *allowed |
19 | | - dequeue: *allowed |
20 | | - queue: *allowed |
21 | | - rebase: *allowed |
22 | | - refresh: *allowed |
23 | | - requeue: *allowed |
24 | | - squash: *allowed |
25 | | - update: *allowed |
| 20 | +extends: mergify |
| 21 | + |
| 22 | +# ------------------------------------------------------------------ |
| 23 | +# Repo-specific overlay: keep the existing `merge_protections_settings` |
| 24 | +# from the T8531-era inline config. This is a Mergify v8 top-level |
| 25 | +# setting that the central baseline does not provide. Preserving it |
| 26 | +# keeps the same reporting behavior (`check-runs`) that vyos-1x has |
| 27 | +# relied on under the inline config. |
| 28 | +# ------------------------------------------------------------------ |
26 | 29 | merge_protections_settings: |
27 | 30 | reporting_method: check-runs |
0 commit comments