Pin the changelog action at 2.1.0 and remove the release guard of claudeacp#5 #11

Merged
city-root merged 1 commit from worker/claudeacp-0zp into main 2026-11-12 14:28:26 +00:00
Contributor

Pins the changelog tool's validate action at v2.1.0 in CI and the release workflow, and removes the release workflow's hand-written date guard, which that release's pending-date-mismatch check replaces (claudeacp-0zp; the guard is claudeacp#5's).

What changed

  • .forgejo/workflows/ci.yml and .forgejo/workflows/release.yaml: https://sarak.sh/mikluko/changelog@7ec45bb… # v1.6.0 becomes https://sarak.sh/mikluko/changelog/actions/validate@087d7e8e70ddcef3a5a20a81c68129b2f43a6530 # v2.1.0. The tag v2.1.0 is lightweight and names that commit (git ls-remote), and v2 points at it too; the pin is by commit, as the workflows' policy says.
  • Both invocations pass fragments: "". The tool's README ("Migrating from 1.x") says 2.x turns fragments on by default and a repository that writes its notes into CHANGELOG.md switches them off on each invocation. The migration needs nothing more: this repository does not adopt fragments.
  • The step "Heading date is the commit's own date" and its comment are gone from release.yaml.
  • A changelog note under [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, with fragments empty for 2.1.0:

CHANGELOG.md v1.6.0 due v2.1.0 valid / due / due-reason
this branch as it is (newest entry 0.5.0, tagged) false true / false / 0.5.0 is already tagged
a 0.6.0 section dated 2020-01-01, commit dated 2026-11-12 true false / 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-12
a 0.6.0 section dated 2026-11-12, same commit day true due true

The scratch sections had no link reference definition, so valid is false in the last two rows whatever the date; due is the column that matters. The second row is the point: with the v1.6.0 pin due stays 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 reads due, version and notes. 2.1.0's action.yaml declares all three under the same names (and already-tagged, prerelease, latest-tag, due-reason besides), and the run above gives version and due. ci.yml reads 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

Pins the changelog tool's `validate` action at v2.1.0 in CI and the release workflow, and removes the release workflow's hand-written date guard, which that release's `pending-date-mismatch` check replaces (claudeacp-0zp; the guard is claudeacp#5's). ## What changed - `.forgejo/workflows/ci.yml` and `.forgejo/workflows/release.yaml`: `https://sarak.sh/mikluko/changelog@7ec45bb… # v1.6.0` becomes `https://sarak.sh/mikluko/changelog/actions/validate@087d7e8e70ddcef3a5a20a81c68129b2f43a6530 # v2.1.0`. The tag v2.1.0 is lightweight and names that commit (`git ls-remote`), and `v2` points at it too; the pin is by commit, as the workflows' policy says. - Both invocations pass `fragments: ""`. The tool's README ("Migrating from 1.x") says 2.x turns fragments on by default and a repository that writes its notes into `CHANGELOG.md` switches them off on each invocation. The migration needs nothing more: this repository does not adopt fragments. - The step "Heading date is the commit's own date" and its comment are gone from `release.yaml`. - A changelog note under `[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, with `fragments` empty for 2.1.0: | CHANGELOG.md | v1.6.0 `due` | v2.1.0 `valid` / `due` / `due-reason` | |---|---|---| | this branch as it is (newest entry 0.5.0, tagged) | false | `true` / `false` / `0.5.0 is already tagged` | | a `0.6.0` section dated 2020-01-01, commit dated 2026-11-12 | **true** | `false` / **`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-12` | | a `0.6.0` section dated 2026-11-12, same commit day | true | `due` true | The scratch sections had no link reference definition, so `valid` is false in the last two rows whatever the date; `due` is the column that matters. The second row is the point: with the v1.6.0 pin `due` stays 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 reads `due`, `version` and `notes`. 2.1.0's `action.yaml` declares all three under the same names (and `already-tagged`, `prerelease`, `latest-tag`, `due-reason` besides), and the run above gives `version` and `due`. `ci.yml` reads 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
ci: pin the changelog validate action at v2.1.0, drop the release date guard (claudeacp-0zp)
All checks were successful
CI / Changelog (pull_request) Successful in 5s
CI / Lint (pull_request) Successful in 32s
CI / Test (pull_request) Successful in 35s
643ab115b0
changelog 2.1.0's validate action checks what the release workflow's own step did by hand: while the newest untagged entry's date is not the day a tag cut on HEAD would carry (pending-date-mismatch), due is false and the step fails. With the v1.6.0 pin due stayed true on a mismatched date and the guard was the only thing holding the tag; with the new pin the guard is redundant, so it goes in the same change.

Both invocations move to actions/validate at the v2.1.0 commit (087d7e8, the commit the tag names, pinned by commit as before) and pass fragments: "", since 2.x turns fragments on by default and this repository keeps its notes in CHANGELOG.md. The outputs the release steps read (due, version, notes) keep their names.

Validation: both versions of the tool built from their tags and run on a scratch clone with a heading dated 2020-01-01 on a 2026-11-12 commit: v1.6.0 reports due=true, v2.1.0 due=false with a due-reason; with the heading dated the commit's day both report due=true. v2.1.0 on this branch reports valid=true.

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

Review of 643ab115b0 for claudeacp-0zp. Checks of the head: success.

Verdict

pass

Findings

  • [minor] PR description, "What the action reports": the bead asked for what the validate action reports from the run of the pull request's own checks, and the description gives a local run instead, because the Worker hands over before CI runs. The head's own run gives the same result, so here it is: run 1874 (ci.yml, pull_request), job 4719 "Changelog". It downloaded the action at 087d7e8e70ddcef3a5a20a81c68129b2f43a6530 and set 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 (and notes). 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.git shows v2.1.0 and v2 both at 087d7e8e70ddcef3a5a20a81c68129b2f43a6530, and v1.6.0 at 7ec45bb… as the old pin said. Both are lightweight. The pin is by commit with a # v2.1.0 comment, which fits release.yaml's "pinned by commit" policy.

  • The action at that commit: actions/validate/action.yaml exists. Its fragments input defaults to .changelog, and empty checks none. It declares the outputs due, version and notes, which are the only ones the workflows read (release.yaml:46, :49, :51). ci.yml reads none. actions/VERSION is 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@v1 becomes …/actions/validate@v2, and a repository that keeps its notes in CHANGELOG.md passes fragments: "" 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 due false on a mismatched date: I built cmd/changelog from the tag v2.1.0 and ran it with -fragments= and GITHUB_OUTPUT in 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.

    • Heading 2020-01-01, commit 2026-11-12: exit 1, 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…".
    • Heading 2026-11-13: pending-date-mismatch and date-future at error, due=false.
    • Heading 2026-11-12: exit 0, 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 ./... and go 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-mismatch too. 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.

Review of 643ab115b0943a9d480fbbcb26e09eab4ab60c5b for claudeacp-0zp. Checks of the head: success. ### Verdict pass ### Findings - [minor] PR description, "What the action reports": the bead asked for what the validate action reports *from the run of the pull request's own checks*, and the description gives a local run instead, because the Worker hands over before CI runs. The head's own run gives the same result, so here it is: run 1874 (ci.yml, pull_request), job 4719 "Changelog". It downloaded the action at 087d7e8e70ddcef3a5a20a81c68129b2f43a6530 and set `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` (and `notes`). 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.git` shows `v2.1.0` and `v2` both at 087d7e8e70ddcef3a5a20a81c68129b2f43a6530, and `v1.6.0` at 7ec45bb… as the old pin said. Both are lightweight. The pin is by commit with a `# v2.1.0` comment, which fits release.yaml's "pinned by commit" policy. - The action at that commit: `actions/validate/action.yaml` exists. Its `fragments` input defaults to `.changelog`, and empty checks none. It declares the outputs `due`, `version` and `notes`, which are the only ones the workflows read (release.yaml:46, :49, :51). ci.yml reads none. `actions/VERSION` is 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@v1` becomes `…/actions/validate@v2`, and a repository that keeps its notes in CHANGELOG.md passes `fragments: ""` 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 `due` false on a mismatched date: I built `cmd/changelog` from the tag v2.1.0 and ran it with `-fragments=` and `GITHUB_OUTPUT` in 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. - Heading 2020-01-01, commit 2026-11-12: exit 1, `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…". - Heading 2026-11-13: `pending-date-mismatch` and `date-future` at error, `due=false`. - Heading 2026-11-12: exit 0, `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 ./...` and `go 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-mismatch` too. 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/claudeacp!11
No description provided.