Release branches with fragments: fold, forecast the open entry #38

Closed
mikluko wants to merge 0 commits from release-branches into release-dispatch
Owner

What and why

Stacked on #37 (base release-dispatch); retarget to main once #37 merges.

Lets a release branch assemble its open entry from fragments, by hand, or both, under full validation.

  • fold appends the fragments to the open entry, or to [Unreleased] where none is open, and deletes them.
  • fragments-release forecasts the open entry closed today with the fragments folded in, where there is one; before, it tried to release [Unreleased] above it, which release refuses.
  • missing-fragment also passes a pull request whose changelog carries a note its merge base lacks, so the pull request merging a release branch, which consumes fragments, passes.
  • examples/release-branch takes its notes as fragments; the candidate workflow also triggers on .changelog/**.
  • README: release-branch subsection under Fragments, and "Migrating from 1.x".

Rehearsed in a scratch repository: a fragment PR into release/v1.3.0-rc with the entry open passes, the merge PR after fold and dating passes, a PR carrying no notes fails missing-fragment.

Checklist

  • .changelog/ gained a fragment carrying this change's notes, or this change needs none.
  • AI assistance is declared below.

AI assistance

Claude Code (Claude Opus 5.5).

## What and why Stacked on #37 (base `release-dispatch`); retarget to `main` once #37 merges. Lets a release branch assemble its open entry from fragments, by hand, or both, under full validation. - **`fold`** appends the fragments to the open entry, or to `[Unreleased]` where none is open, and deletes them. - **`fragments-release`** forecasts the open entry closed today with the fragments folded in, where there is one; before, it tried to release `[Unreleased]` above it, which `release` refuses. - **`missing-fragment`** also passes a pull request whose changelog carries a note its merge base lacks, so the pull request merging a release branch, which consumes fragments, passes. - `examples/release-branch` takes its notes as fragments; the candidate workflow also triggers on `.changelog/**`. - README: release-branch subsection under Fragments, and "Migrating from 1.x". Rehearsed in a scratch repository: a fragment PR into `release/v1.3.0-rc` with the entry open passes, the merge PR after `fold` and dating passes, a PR carrying no notes fails `missing-fragment`. ## Checklist - [x] `.changelog/` gained a fragment carrying this change's notes, or this change needs none. - [x] AI assistance is declared below. ## AI assistance Claude Code (Claude Opus 5.5).
Release branches with fragments: fold, forecast the open entry
All checks were successful
CI / changelog (pull_request) Successful in 18s
CI / test (pull_request) Successful in 21s
bc4258a99b
A release branch names its version in an open entry and assembles it from
fragments, by hand, or both. fold appends the fragments to the open entry,
or to [Unreleased] where none is open, and deletes them.

fragments-release forecasts the open entry closed today with the fragments
folded in, where there is one, rather than releasing [Unreleased] above it,
which release refuses. missing-fragment also passes a pull request whose
changelog carries a note its merge base lacks: the pull request merging a
release branch consumes fragments rather than adding them.

examples/release-branch takes its notes as fragments; README gains the
release-branch subsection and a migration section for 1.x.

Assisted-By: Claude <noreply@anthropic.com>
CI: a lint job running golangci-lint, govulncheck and actionlint
All checks were successful
CI / test (pull_request) Successful in 17s
CI / lint (pull_request) Successful in 25s
a42d7f1370
The changelog job becomes lint and gains three linters, each run whatever
the one before it found. .golangci.yaml is the standard set plus gocognit at
20 and gofmt, as in mikluko/dotfiles; govulncheck and actionlint are pinned
as in mikluko/flakybin.

gocognit reported eight functions over 20, Lint at 59; each is split into
named parts with no change in behavior. errcheck reported unchecked writes,
now returned. actionlint is told to skip the Forgejo URL spelling of uses:
and the examples' reusable workflow, which lives in the .github/ they are
written for; its two shellcheck findings are fixed.

Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Folded into #37: both commits now sit on release-dispatch.

Folded into #37: both commits now sit on release-dispatch.
Author
Owner

Folded into #37: both commits now sit on release-dispatch.

Folded into #37: both commits now sit on release-dispatch.
mikluko closed this pull request 2026-11-11 12:45:21 +00:00
All checks were successful
CI / test (pull_request) Successful in 17s
CI / lint (pull_request) Successful in 25s

Pull request closed

Sign in to join this conversation.
No description provided.