From ca31829cb21fd2d79a883d3c6a098aec6de8ea16 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 7 May 2026 19:00:31 +0300 Subject: T8782: add central Mergify baseline for vyos org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds `.mergify.yml` carrying the shared `commands_restrictions` block (9 keys: backport, copy, dequeue, queue, rebase, refresh, requeue, squash, update) and the `Label conflicting pull requests` rule. Per-repo files will reference this via `extends: mergify-config`. 🤖 Generated by [robots](https://vyos.io) --- .mergify.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..3557c80 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,42 @@ +# yaml-language-server: $schema=https://docs.mergify.com/configuration/file-format/ +# Central Mergify configuration for the `vyos` GitHub organization. +# +# This file lives at vyos/mergify-config:.mergify.yml and is referenced from +# every vyos//.mergify.yml via `extends: mergify-config`. +# +# Inheritance semantics (verbatim from docs.mergify.com/configuration/sharing): +# 1. "The configuration from the specified repository will be loaded and +# applied before the one in the current repository." — i.e., this file +# (the parent) loads first; the per-repo file (the child) is merged in +# afterwards and same-name rules in the child replace the parent's. +# 2. "Values in the `defaults` and `commands_restrictions` key will be +# merged and remote default values will apply to local configuration, +# unless a same default value already exist in the local configuration." +# 3. "Values in the `shared` key will not be merged and shared between +# local and remote configurations." — define YAML anchors locally only. + +pull_request_rules: + - name: Label conflicting pull requests + description: Add a label to a pull request with conflict to spot it easily + conditions: + - conflict + - '-closed' + actions: + label: + toggle: + - conflicts + +commands_restrictions: + backport: &allowed + conditions: + - or: + - sender=@vyos/maintainers + - sender=vyosbot + copy: *allowed + dequeue: *allowed + queue: *allowed + rebase: *allowed + refresh: *allowed + requeue: *allowed + squash: *allowed + update: *allowed -- cgit v1.2.3