feat: fail a pull request whose commits are not Conventional Commits #98

Merged
cjournois merged 1 commit from feat/commit-check into feat/diff-coverage 2026-11-09 12:54:10 +00:00
Collaborator

The changelog and version bump read Conventional Commits, and git-cliff silently drops a commit it cannot parse.

  • On a PR, every commit since the merge base must parse as <type>[(scope)][!]: <subject>; the first that does not is named and fails the job.
  • It runs git-cliff in strict mode with the pipeline's own cliff.toml, so the rule is exactly what the release reads.

Verified: just lint test (529 bats) green; the strict-mode override was mutated away and the failing-commit test caught it.
Stacked on #96 (it reuses pr_merge_base); retarget to main once #96 lands.

Session: 60ac4614-d609-4e43-a004-27bdaf30476c

The changelog and version bump read Conventional Commits, and git-cliff silently drops a commit it cannot parse. - On a PR, every commit since the merge base must parse as `<type>[(scope)][!]: <subject>`; the first that does not is named and fails the job. - It runs git-cliff in strict mode with the pipeline's own cliff.toml, so the rule is exactly what the release reads. Verified: `just lint test` (529 bats) green; the strict-mode override was mutated away and the failing-commit test caught it. Stacked on #96 (it reuses `pr_merge_base`); retarget to main once #96 lands. Session: 60ac4614-d609-4e43-a004-27bdaf30476c
feat: fail a pull request whose commits are not Conventional Commits
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 50s
4d4e9b818d
git-cliff silently drops a commit it cannot parse, so it vanished from the changelog and the version bump; strict mode now names it on the PR instead.

Session: 60ac4614-d609-4e43-a004-27bdaf30476c
bot-claude changed title from WIP: feat: fail a pull request whose commits are not Conventional Commits to feat: fail a pull request whose commits are not Conventional Commits 2026-11-09 12:53:48 +00:00
cjournois merged commit 4d4e9b818d into feat/diff-coverage 2026-11-09 12:54:10 +00:00
cjournois deleted branch feat/commit-check 2026-11-09 12:54:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!98
No description provided.