summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-12 15:43:23 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-12 15:43:23 +0300
commit3d44fe06e3a82e63b1391424860d76f95bcb97f3 (patch)
tree7fe1d06094657d2e2c50c1d5e744fea6a0d08f5d /.github
parent240012ea1e892cede84be150ef33429b87824a00 (diff)
downloadvyos-documentation-3d44fe06e3a82e63b1391424860d76f95bcb97f3.tar.gz
vyos-documentation-3d44fe06e3a82e63b1391424860d76f95bcb97f3.zip
ci(mergify): disable inherited T-ID title/commit-message checks in this repo
The central baseline at vyos/mergify:.mergify.yml enforces a `T<digits>: <text>` (optional `scope: ` prefix) format on PR titles and every commit's first line — a convention from vyos/vyos-1x and sibling code repos where engineering work tracks against a Phorge task. vyos-documentation has never enforced this. Recent merged PRs use conventional-commits style (`fix(ext): …`, `ci(...): …`, `chore(deps): …`) without an upstream T-ID. After the `extends: mergify` adoption in #2005, the inherited rules started labeling every such PR `invalid-title` and `invalid-commit-title` — pure noise for this repo. Override the two rules by name (Mergify `extends:` semantics: same-name rules in the child REPLACE the parent's). Conditions are constructed to never match (`closed and -closed`), so the `toggle` action always falls into the "remove label" branch and also clears the labels from any PR that picked them up since #2005 merged. 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to '.github')
-rw-r--r--.github/mergify.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/mergify.yml b/.github/mergify.yml
index 21c9921c..8dc66929 100644
--- a/.github/mergify.yml
+++ b/.github/mergify.yml
@@ -17,3 +17,51 @@
# configuration per Mergify's `extends:` semantics.
extends: mergify
+
+pull_request_rules:
+ # ------------------------------------------------------------------
+ # Override: disable T-ID-format checks for PR title and commit messages.
+ #
+ # The central baseline in vyos/mergify enforces `T<digits>: <text>` (with
+ # optional `scope: ` prefix) on both the PR title and every commit's first
+ # line. That matches the convention in vyos/vyos-1x and other code repos
+ # where engineering work tracks against a Phorge task.
+ #
+ # vyos-documentation does not require a Phorge T-ID per PR — much of the
+ # work here is conventional-commits style (`fix(ext): …`, `ci(...): …`,
+ # `chore(deps): …`) with no upstream ticket. Inheriting the central rules
+ # labels every such PR `invalid-title` / `invalid-commit-title`, which is
+ # noise.
+ #
+ # Per Mergify `extends:` semantics, same-name rules in the child REPLACE
+ # the parent's. The two rules below keep the original names so the parent
+ # versions are dropped; conditions are constructed to never match (a PR
+ # cannot simultaneously be closed and not closed), so the `toggle` action
+ # always falls into the "remove label" branch — cleaning up the labels on
+ # any PR that previously had them.
+ # ------------------------------------------------------------------
+
+ - name: Flag PR title not matching T-ID format
+ description: >
+ Disabled in vyos-documentation — this repo does not require Phorge
+ T-IDs in PR titles. Conventional-commits style is acceptable.
+ conditions:
+ - closed
+ - '-closed'
+ actions:
+ label:
+ toggle:
+ - invalid-title
+
+ - name: Flag commit message not matching T-ID format
+ description: >
+ Disabled in vyos-documentation — this repo does not require Phorge
+ T-IDs in commit message headlines. Conventional-commits style is
+ acceptable.
+ conditions:
+ - closed
+ - '-closed'
+ actions:
+ label:
+ toggle:
+ - invalid-commit-title