2.0.0: actions under actions/, release by dispatch, fragments on release branches, lint #37

Merged
mikluko merged 3 commits from release-dispatch into main 2026-11-11 13:02:36 +00:00
Owner

What and why

Reapplies #36's move under actions/, reverted in 1f59736 after v2.0.0 was withdrawn, without its hand-cut release: the 2.0.0 notes are fragments again. Merging cuts nothing; the first dispatch afterwards cuts 2.0.0 with every fragment. Folds in #38.

  • Release by dispatch. The release workflow runs by hand from main: folds the fragments, writes actions/VERSION, validates the changelog and runs the suite, then pushes the release commit and cuts the tag. A run failing after the push resumes at the tag. The version moves from the three action.yaml files into actions/VERSION.
  • Forward validation. fragments-release reports what releasing what is pending today would raise that the changelog as it stands does not: the open entry closed with the fragments folded in where there is one, else [Unreleased].
  • Notes required. missing-fragment fails a pull request carrying no notes: no new fragment and no new note in the changelog, against the merge base with the new base input (default github.base_ref).
  • Release branches. fold appends the fragments to the open entry, or to [Unreleased]; examples/release-branch takes its notes as fragments.
  • Breaking: fragments defaults to .changelog; fragments: "" opts out, as release-trunk does. README gains "Migrating from 1.x".
  • CI. The changelog job becomes lint: golangci-lint (standard set, gocognit at 20, gofmt), govulncheck and actionlint. Eight functions over the complexity bar are split, unchecked writes are returned.

Unverified on a runner: the workflow's push to main under branch protection, Forgejo evaluating ${{ github.base_ref }} as an input default, that the automatic token's push starts no other run, and shellcheck on the runner image.

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 Reapplies #36's move under `actions/`, reverted in 1f59736 after v2.0.0 was withdrawn, without its hand-cut release: the 2.0.0 notes are fragments again. Merging cuts nothing; the first dispatch afterwards cuts 2.0.0 with every fragment. Folds in #38. - **Release by dispatch.** The release workflow runs by hand from `main`: folds the fragments, writes `actions/VERSION`, validates the changelog and runs the suite, then pushes the release commit and cuts the tag. A run failing after the push resumes at the tag. The version moves from the three `action.yaml` files into `actions/VERSION`. - **Forward validation.** `fragments-release` reports what releasing what is pending today would raise that the changelog as it stands does not: the open entry closed with the fragments folded in where there is one, else `[Unreleased]`. - **Notes required.** `missing-fragment` fails a pull request carrying no notes: no new fragment and no new note in the changelog, against the merge base with the new `base` input (default `github.base_ref`). - **Release branches.** `fold` appends the fragments to the open entry, or to `[Unreleased]`; `examples/release-branch` takes its notes as fragments. - **Breaking:** `fragments` defaults to `.changelog`; `fragments: ""` opts out, as `release-trunk` does. README gains "Migrating from 1.x". - **CI.** The `changelog` job becomes `lint`: golangci-lint (standard set, `gocognit` at 20, `gofmt`), govulncheck and actionlint. Eight functions over the complexity bar are split, unchecked writes are returned. Unverified on a runner: the workflow's push to `main` under branch protection, Forgejo evaluating `${{ github.base_ref }}` as an input default, that the automatic token's push starts no other run, and `shellcheck` on the runner image. ## 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).
2.0.0: actions under actions/, release by dispatch, fragment checks
All checks were successful
CI / changelog (pull_request) Successful in 16s
CI / test (pull_request) Successful in 20s
3bd33bdf28
Reapplies the move reverted in 1f59736, without its hand-cut release: the
2.0.0 notes are fragments again, and the first dispatch after this merges
cuts 2.0.0 with all of them.

The release workflow runs by hand from main. It folds the fragments, writes
actions/VERSION, validates the changelog and runs the suite before pushing
the release commit and cutting the tag; a run that fails after the push
resumes at the tag. The version moves out of the three action.yaml files
into actions/VERSION so the workflow writes a plain file, not YAML.

The reader forecasts the release (fragments-release) and fails a pull
request adding no fragment (missing-fragment, read against the merge base
with base). fragments defaults to .changelog; the examples, which write
CHANGELOG.md directly, set it empty. The documented major follows the
pending fragments, so a breaking pull request documents its own major.

Assisted-By: Claude <noreply@anthropic.com>
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>
mikluko changed title from 2.0.0: actions under actions/, release by dispatch, fragment checks to 2.0.0: actions under actions/, release by dispatch, fragments on release branches, lint 2026-11-11 12:45:35 +00:00
Sign in to join this conversation.
No description provided.