Appearance
0004: Check that every commit stands alone
Status: accepted
Date: 2026-12-04
PR: #2
Context
A pull request can hold many commits, and a stack of pull requests merges one at a time. A commit that breaks the build makes revert and bisect unsafe.
Options considered
- Nobody weighed another option when the repository made this rule.
Decision
The Commits workflow checks each commit of a pull request by itself. For each commit, it runs npm ci, commitlint, the tests, the lints, Vale and the build.
Consequences
The build works at each commit, so anyone can revert a commit or bisect the history. Each pull request in a stack is safe to merge by itself. The check takes longer as the number of commits grows.