Skip to content

chore: drop cosmetic commitlint rules that fail agent commits - #70

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 low-friction commitlint policy to this fork's own
commitlint.config.ts. Cosmetic rules no longer fail agent commits; the
only error-level message bars kept are the ones with real downstream impact.

Changes

  • subject-full-stop, header-full-stop, body-full-stop -> [0] (off). The reported pain: a trailing period no longer rejects a commit.
  • scope-enum -> [0]; the static SCOPES enum deleted. Scope stays free-form; it has zero release impact here (releases run on changesets, not commit messages).
  • scope-case -> [1, 'always', 'kebab-case'] (warn, never blocks).
  • body-leading-blank, footer-leading-blank -> [1, 'always'] (warn).
  • Deleted type-matches-diff-shape and its machinery: stagedFiles(), ALLOWED_BY_SHAPE, the isDoc/isTest/isCI/isLockfile/isTooling/matchesAny path matchers, and the execFileSync / node:child_process import. A diff-shape heuristic that hard-failed agents and protected nothing downstream.

Kept at error (real bars)

no-ai-coauthors, type-empty, type-case (lower-case), type-enum (this repo's list, verbatim), subject-empty. subject-case [0], lengths [0], references-empty [1], and the repo's subtree-aware ignores + formatter are unchanged. The repos/xstate-upstream reference subtree is untouched.

Verification

printf 'feat: add thing.' | commitlint exits 0 (trailing period passes); config loads via --print-config; a bogus type still fails type-enum and an AI co-author still fails no-ai-coauthors.

Canonical end-state: plans/2026-10-08-1730-commitlint-friction/RECOMMENDATION.md §4.

@kiro-systemf
kiro-systemf Bot force-pushed the chore/commitlint-low-friction branch 3 times, most recently from aa85f18 to febc790 Compare October 8, 2026 22:52
@kiro-systemf
kiro-systemf Bot force-pushed the chore/commitlint-low-friction branch from febc790 to 25addec Compare October 8, 2026 22:58
@ryanleecode
ryanleecode merged commit 54475c6 into main Oct 8, 2026
7 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