Repository navigation
fix(hooks): accept the ! breaking-change marker in commit-quality - #3824
Conversation
ECC Tools / Security EvidenceCommit: Security scanner evidence required (action_required) Detected 1 security-sensitive predictive risk signal(s) without scanner evidence. Mode: enforce Findings:
Touched security-sensitive paths:
Expected evidence:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 3 PR taxonomy bucket(s): Security Evidence, Harness Drift, CI/CD Recommendation. Scanned 2 changed file(s). Roadmap taxonomy buckets: Security EvidenceSecurity-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence. Signals:
Paths:
Harness DriftHarness-facing changes can drift across Claude Code, Codex, OpenCode, and shared adapter surfaces. Signals:
Paths:
CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 2 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 2 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Accept and test breaking-change markers scripts/hooks/pre-bash-commit-quality.js, tests/hooks/pre-bash-commit-quality.test.js |
The conventional commit pattern permits an optional ! before the colon. Tests verify that scoped and unscoped subjects using ! produce no validation issues. |
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Possibly related PRs
- affaan-m/ECC#3734: Changes the same hook’s message extraction and subject validation.
- affaan-m/ECC#3729: Adds subject-line validation and here-document message handling in the same hook.
- affaan-m/ECC#3731: Adds subject extraction and validation behavior in the same hook.
Suggested reviewers: xingzihai
Merge Risk: 
Minimal · up to f914d
-
The marker validation change is covered for scoped and unscoped subjects and is mergeable.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
[Low impact] Safe to merge. The intended breaking-change syntax is accepted without weakening the tested format, capitalization, or length checks.
|
|
Thank you for contributing fix(hooks): accept the ! breaking-change marker in commit-quality. Your complete reviewed head is preserved with attribution in maintainer integration #3945. The delivered main commit now passes CI, CodeQL and a fresh Supply-Chain Watch after the focused coverage-report and dependency recovery in #3947. We appreciate your patience and your help improving ECC. |
What Changed
The commit-quality hook now allows a
!after the type or scope, sofeat!: ...andfeat(api)!: ...pass its format check. One test covers both.Why This Change
The conventional-commit-review skill tells the agent to mark a breaking change as
feat(api)!: remove legacy endpoint, and with the strict profile on, this hook then warns that the same message "does not follow conventional commit format". The!is part of the Conventional Commits spec, and commitlint's conventional preset (same type list as the hook) accepts it. It's only a warning so nothing was blocked, it's just telling you off for doing what the skill said.It's the line just above one that #3672 changes, so whichever lands second might need a quick rebase.
Testing Done
node tests/run-all.js) - not the whole lot, I didn't have deps installed so plenty of unrelated files fall over on missing modules. The hook's own test file passes, plus the quality-gate and claw tests that load itfeat!(api): xandfeat!!: xstill fail the format check, andfeat!: Drop ...still gets the lowercase oneType of Change
fix:Bug fix (a small one - it was a false warning)feat:New featurerefactor:Code refactoringdocs:Documentationtest:Testschore:Maintenance/toolingci:CI/CD changesSecurity & Quality Checklist
If you changed dependencies or
package.json(bin/files/ deps)yarn install --mode=update-lockfileand committed theyarn.lockchange - N/A, no dependency changesIf you added a skill, command, agent, hook, or CLI tool
Documentation
!