release: a -bump flag naming the bump level, and 2.4.0 #47

Merged
mikluko merged 2 commits from mikluko/release-bump into main 2026-11-22 12:45:30 +00:00
Owner

Summary

-bump major|minor|patch on release, bump input on actions/release, from beads changelog-1rb. First consumer: workspace-nixos, versioned YY.M.PATCH, whose scheduled nixpkgs pin files a note under Changed and needs a patch.

 releaseCmd
+  -bump given with -version          -> refused, file untouched
   rewrite
+    -bump given: Changelog.Bump(level)   newest final version, raised by level
     ReleaseFragments(src, frags, version, day)
-      version nil: Changelog.Next()      level from the sections
+      version nil: Changelog.Next()      level from the sections, via semver.Version.Bump

-bump major below 1.0.0 releases 1.0.0, unlike a computed breaking bump (minor there): naming the level is how a repository graduates.

The second commit is the 2.4.0 release, folded with changelog release as the Release workflow does. After merge, a dispatch finds 2.4.0 due and resumes at the tag.

Evidence

  • Before: [Unreleased] with ### Changed, newest 1.2.3: release gives 1.2.4 only via -version 1.2.4, read from the file by the caller.
    After: release -bump patch gives 1.2.4 (TestReleaseCmdBumpsByTheLevelGiven); -bump patch -version 1.2.4 and -bump pre are refused with the file unchanged (TestReleaseCmdRefusesBump).
  • go test ./... passes, also with GITHUB_REF_NAME=v2.4.0; golangci-lint 0 issues; validate on the release commit: due=true version=2.4.0 (manifest-version off locally, no nix).

Merge Danger

Door: two-way until the dispatch cuts v2.4.0; one-way after.

Blast Radius: additive. Next is restructured onto Version.Bump with TestNext unchanged; no existing input or flag changes meaning.

Merge on 2026-11-22 (UTC): pending-date-mismatch holds the release back if the merge commit is dated later than the heading.

## Summary `-bump major|minor|patch` on `release`, `bump` input on `actions/release`, from beads `changelog-1rb`. First consumer: workspace-nixos, versioned `YY.M.PATCH`, whose scheduled nixpkgs pin files a note under Changed and needs a patch. ```diff releaseCmd + -bump given with -version -> refused, file untouched rewrite + -bump given: Changelog.Bump(level) newest final version, raised by level ReleaseFragments(src, frags, version, day) - version nil: Changelog.Next() level from the sections + version nil: Changelog.Next() level from the sections, via semver.Version.Bump ``` `-bump major` below 1.0.0 releases `1.0.0`, unlike a computed breaking bump (minor there): naming the level is how a repository graduates. The second commit is the 2.4.0 release, folded with `changelog release` as the Release workflow does. After merge, a dispatch finds 2.4.0 due and resumes at the tag. ## Evidence - **Before:** `[Unreleased]` with `### Changed`, newest `1.2.3`: `release` gives `1.2.4` only via `-version 1.2.4`, read from the file by the caller. **After:** `release -bump patch` gives `1.2.4` (`TestReleaseCmdBumpsByTheLevelGiven`); `-bump patch -version 1.2.4` and `-bump pre` are refused with the file unchanged (`TestReleaseCmdRefusesBump`). - `go test ./...` passes, also with `GITHUB_REF_NAME=v2.4.0`; `golangci-lint` 0 issues; validate on the release commit: `due=true version=2.4.0` (`manifest-version` off locally, no nix). ## Merge Danger **Door:** two-way until the dispatch cuts `v2.4.0`; one-way after. **Blast Radius:** additive. `Next` is restructured onto `Version.Bump` with `TestNext` unchanged; no existing input or flag changes meaning. Merge on 2026-11-22 (UTC): `pending-date-mismatch` holds the release back if the merge commit is dated later than the heading.
A repository whose version scheme fixes the bump (YY.M.PATCH after the
NixOS release it pins) had to read the newest version itself to pass
-version, since filing a note under Fixed to buy a patch picks the
section by the bump. -bump names only the level; -version still wins
the version outright, so the two are refused together.

-bump major below 1.0.0 gives 1.0.0, unlike a computed breaking bump:
naming the level is how a repository graduates.

Assisted-By: Claude <noreply@anthropic.com>
release: 2.4.0
All checks were successful
CI / test (pull_request) Successful in 22s
CI / lint (pull_request) Successful in 46s
54ebefa448
Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch mikluko/release-bump 2026-11-22 12:45:30 +00:00
Sign in to join this conversation.
No description provided.