summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-12 15:51:18 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-12 15:51:18 +0300
commit618d166af02511f391750b774014ce361cf49467 (patch)
tree46b63d215c9091d983e8960c5ec6c2ce250bad1f
parent82a0ceff9146d7d2cf4ec0287c0b9e06c5f276b2 (diff)
downloadmergify-618d166af02511f391750b774014ce361cf49467.tar.gz
mergify-618d166af02511f391750b774014ce361cf49467.zip
Use single `invalid-title` label for both title and commit-message rules
The two PR-message-format rules check the same `T<digits>: <text>` headline regex against two surfaces — the PR title and each commit's first line. Splitting that into two labels (`invalid-title` + `invalid-commit-title`) creates near-identical labels on the same PR and adds no information for the author: the fix in both cases is "rewrite the headline to match the format." Collapse onto `invalid-title`. The two rules stay separate so an operator scanning rule logs can still see which surface tripped, but the user-facing surface gets one label. 🤖 Generated by [robots](https://vyos.io)
-rw-r--r--.mergify.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.mergify.yml b/.mergify.yml
index c92ed52..af2f0b7 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -84,7 +84,11 @@ pull_request_rules:
description: >
Each commit's first line must match `T<digits>: <text>`, optionally
prefixed with `scope: `. Replaces the commit-message half of
- vyos/.github:check-pr-message.yml.
+ vyos/.github:check-pr-message.yml. Shares the `invalid-title` label
+ with the title rule — both surfaces fail the same headline regex, so
+ splitting into two labels (`invalid-title` + `invalid-commit-title`)
+ was noise; the rule name still tells the operator which surface
+ tripped.
conditions:
- '-closed'
- '-merged'
@@ -92,7 +96,7 @@ pull_request_rules:
actions:
label:
toggle:
- - invalid-commit-title
+ - invalid-title
commands_restrictions:
backport: &allowed