Skip to content

fix(#48): align commitlint cli with config-conventional 21 - #49

Merged
shairevivo merged 2 commits into
mainfrom
agent/48-align-commitlint-cli
Nov 10, 2026
Merged

shairevivo merged 2 commits into
mainfrom
agent/48-align-commitlint-cli

Conversation

@fullsend-ai-coder

@fullsend-ai-coder fullsend-ai-coder Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dependabot (#44) moved @commitlint/config-conventional to 21.2.4 while @commitlint/cli stayed on 16.3.0. commitlint packages are released in lockstep, and the v16 loader is not built to load the v21 preset. The v21 preset needs Node >= 22.12.0 and pulls in ESM-only dependencies. The current Husky 9 commit-msg hook (npx --no -- commitlint --edit "$1") runs this pairing on every commit.

Changes

  • package.json: bump @commitlint/cli from ^16.2.1 to ^21.2.4, and raise engines.node from >=20 to >=22.12.0. That is the preset's own floor; .nvmrc (24) and the Dockerfile (node:24-alpine) are already above it.
  • package-lock.json: regenerated with npm install --package-lock-only. Every @commitlint/* package now resolves to major 21. The v16-only dependencies (ts-node, meow, cosmiconfig-typescript-loader, ...) are pruned. Pruning also moved the hoisted semver from 7.3.7 to 7.8.6 (still ^7), replacing the nested 7.8.1 copies. Other lockfile changes remove unused nested entries.
  • README.md: the Node requirement line now says >= 22.12.0.
  • .github/dependabot.yml: add a commitlint group (@commitlint/*, all version-update types including majors), listed before dev-minor-patch so the CLI and the preset are always bumped together in one PR. This file is under .github/, so it may need a human approval.

Testing

Run on Node 22.22.1 after npm ci:

  • npm ls @commitlint/cli @commitlint/config-conventional @commitlint/load: all 21.2.4, no v16 packages
  • echo 'feat: add x' | npx commitlint: exit 0
  • echo 'bad message' | npx commitlint: exit 1 (subject-empty, type-empty)
  • HUSKY_GIT_PARAMS=<file> npx commitlint -E HUSKY_GIT_PARAMS (the former Husky 4 invocation) gave the same results for good and bad messages
  • npm test: 19 suites / 39 tests pass
  • npm run lint: 0 errors (2 warnings that were already there, in untouched files)

After merging current main, I reran npm ci, 39 tests, tsc --noEmit, build, lint (0 errors, 2 existing warnings), and the production audit (0 vulnerabilities). The Husky 9 hook accepts a valid message and rejects an invalid one. These local checks used Node 26.13.0; the merged tree was not rerun on the pinned Node 24.

Notes

🤖 Generated with Claude Code


Closes #48

Post-script verification

  • Branch is not main/master (agent/48-align-commitlint-cli)
  • Secret scan passed (gitleaks — cd7764fb24dfcd7509b805b9823764949866ec21..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

Dependabot (#44) moved @commitlint/config-conventional to 21.2.4
while @commitlint/cli stayed on 16.3.0. commitlint packages are
released in lockstep; the v16 loader is not built to load the v21
preset, which needs Node >= 22.12.0 and pulls in ESM-only deps.
The husky commit-msg hook runs this pairing on every commit.

- package.json: bump @commitlint/cli to ^21.2.4 and raise
  engines.node to >=22.12.0 (the preset's floor; .nvmrc and the
  Dockerfile already use Node 24).
- package-lock.json: regenerated; all @commitlint/* packages now
  resolve to major 21 and the v16-only deps are pruned.
- README.md: update the Node requirement line.
- .github/dependabot.yml: add a commitlint group (all update
  types) before dev-minor-patch so CLI and preset bump together.

Verified on Node 22.22.1 after npm ci: 'feat: add x' passes,
'bad message' fails with type-empty/subject-empty, and
`commitlint -E HUSKY_GIT_PARAMS` behaves the same way. Unit tests
and eslint pass (2 pre-existing warnings in untouched files).

Closes #48

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Nov 9, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:11 PM UTC · Completed 9:21 PM UTC

Commit: a6c4aec · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.65

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 9, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored dependency upgrade aligning commitlint versions with large but auto-generated package-lock.json delta; two dependency files and one protected path elevate Tier 1 while low git churn, zero regressions, and a well-scoped matching issue hold the composite at moderate, consistent with the prior assessment.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored dependency upgrade aligning commitlint versions with large but auto-generated package-lock.json delta; two dependency files and one protected path elevate Tier 1, while low git churn, zero regressions, and a well-scoped matching issue hold the composite at moderate.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [misleading-label] package.json:6 — The PR body says it raises engines.node "from >=20 to >=22.12.0", but the diff's baseline is >=22. Main moved both the engines field and the README line from >=20 to >=22 in chore(deps-dev): bump @testing-library/jest-dom from 5.17.0 to 7.0.1 #45, and that change came into this branch when main was merged. The PR body was not updated afterwards. The final >=22.12.0 value is correct; only the stated starting value is stale.
    Remediation: Update the PR description to say engines.node goes from >=22 to >=22.12.0, and the README line from >= 22 to >= 22.12.0.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== -->

Review

Findings

Medium


Labels: Bug-fix PR that updates npm dev dependencies and the lockfile, matching how the repo labels fix and dependency PRs.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment bug Something isn't working dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 9, 2026
Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Shai Revivo <srevivo@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:31 PM UTC · Completed 9:41 PM UTC

Commit: b97b447 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.51

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread package.json Resolved
@shairevivo
shairevivo merged commit 5b32366 into main Nov 10, 2026
21 of 23 checks passed
@shairevivo
shairevivo deleted the agent/48-align-commitlint-cli branch November 10, 2026 09:09
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 9:10 AM UTC · Completed 9:19 AM UTC

Commit: b97b447 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.59

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #49 (align @commitlint/cli with config-conventional 21)

Overall, this workflow went well. The chain was retro (on #44), then #48, triage, code, review ×2, and a human merge. It needed no fix-agent iterations. The code agent finished in one iteration (27 turns, ~$0.70). Both reviews returned comment and found nothing a human later disagreed with. The maintainer merged without adding any review comments.

Timeline (2026-11-09 UTC)

Observations not filed as proposals

Proposal

Agents repo discovered from the run log: fullsend-ai/agents@v0.54.0 (87a43fcb8495).

Proposals filed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align @commitlint/cli with @commitlint/config-conventional 21 (version skew merged in #44) and raise the Node engine floor

1 participant