Skip to content

chore: low-friction commitlint (drop cosmetic hard-fails) - #79

Merged
ryanleecode merged 4 commits into
mainfrom
chore/commitlint-low-friction
Oct 8, 2026
Merged

ryanleecode merged 4 commits into
mainfrom
chore/commitlint-low-friction

Conversation

@kiro-systemf

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

Copy link
Copy Markdown
Contributor

Apply the org-decided low-friction commitlint policy to the repo-root commitlint.config.ts. commitlint change only.

What changed

  • subject-full-stop, header-full-stop, body-full-stop -> 0 (off)
  • scope-enum -> 0 (off); the static SCOPES enum deleted
  • scope-case -> 1 (warn, was error)
  • type-matches-diff-shape deleted entirely, along with its plugin rule and all its machinery (stagedFiles(), ALLOWED_BY_SHAPE, the isDoc/isTest/isCI/isLockfile/isTooling/matchesAny matchers, and the node:child_process import)
  • body-leading-blank, footer-leading-blank -> 1 (warn, was off)

Kept at error (the real bars)

no-ai-coauthors, type-empty, type-case, type-enum (same 16 entries), subject-empty. The no-ai-coauthors plugin rule and patterns are untouched.

Why

These rules fail a whole commit for cosmetic reasons (a trailing period, an unguessable scope, a heuristic type-vs-diff guess) that have zero release or correctness impact: releases run on changesets (.changeset/*.md), not commit messages. Dropping them stops spurious whole-commit failures on agent commits while keeping the one message policy that matters (the AI-coauthor ban) and tidy log grouping (type).

Verified

With the pinned toolchain (@commitlint/cli@21.2.3, config-conventional@21.2.3):

  • printf 'feat: add thing.' | commitlint -> exit 0 (trailing period no longer fails)
  • empty type still fails (type-empty)
  • AI co-author line still fails (no-ai-coauthors)
  • --print-config json confirms every rule level above

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 merged commit f6e7de3 into main Oct 8, 2026
11 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