You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
omp-hooks.ts: CONVENTIONAL_RE rejects the type!(scope) breaking form and hides the subject #151
The !? sits after the optional scope, so only type(scope)!: / type!: match.
Strict Conventional Commits v1.0.0 does spell the breaking marker after the scope, so the regex is not wrong per spec — but type!(scope): is common enough (the repo where this surfaced has an all-type!(scope): history) that blocking it is a false positive.
Separately, the failure reason never echoes the subject, so the author cannot see what was rejected.
Proposed fix
Accept the bang on either side of the scope, and echo the subject.
-const CONVENTIONAL_RE =- /^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([^)]+\))?!?:\s.+/;+// Conventional Commits specifies `type(scope)!:`, but many repositories write+// `type!(scope):`. Accept both; the leading type is what matters.+const CONVENTIONAL_RE =+ /^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)!?(?:\([^)]+\))?!?:\s.+/;
@barbarum — Two sharp reports in one session. The type!(scope): case is subtle because the spec technically disallows it, yet enough real-world repos use it that blocking it is a false positive. The 'echo the subject' improvement was long overdue — authors should not have to guess what was rejected. Thank you for both the diagnosis and the clean diffs.
Activity
danielvm-git commentedon Oct 25, 2026
@barbarum — Two sharp reports in one session. The type!(scope): case is subtle because the spec technically disallows it, yet enough real-world repos use it that blocking it is a false positive. The 'echo the subject' improvement was long overdue — authors should not have to guess what was rejected. Thank you for both the diagnosis and the clean diffs.
chore(release): 2.88.11 [skip ci]
github-actions commentedon Oct 25, 2026
🎉 This issue has been resolved in version 2.88.11 🎉
The release is available on:
Your semantic-release bot 📦🚀
fix(omp-hooks): inGitRepo bail-early, accept type!(scope) form, echo …