Skip to content

build: fix the commit check and lint for Dependabot and release-please - #21

Merged
maxsoldev merged 3 commits into
mainfrom
fix-bot-subject-length
Nov 21, 2026
Merged

maxsoldev merged 3 commits into
mainfrom
fix-bot-subject-length

Conversation

@maxsoldev

@maxsoldev maxsoldev commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

 checkCommitMessage(message, { bot })
   type, scope, "!" required
-  subject <= 72
+  subject <= 72, unless the author is a GitHub bot
   no final period, blank second line

#20 failed the commits job: Dependabot's subject build(deps-dev): bump the development group across 1 directory with 4 updates is 77 characters, and we do not choose its words.

Evidence

  • Before: node scripts/check-commits.ts origin/main..<#20 head> → the subject has 77 characters, at most 72, exit 1.
    After: same command → 1 commit message(s) follow Conventional Commits.
  • New test: a bot's 77-character subject passes; the same subject from a person fails; a bot subject without a type still fails.
  • pnpm check green.

Merge Danger

Door: two-way

Blast Radius: CI

Only the commit check and the lint scope change. A bot commit with no type still fails.


Two more commits:

  • build: leave the release-please manifest to release-please. release PR chore(main): release 0.1.1 #18 writes {".":"0.1.1"}; biome ci on its branch → .release-please-manifest.json needs to be formatted, 1 error, so the release build's pnpm check would fail. Biome now skips the file; with that content it reports no error.
  • chore: ignore agents' git worktrees. .agents/worktrees/ in .gitignore, so Biome and git skip them.

Dependabot names a grouped update "bump the development group across
1 directory with 4 updates", 77 characters with its prefix, and we do
not choose its words. A commit by a GitHub bot (author
...[bot]@users.noreply.github.com) still needs a type; only the
length is not checked. Raising the limit for everyone was rejected:
72 stays the rule for people.
release-please writes .release-please-manifest.json as {".":"0.1.1"},
which Biome's formatter rejects, so pnpm check, and with it the
release build, would fail on every release PR. The file is
release-please's own; Biome skips it.
@maxsoldev maxsoldev changed the title build: let a bot's commit subject be longer than 72 build: fix the commit check and lint for Dependabot and release-please Nov 21, 2026
@maxsoldev
maxsoldev merged commit ba7a832 into main Nov 21, 2026
6 checks passed
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