summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-13 22:52:58 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-13 22:52:58 +0300
commitee2942a39e11b8d7996ba2f7f3ac53545300d647 (patch)
treefdc0c2f8cfc4ed031b11926145bccb03db474fa2 /.github
parentbfc681807ab2eafe3bfcea55be148deaba29f298 (diff)
downloadvyos-documentation-ee2942a39e11b8d7996ba2f7f3ac53545300d647.tar.gz
vyos-documentation-ee2942a39e11b8d7996ba2f7f3ac53545300d647.zip
ci(mergify): fix T-ID-override rule name to match central baseline
The override shipped in 3d44fe06 used rule names `Flag PR title not matching T-ID format` + `Flag commit message not matching T-ID format`. Per Mergify `extends:` semantics, same-name rules in the child REPLACE the parent's — and the central baseline in vyos/mergify uses a single rule named `Flag T-ID format violation in PR title or commit messages`. Different names → no replacement → parent rule keeps firing. Symptom (surfaced on PR #2014, title `docs(readme): …`): every PR without a `T<digits>:` token gets `invalid-title` labeled. Fix: collapse to one rule, rename to match the parent exactly. The condition (`closed AND -closed`) still never matches, so `toggle` removes the label on every evaluation — picks up any stale `invalid-title` from the broken-override window. The parent rule does not toggle `invalid-commit-title`; the second child rule for that label was extraneous and is dropped. 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to '.github')
-rw-r--r--.github/mergify.yml33
1 files changed, 13 insertions, 20 deletions
diff --git a/.github/mergify.yml b/.github/mergify.yml
index 8dc66929..26e41c03 100644
--- a/.github/mergify.yml
+++ b/.github/mergify.yml
@@ -34,17 +34,23 @@ pull_request_rules:
# 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.
+ # the parent's. The override below MUST use the parent's exact rule name
+ # — `Flag T-ID format violation in PR title or commit messages` — or the
+ # parent rule keeps firing and `invalid-title` labels every PR. (The
+ # earlier two-rule override shipped in 3d44fe06 used the wrong names
+ # and was a no-op; PR #2014 surfaced the regression.)
+ #
+ # 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 `invalid-title` on any PR
+ # that picked it up while the broken override was in place.
# ------------------------------------------------------------------
- - name: Flag PR title not matching T-ID format
+ - name: Flag T-ID format violation in PR title or commit messages
description: >
Disabled in vyos-documentation — this repo does not require Phorge
- T-IDs in PR titles. Conventional-commits style is acceptable.
+ T-IDs in PR titles or commit message headlines. Conventional-commits
+ style (`fix(ext): …`, `ci(...): …`, `chore(deps): …`) is acceptable.
conditions:
- closed
- '-closed'
@@ -52,16 +58,3 @@ pull_request_rules:
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