You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: automate releases via release-please + PR title lint
Replaces the manual "remember to run make release" flow with two
GitHub Actions that together guarantee releases can't be forgotten or
mislabeled:
- release-please.yml watches main; whenever there are unreleased
commits with conventional-commit prefixes, it opens (or updates) a
"Release PR" with auto-computed version + auto-generated CHANGELOG.
Merging that PR creates the v* tag, which publish.yml already
consumes to ship to PyPI. The version bump is deterministic from
semver rules on the commit prefixes (feat = minor, fix = patch,
BREAKING CHANGE = major), so it can't be picked wrong.
- lint-pr-title.yml runs amannn/action-semantic-pull-request against
every PR title. Titles without a conventional prefix get a red
check; combined with branch protection (enable later in repo
settings → Branches), this blocks merging until the title is fixed.
Important specifically because release-please reads PR titles under
squash-merge, and a missing prefix would silently miss a release.
The setuptools-scm migration from PR #56 was the prerequisite — with
the version derived from tags rather than a source field,
release-please doesn't need to edit any source files (uses
release-type: simple). The manifest file tracks the current released
version (0.3.5) so the bot's first run picks up from where we are.
`make release` and friends stay as a manual escape hatch for the rare
case where the release-please flow can't be used (e.g. urgent security
fix that shouldn't wait for the normal Release PR cycle). AGENTS.md
updated to describe the new flow.
After merge:
- The next PR with a `feat:` or `fix:` will trigger a Release PR
- Enable branch protection on main → require lint-pr-title check
- Stop running make release; let the bot do it
0 commit comments