From 9d1eb810377be2c843ffc311ec71bfeef7e01232 Mon Sep 17 00:00:00 2001 From: claude-bot-andresmgsl Date: Fri, 24 Jul 2026 01:26:45 +0000 Subject: [PATCH] test: guard LABELS.md against any concrete scope name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The regression row grepped only the four current ceremony names, so a future enumeration under new names stayed green. Widen the pattern to scope:[a-z0-9] — any concrete label name, in any shape, re-reds the row, while doctrine's bare `scope:` and wildcard scope:* stay allowed (#104). Co-Authored-By: Claude Fable 5 --- test/labels.test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/labels.test.sh b/test/labels.test.sh index 68b6b90..6d35a3a 100755 --- a/test/labels.test.sh +++ b/test/labels.test.sh @@ -57,8 +57,12 @@ check "PR author is recused from the required panel" 0 "one three" printf '%s\n' # scope enumeration it carries is true at home and false everywhere else — # 14 of 16 vendored rows were false across the family when this fired (#104). # The set lives in labels.conf and the repo's CONTRIBUTING; the mirror never -# names it. grep -c prints the count and exits 1 when that count is 0. +# names it. A concrete label is `scope:` followed by a name character — the +# doctrine spellings (bare `scope:`, wildcard `scope:*`) put a backtick or `*` +# there instead, so any name, current or future, in any shape (table row, +# name|color|description row, prose) re-reds this while doctrine stays green. +# grep -c prints the count and exits 1 when that count is 0. check "LABELS.md enumerates no repo's scope labels" 1 "0" \ - grep -c 'scope:release-flow\|scope:guards\|scope:labels\|scope:docs' "$ROOT/LABELS.md" + grep -c 'scope:[a-z0-9]' "$ROOT/LABELS.md" summary