🐛 fix(ci): allow kebab-case commit scopes

The scope regex only accepted [a-z0-9_], rejecting hyphenated scopes
like tsl-syntax that dominate the history (12x vs 4x underscore form).
Align both linter copies and the spec doc to accept lower-kebab-case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
csh
2026-07-13 11:22:50 +08:00
co-authored by Claude Fable 5
parent df8c402afb
commit 265c891e19
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ def _validate_subject_line(
m = re.match(
r"^(?:(?P<emoji>:[a-z0-9_+-]+:)\s+)?"
r"(?P<type>[a-z]+)"
r"(?P<scope>\([a-z0-9_]+\))?"
r"(?P<scope>\([a-z0-9_-]+\))?"
r":\s+(?P<text>.+)$",
subject,
)