Pin the changelog action at 2.1.0 and remove the release guard of claudeacp#5 #11
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/claudeacp!11
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/claudeacp-0zp"
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?
Pins the changelog tool's
validateaction at v2.1.0 in CI and the release workflow, and removes the release workflow's hand-written date guard, which that release'spending-date-mismatchcheck replaces (claudeacp-0zp; the guard is claudeacp#5's).What changed
.forgejo/workflows/ci.ymland.forgejo/workflows/release.yaml:https://sarak.sh/mikluko/changelog@7ec45bb… # v1.6.0becomeshttps://sarak.sh/mikluko/changelog/actions/validate@087d7e8e70ddcef3a5a20a81c68129b2f43a6530 # v2.1.0. The tag v2.1.0 is lightweight and names that commit (git ls-remote), andv2points at it too; the pin is by commit, as the workflows' policy says.fragments: "". The tool's README ("Migrating from 1.x") says 2.x turns fragments on by default and a repository that writes its notes intoCHANGELOG.mdswitches them off on each invocation. The migration needs nothing more: this repository does not adopt fragments.release.yaml.[Unreleased].What the action reports
CI's own run is not available to me before the push, so this is the same tool, built from the tags v1.6.0 and v2.1.0 and run the way the action runs it (with
GITHUB_OUTPUT) on a scratch clone of this repository, withfragmentsempty for 2.1.0:duevalid/due/due-reasontrue/false/0.5.0 is already tagged0.6.0section dated 2020-01-01, commit dated 2026-11-12false/false/version 0.6.0 is dated 2020-01-01 and a tag cut on HEAD would carry 2026-11-12, so the release is not due; write its date as [0.6.0] - 2026-11-120.6.0section dated 2026-11-12, same commit dayduetrueThe scratch sections had no link reference definition, so
validis false in the last two rows whatever the date;dueis the column that matters. The second row is the point: with the v1.6.0 pinduestays true on a mismatched date, and with 2.1.0 it is false and the step fails, so the Release step (if: due == 'true') cuts no tag, which is what the removed guard did by hand.Steps that read the action's outputs: only
release.yaml's "Release" step, which readsdue,versionandnotes. 2.1.0'saction.yamldeclares all three under the same names (andalready-tagged,prerelease,latest-tag,due-reasonbesides), and the run above givesversionanddue.ci.ymlreads none.Not checked: the real run on the forge. The first real release after this merges is the first run of the action at 2.1.0 in this repository's release workflow.
Bead: claudeacp-0zp
Review of
643ab115b0for claudeacp-0zp. Checks of the head: success.Verdict
pass
Findings
valid=true,version=0.5.0,already-tagged=true,latest-tag=v0.5.0,prerelease=false,due=false,due-reason=0.5.0 is already tagged(andnotes). Nothing to change.Verified
The requirement: work bead claudeacp-0zp (description and notes) and the PR description.
The tags:
git ls-remote https://sarak.sh/mikluko/changelog.gitshowsv2.1.0andv2both at 087d7e8e70ddcef3a5a20a81c68129b2f43a6530, andv1.6.0at 7ec45bb… as the old pin said. Both are lightweight. The pin is by commit with a# v2.1.0comment, which fits release.yaml's "pinned by commit" policy.The action at that commit:
actions/validate/action.yamlexists. Itsfragmentsinput defaults to.changelog, and empty checks none. It declares the outputsdue,versionandnotes, which are the only ones the workflows read (release.yaml:46, :49, :51). ci.yml reads none.actions/VERSIONis 2.1.0, so install.sh downloads the 2.1.0 binary.README "Migrating from 1.x" at v2.1.0:
https://sarak.sh/mikluko/changelog@v1becomes…/actions/validate@v2, and a repository that keeps its notes in CHANGELOG.md passesfragments: ""on each invocation. Both invocations do that (ci.yml:86-88, release.yaml:38-41). No fragments are adopted.The guard is removed as the bead says: release.yaml's old comment and its step "Heading date is the commit's own date" are gone. Nothing else in the job changes, and the new comment at release.yaml:42-44 says what now holds the tag.
That the new pin leaves
duefalse on a mismatched date: I builtcmd/changelogfrom the tag v2.1.0 and ran it with-fragments=andGITHUB_OUTPUTin a scratch worktree of the head, with a 0.6.0 section and its link reference committed on top. The release's tags here (v0.1.0..v0.5.0) are lightweight, so the check applies.valid=false,due=false, due-reason "version 0.6.0 is dated 2020-01-01 and a tag cut on HEAD would carry 2026-11-12, so the release is not due…".pending-date-mismatchanddate-futureat error,due=false.valid=true,due=true.So the Release step (
if: due == 'true') cuts no tag on a mismatched date, and the job goes red, which is what the guard did.The same binary on the merged tree with
-base=main: exit 0,valid=true,due=false,0.5.0 is already tagged, the same as CI.Merge: origin/main (
d4a5f8a) fast-forwards to the head, so there is no conflict. Forgejo reports it mergeable.On the merged tree, with the city's variables removed:
go build ./...,go vet ./...andgo test -race -shuffle=on ./...all pass. I did not run Lint (golangci-lint, govulncheck) here, since they need the network. They passed in the head's run 1874 (job 4718), and the change touches no Go.Both workflow files parse as YAML. ci.yml has run from this head.
CHANGELOG.md: one note under
[Unreleased]/### Changed(line 21), in this repository's form. It agrees with the earlier unreleased note about the release refusing a mismatched date: the behaviour stays, and only who enforces it changes.One effect worth knowing, and not a defect: the PR's Changelog job now runs
pending-date-mismatchtoo. A release PR whose heading is not dated its head commit's day fails that job. When main has moved, it is the day of the merge commit CI makes in the job. This matches what the release workflow enforces.