Skip to content

Commit b614df6

Browse files
authored
Merge pull request #1188 from vyos/T8852-mergify-extends
T8852: migrate .github/mergify.yml to extends: mergify
2 parents c57e682 + 3236642 commit b614df6

1 file changed

Lines changed: 27 additions & 24 deletions

File tree

.github/mergify.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
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.
1119

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+
# ------------------------------------------------------------------
2629
merge_protections_settings:
2730
reporting_method: check-runs

0 commit comments

Comments
 (0)