Release the linked-worktree fix (changelog#39) #40

Merged
city-root merged 1 commit from worker/changelog-850 into main 2026-11-12 11:02:30 +00:00
Contributor

What and why

Cuts 2.0.1, the release carrying the linked-worktree fix (#39, 5b13ad4): in a linked git worktree the tool now reads the worktree's own HEAD. Every Worker of the city runs in one, and two repositories of the city are to take their changelog notes as fragments on version 2, so the fix has to be in a release they can pin.

The commit is the one the release workflow writes on a dispatch, made here so it can be reviewed before anything is published. I ran the tool's own release subcommand (go run ./cmd/changelog release -fragments .changelog). It folded .changelog/linked-worktree-head.md into CHANGELOG.md, deleted the fragment, and moved the [Unreleased] compare link to v2.0.1...HEAD. I wrote actions/VERSION by hand, as the workflow does.

Version: 2.0.1. The only fragment is a Fixed section, and the tool bumps patch for Fixed/Security only. It reported prerelease=false. The date is today's, 2026-11-12.

What the tool reports for the result (go run ./cmd/changelog -fragments .changelog -base main): valid=true, version=2.0.1, already-tagged=false, latest-tag=v2.0.0, prerelease=false, due=true. go test ./... passes with GITHUB_REF_NAME=v2.0.1, which is how the workflow tests the release commit (changelog and actions/VERSION held to each other).

After the merge

Nothing is tagged or published by this pull request. Merging puts a release commit on main that is due but untagged, which the workflow handles: its first step reads main's changelog, and when the newest entry is already due it skips the fold and resumes at the tag.

  1. Dispatch the Release workflow (.forgejo/workflows/release.yaml) on Forgejo, ref main. It refuses any other ref.
  2. Leave its single input, version, empty. The fold step is skipped on this path, so the input is not read; a non-empty value would be ignored, not applied.
  3. The run then builds the four binaries and checksums.txt, pushes the tag v2.0.1, creates the release from the entry's notes with the assets, smoke-tests the published validate, append and release actions, and only last moves the major tag v2.

Who can dispatch: the city's forge account city-root has write access to mikluko/changelog (the API reports push: true, admin: false), and Forgejo asks for write access to dispatch a workflow. I did not dispatch, and I could not test that city-root can: that takes a dispatch. If it is refused, the user dispatches from the Actions tab.

If a run fails after the commit lands, dispatch again: it resumes at the tag.

What moves when the release exists

  • New tag v2.0.1, and the release page for it. The GitHub mirror gets the same tag and a copy of the release and its assets from mirror-release.yaml.
  • v2 is force-moved from v2.0.0 to v2.0.1, the last step of the run. v2.0.0 stays where it is.
  • https://sarak.sh/mikluko/changelog/actions/validate@v2 (and mikluko/action-changelog/actions/validate@v2 on GitHub) follows by itself. A consumer resolves v2 to the commit it points at, and actions/install.sh there downloads the binary named by actions/VERSION, now 2.0.1. A consumer pinned to @v2.0.0 or to a SHA before this commit keeps the old binary. There is no v2.0 tag, so nothing else moves.
  • A consumer that runs the tool with go run sarak.sh/mikluko/changelog/v2/cmd/changelog@latest gets 2.0.1 once the tag exists.

Checklist

  • .changelog/ gained a fragment carrying this change's notes, or this change needs none. This is a release commit, which consumes the fragment rather than adding one. Its note is written into CHANGELOG.md as 2.0.1, which is what missing-fragment accepts on a release branch.
  • AI assistance is declared below.

AI assistance

Claude (Claude Code, Sonnet 5.5), run by the city's Worker. A Co-Authored-By: trailer is on the commit.

Bead: changelog-850

## What and why Cuts 2.0.1, the release carrying the linked-worktree fix (#39, `5b13ad4`): in a linked git worktree the tool now reads the worktree's own HEAD. Every Worker of the city runs in one, and two repositories of the city are to take their changelog notes as fragments on version 2, so the fix has to be in a release they can pin. The commit is the one the release workflow writes on a dispatch, made here so it can be reviewed before anything is published. I ran the tool's own `release` subcommand (`go run ./cmd/changelog release -fragments .changelog`). It folded `.changelog/linked-worktree-head.md` into `CHANGELOG.md`, deleted the fragment, and moved the `[Unreleased]` compare link to `v2.0.1...HEAD`. I wrote `actions/VERSION` by hand, as the workflow does. **Version: 2.0.1.** The only fragment is a `Fixed` section, and the tool bumps patch for `Fixed`/`Security` only. It reported `prerelease=false`. The date is today's, 2026-11-12. **What the tool reports for the result** (`go run ./cmd/changelog -fragments .changelog -base main`): `valid=true`, `version=2.0.1`, `already-tagged=false`, `latest-tag=v2.0.0`, `prerelease=false`, `due=true`. `go test ./...` passes with `GITHUB_REF_NAME=v2.0.1`, which is how the workflow tests the release commit (changelog and `actions/VERSION` held to each other). ## After the merge Nothing is tagged or published by this pull request. Merging puts a release commit on `main` that is **due but untagged**, which the workflow handles: its first step reads `main`'s changelog, and when the newest entry is already due it skips the fold and resumes at the tag. 1. Dispatch the **Release** workflow (`.forgejo/workflows/release.yaml`) on Forgejo, **ref `main`**. It refuses any other ref. 2. Leave its single input, `version`, **empty**. The fold step is skipped on this path, so the input is not read; a non-empty value would be ignored, not applied. 3. The run then builds the four binaries and `checksums.txt`, pushes the tag `v2.0.1`, creates the release from the entry's notes with the assets, smoke-tests the published `validate`, `append` and `release` actions, and only last moves the major tag `v2`. **Who can dispatch:** the city's forge account `city-root` has write access to `mikluko/changelog` (the API reports `push: true, admin: false`), and Forgejo asks for write access to dispatch a workflow. I did not dispatch, and I could not test that `city-root` can: that takes a dispatch. If it is refused, the user dispatches from the Actions tab. If a run fails after the commit lands, dispatch again: it resumes at the tag. ## What moves when the release exists - New tag `v2.0.1`, and the release page for it. The GitHub mirror gets the same tag and a copy of the release and its assets from `mirror-release.yaml`. - `v2` is force-moved from `v2.0.0` to `v2.0.1`, the last step of the run. `v2.0.0` stays where it is. - `https://sarak.sh/mikluko/changelog/actions/validate@v2` (and `mikluko/action-changelog/actions/validate@v2` on GitHub) **follows by itself**. A consumer resolves `v2` to the commit it points at, and `actions/install.sh` there downloads the binary named by `actions/VERSION`, now `2.0.1`. A consumer pinned to `@v2.0.0` or to a SHA before this commit keeps the old binary. There is no `v2.0` tag, so nothing else moves. - A consumer that runs the tool with `go run sarak.sh/mikluko/changelog/v2/cmd/changelog@latest` gets 2.0.1 once the tag exists. ## Checklist - [x] `.changelog/` gained a fragment carrying this change's notes, or this change needs none. This is a release commit, which consumes the fragment rather than adding one. Its note is written into `CHANGELOG.md` as 2.0.1, which is what `missing-fragment` accepts on a release branch. - [x] AI assistance is declared below. ## AI assistance Claude (Claude Code, Sonnet 5.5), run by the city's Worker. A `Co-Authored-By:` trailer is on the commit. Bead: changelog-850
release: 2.0.1 (changelog-850)
All checks were successful
CI / test (pull_request) Successful in 18s
CI / lint (pull_request) Successful in 24s
05be29ce03
Cuts the release carrying the linked-worktree fix (#39). The commit is what the release workflow writes on a dispatch, made here by hand so it can be reviewed first: the tool's own 'release' subcommand folded .changelog/linked-worktree-head.md into CHANGELOG.md as 2.0.1 dated 2026-11-12 (a Fixed-only entry, so a patch), moved the [Unreleased] compare link and added the 2.0.1 one, deleted the fragment, and actions/VERSION names 2.0.1.

Validation: the changelog reader reports valid=true version=2.0.1 already-tagged=false latest-tag=v2.0.0 due=true, and go test ./... passes with GITHUB_REF_NAME=v2.0.1, which is how the workflow tests the release commit. The tag is not cut here: the workflow's dispatch resumes at the tag when main's newest entry is already due.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review left a comment

Reviewed the 2.0.1 release commit: identical to what the release dispatch folds from main; valid by the tool, tests pass with GITHUB_REF_NAME=v2.0.1.

Reviewed the 2.0.1 release commit: identical to what the release dispatch folds from main; valid by the tool, tests pass with GITHUB_REF_NAME=v2.0.1.
Author
Contributor

Checked:

  • The tree equals what the Release dispatch would write: on main (5b13ad4) I ran changelog release -fragments .changelog (built from source) and wrote actions/VERSION; the result is identical to 05be29c.
  • The tool on main: version=2.0.0, already-tagged=true, due=false. On the head: valid=true, version=2.0.1 (Fixed only, so a patch), already-tagged=false, due=true, latest-tag=v2.0.0; .changelog/ is empty (the fragment of #39 was consumed into the 2.0.1 section).
  • go vet ./... and go test ./... with GITHUB_REF_NAME=v2.0.1 pass; the generated README table is current. CI test and lint were green.
  • Merging tags and publishes nothing: release.yaml runs on workflow_dispatch only. Main now names 2.0.1 untagged, so the dispatch takes the resume path (no fold) and cuts v2.0.1, publishes the release, then moves v2.
  • Date: the tag is lightweight, so date-mismatch compares 2026-11-12 with the committer date of the merge commit, which is 2026-11-12 (UTC); a later dispatch does not change that.

Follow-ups: until the dispatch runs, main's actions/VERSION names a release whose binary does not exist yet, so a workflow pinning main's head SHA cannot download it. Only a version tag such as @v2 is safe meanwhile. The README says the dispatch writes the release commit itself; this PR wrote it ahead of time and relies on the resume path.

Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.

Checked: - The tree equals what the Release dispatch would write: on main (5b13ad4) I ran `changelog release -fragments .changelog` (built from source) and wrote `actions/VERSION`; the result is identical to 05be29c. - The tool on main: version=2.0.0, already-tagged=true, due=false. On the head: valid=true, version=2.0.1 (Fixed only, so a patch), already-tagged=false, due=true, latest-tag=v2.0.0; `.changelog/` is empty (the fragment of #39 was consumed into the 2.0.1 section). - `go vet ./...` and `go test ./...` with GITHUB_REF_NAME=v2.0.1 pass; the generated README table is current. CI test and lint were green. - Merging tags and publishes nothing: release.yaml runs on workflow_dispatch only. Main now names 2.0.1 untagged, so the dispatch takes the resume path (no fold) and cuts v2.0.1, publishes the release, then moves v2. - Date: the tag is lightweight, so `date-mismatch` compares 2026-11-12 with the committer date of the merge commit, which is 2026-11-12 (UTC); a later dispatch does not change that. Follow-ups: until the dispatch runs, main's `actions/VERSION` names a release whose binary does not exist yet, so a workflow pinning main's head SHA cannot download it. Only a version tag such as `@v2` is safe meanwhile. The README says the dispatch writes the release commit itself; this PR wrote it ahead of time and relies on the resume path. Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.
Sign in to join this conversation.
No description provided.