Skip to content

ci: Lint every commit on Dependabot PRs - #82

Merged
slifty merged 1 commit into
mainfrom
80-commitlint-pr-author
Nov 20, 2026
Merged

slifty merged 1 commit into
mainfrom
80-commitlint-pr-author

Conversation

@slifty

@slifty slifty commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

This PR runs commitlint on Dependabot PRs again, so a commit you add to one (such as enabling a new rule) is linted like any other. Commits signed off by Dependabot, including ones you amend, are exempt only from the 50-character subject limit. Their conventional-commit header is still checked, so a mangled type can't slip through and mis-release.

Closes #83

Testing

npm run lint and npm test pass. Ran commitlint locally against: Dependabot's original long subject (passes), a long human subject (fails), a Dependabot message with its type stripped (fails), and a normal commit (passes).

🤖 Generated with Claude Code (session 01c28651-55de-4799-bd36-9f4e602b4131)

@slifty
slifty force-pushed the 80-commitlint-pr-author branch 2 times, most recently from 7e62091 to 377629a Compare November 20, 2026 15:44
@slifty slifty changed the title ci: Skip commitlint on PRs Dependabot opened ci: Lint every commit on Dependabot PRs Nov 20, 2026
Skipping commitlint on Dependabot PRs also skipped any commit we added
or amended there, and those commits decide the release. Only the
subject length of Dependabot's own messages needs an exception.

Issue #83 Lint commits we add or amend on Dependabot PRs

Claude-Session: 01c28651-55de-4799-bd36-9f4e602b4131
@slifty
slifty force-pushed the 80-commitlint-pr-author branch from 377629a to 3b772c2 Compare November 20, 2026 15:48
@slifty
slifty merged commit bca3203 into main Nov 20, 2026
10 checks passed
@slifty
slifty deleted the 80-commitlint-pr-author branch November 20, 2026 15:51
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.

Lint commits we add or amend on Dependabot PRs

1 participant