ci: standardize commit messages - #1119
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ted-palmer's task in 33s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 45s —— View job Code Review — PR #1119
Code Review — 1 issue found
Everything else looks solid:
Reviewed 4 files, 97 lines added. Checked for correctness, security, error handling, and repo guidelines compliance. |
|
0c97a88 to
7c89f6c
Compare
|
Claude finished @ted-palmer's task in 1m 6s —— View job Code Review — PR #1119
Code Review — No issues found. Reviewed 3 files, 84 lines changed. Checked for correctness, security, error handling, and repo guidelines compliance. Notes on the current state (the earlier bot findings have been addressed in this revision):
|
|
Claude finished @ted-palmer's task in 1m 42s —— View job Review — PR #1119 (current state)I re-reviewed the pushed code against the earlier bot feedback. The latest commit resolves all three findings — the versions the bots reviewed no longer match what's on the branch.
✅ Prior findings — all addressed1. Duplicate PR-title check across two workflows (code-review WARNING) 2. 3. Broad const EXEMPT = [/^Revert ".+"/, /^Version Packages/, /^Release the: /]There is no bare Correctness spot-check (
|
7c89f6c to
0cce196
Compare
|
Claude finished @ted-palmer's task in 32s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 52s —— View job Code Review — PR #1119
Code Review — No issues found. Reviewed 3 files ( The current revision resolves the earlier bot findings:
Nothing blocking. LGTM ✅ |
|
Claude finished @ted-palmer's task in 31s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 34s —— View job Code Review — PR #1119
Code Review — No issues found. Reviewed 3 files ( The current revision resolves all earlier bot findings:
Nothing blocking. LGTM ✅ |
| 'test' | ||
| ] | ||
|
|
||
| const EXEMPT = [/^Revert ".+"$/, /^Version Packages/, /^Release the: /] |
There was a problem hiding this comment.
Revert exemption accepts arbitrary trailing content
The .+ in the Revert exemption consumes embedded quotes and everything after them. As a result, Revert "fix: valid subject" arbitrary suffix" exits successfully even though it is neither a conventional title nor a well-formed GitHub revert title. Since squash merges use the PR title on main, this bypasses the commit-title convention. Restrict the quoted subject so it cannot contain a quote or trailing content, for example: /^Revert "[^"]+"$/.
Artifacts
Focused validator harness source
- Authored Node harness executes canonical and malformed Revert-title cases against the current validator; it documents the exact inputs and confirms both are expected by the current behavior.
Focused harness output accepting both Revert titles
- Captured execution of the focused harness from `/home/user/repo`; both the canonical and malformed trailing-suffix titles exit 0, proving the acceptance bypass.
Canonical Revert title validator output
- Captured direct validator execution for `Revert "fix: valid subject"`; it exits 0 as the valid baseline.
Malformed Revert title validator output
- Captured direct validator execution for `Revert "fix: valid subject" arbitrary suffix"`; it also exits 0, confirming the validator accepts the malformed title.
e0b83de to
22621f6
Compare
|
Claude finished @ted-palmer's task in 23s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 59s —— View job Code Review — PR #1119
Code Review — 1 issue found (non-blocking)
Everything else looks solid:
Reviewed 3 files, 84 lines changed. Checked for correctness, security, error handling, and repo guidelines compliance. |
| 'test' | ||
| ] | ||
|
|
||
| const EXEMPT = [/^Revert ".+"$/, /^Version Packages/, /^Release the: /] |
There was a problem hiding this comment.
Greedy Revert exemption accepts malformed PR titles
/^Revert ".+"$/ accepts arbitrary text and embedded quotes between the opening and final quote. For example, Revert "feat: restore behavior" arbitrary suffix" passes validation even though an equivalent ordinary invalid title is rejected. Constrain the quoted content, for example with /^Revert "[^"]+"$/, so malformed titles cannot bypass the squash-merge convention.
Artifacts
Focused Revert-title validator reproduction script
- This script invokes the PR-title validator with valid, ordinary-invalid, and malformed Revert titles, providing the executable reproduction.
Observed Revert-title validator reproduction output
- This captured command output shows both malformed Revert titles exiting 0 while the ordinary invalid title exits 1, confirming the bypass.
No description provided.