0008. Squash merge, Conventional Commit titles, release-please
- Status: Accepted
- Date: 2026-11-23
Context
Releases and the changelog should come from history without hand edits, and history on main should be one readable line per change.
Decision
- Squash merge only (repo setting + ruleset). The PR title becomes the commit title on
main. - PR titles are Conventional Commits, enforced by a required
pr-titlecheck with a table test of good and bad titles. Dependabot titles usechore(deps)/chore(deps-dev). Types: CONTRIBUTING.md. - release-please opens a release PR (version bump +
CHANGELOG.md) from those titles and publishes a GitHub Release when it merges. One version for the whole repo, starting at 0.0.0, so the firstfeatmakes 0.1.0; before 1.0,featbumps the minor andfixthe patch. - It uses a fine-grained token scoped to this repo, because PRs opened with
GITHUB_TOKENdon't trigger CI. The job fails loudly if the token is missing.
Consequences
- Only the PR title has to be right; branch commits don't matter.
- A squashed branch can't be reused after merge; follow-ups start from
main. - Never edit
CHANGELOG.mdor the version by hand. - The token expires yearly and must be renewed.