Release the linked-worktree fix (changelog#39) #40
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/changelog!40
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/changelog-850"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
releasesubcommand (go run ./cmd/changelog release -fragments .changelog). It folded.changelog/linked-worktree-head.mdintoCHANGELOG.md, deleted the fragment, and moved the[Unreleased]compare link tov2.0.1...HEAD. I wroteactions/VERSIONby hand, as the workflow does.Version: 2.0.1. The only fragment is a
Fixedsection, and the tool bumps patch forFixed/Securityonly. It reportedprerelease=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 withGITHUB_REF_NAME=v2.0.1, which is how the workflow tests the release commit (changelog andactions/VERSIONheld to each other).After the merge
Nothing is tagged or published by this pull request. Merging puts a release commit on
mainthat is due but untagged, which the workflow handles: its first step readsmain's changelog, and when the newest entry is already due it skips the fold and resumes at the tag..forgejo/workflows/release.yaml) on Forgejo, refmain. It refuses any other ref.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.checksums.txt, pushes the tagv2.0.1, creates the release from the entry's notes with the assets, smoke-tests the publishedvalidate,appendandreleaseactions, and only last moves the major tagv2.Who can dispatch: the city's forge account
city-roothas write access tomikluko/changelog(the API reportspush: true, admin: false), and Forgejo asks for write access to dispatch a workflow. I did not dispatch, and I could not test thatcity-rootcan: 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
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 frommirror-release.yaml.v2is force-moved fromv2.0.0tov2.0.1, the last step of the run.v2.0.0stays where it is.https://sarak.sh/mikluko/changelog/actions/validate@v2(andmikluko/action-changelog/actions/validate@v2on GitHub) follows by itself. A consumer resolvesv2to the commit it points at, andactions/install.shthere downloads the binary named byactions/VERSION, now2.0.1. A consumer pinned to@v2.0.0or to a SHA before this commit keeps the old binary. There is nov2.0tag, so nothing else moves.go run sarak.sh/mikluko/changelog/v2/cmd/changelog@latestgets 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 intoCHANGELOG.mdas 2.0.1, which is whatmissing-fragmentaccepts on a release branch.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
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.
Checked:
5b13ad4) I ranchangelog release -fragments .changelog(built from source) and wroteactions/VERSION; the result is identical to05be29c..changelog/is empty (the fragment of #39 was consumed into the 2.0.1 section).go vet ./...andgo test ./...with GITHUB_REF_NAME=v2.0.1 pass; the generated README table is current. CI test and lint were green.date-mismatchcompares 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/VERSIONnames 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@v2is 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.