summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-07 19:00:31 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-07 19:00:31 +0300
commitca31829cb21fd2d79a883d3c6a098aec6de8ea16 (patch)
treea2489de609e38694ca6d118c555d8f3eeab59f4a
parente74cbad8c693d1d3bd8cfdaef44f29a7e6fbeab2 (diff)
downloadmergify-ca31829cb21fd2d79a883d3c6a098aec6de8ea16.tar.gz
mergify-ca31829cb21fd2d79a883d3c6a098aec6de8ea16.zip
T8782: add central Mergify baseline for vyos org
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)
-rw-r--r--.mergify.yml42
1 files changed, 42 insertions, 0 deletions
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/<repo>/.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