Files
treycentricandGitHub 0068500329 feat(release): automate the release PR and post-merge tag (#41) (#42)
`main` is protected, so cutting a release meant a manual branch-dance
(open a release/vX.Y.Z branch, PR it, discard bump's tag, re-tag the
squashed commit). Two new entry points:

- `bump ... --pr` computes the bump, then creates release/vX.Y.Z off
  origin/main, writes VERSION + CHANGELOG + the chore(release) commit on
  that branch, pushes it, and opens the PR via `gh` (changelog section
  as the body). No tag. Returns you to your original branch.
- `tag` (new subcommand, post-merge) fast-forwards main, asserts HEAD is
  the chore(release): vX.Y.Z commit, then tags + pushes - firing the
  Release workflow. Refuses if HEAD isn't the release commit or the tag
  exists.

Flow becomes: suggest -> bump auto --pr -> (squash-merge) -> tag.
Structurally impossible to tag an orphaned pre-merge commit. Plain
`bump` (no --pr) is unchanged for anyone not on a protected branch.

docs/dev/versioning.md leads with the new flow; tests/test_release_git.py
covers the git/gh call sequences with everything stubbed.

Closes #41
2026-09-08 08:49:33 -05:00
..
2026-08-30 22:01:54 -05:00