Skip to content

chore: low-friction commitlint for agent commits - #71

Merged
ryanleecode merged 1 commit into
mainfrom
chore/commitlint-low-friction
Oct 8, 2026
Merged

ryanleecode merged 1 commit into
mainfrom
chore/commitlint-low-friction

Conversation

@kiro-systemf

@kiro-systemf kiro-systemf Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Applies the org-decided low-friction commitlint policy to root commitlint.config.ts. Commitlint change only.

Why: the error-level cosmetic rules fail whole commits for things with zero downstream impact. Trailing periods (subject/header/body-full-stop) and an unguessable scope-enum hard-failed otherwise-fine agent commits, and type-matches-diff-shape is a staged-diff heuristic that guessed wrong and blocked. Releases in these repos run on changesets (.changeset/*.md), not commit messages, so none of these rules gate correctness or versioning.

Changes:

  • subject-full-stop, header-full-stop, body-full-stop -> off
  • scope-enum -> off (SCOPES enum deleted); scope-case -> warn (kebab-case)
  • type-matches-diff-shape deleted along with its plugin machinery (stagedFiles(), ALLOWED_BY_SHAPE, path matchers, node:child_process import)
  • body-leading-blank, footer-leading-blank -> warn
  • Kept at error: no-ai-coauthors, type-empty, type-case (lower-case), type-enum (existing list verbatim), subject-empty

Verified: printf 'feat: add thing.' | pnpm exec commitlint exits 0; unguessable scope passes; AI-coauthor and out-of-list type still block.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@ryanleecode
ryanleecode force-pushed the chore/commitlint-low-friction branch from 1eaf362 to eb5d752 Compare October 8, 2026 22:01
@ryanleecode
ryanleecode merged commit 171583c into main Oct 8, 2026
3 of 4 checks passed
@kiro-systemf
kiro-systemf Bot deleted the chore/commitlint-low-friction branch October 8, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant