mirror of
https://github.com/treycentric/pve-flr-portal.git
synced 2026-10-27 10:00:19 +01:00
`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