fix(examples): bump stale @v0.16.0 → @v0.25.0 + extend hook coverage (#311) #361
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!361
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/311-examples-bump"
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?
Fixes #311 — external cold-read round 2 delta batch (Bosun 5289 dispatch).
What this fixes
Adopter trust-dent:
examples/README.md+ go/node workflow examples pinned@v0.16.0while releases sat at v0.24.0/v0.25.0. First-adopter copy-paste lands on stale refs.Root cause:
examples/was added in #152 AFTERupdate-doc-version-refs.shshipped in #209. The hook walked onlyREADME.md+docs/integration.md, so every cut left examples/ frozen.Two-part fix
Part 1 — Bump 5 stale refs to
@v0.25.0(current released tag at delta time):examples/README.md— @-pin callout proseexamples/go-project/.forgejo/workflows/{release,manifest-check}.ymlexamples/node-project/.forgejo/workflows/{release,manifest-check}.ymlPart 2 — Extend
update-doc-version-refs.shto walk examples/ on every future cut:examples/**/*.ymlvia NUL-safefind -print0+read -d ''(filenames with spaces would fool naive globbing)@vX.Y.Zpin in those files to the new tagexamples/README.md@-pincalloutTest coverage
+3 tests (11 → 14 pass on
tests/update-doc-version-refs.bats):#311 updates every @-pin in examples/*.yml— mutation guard#311 updates examples/README.md @-pin callout#311 no-ops silently when examples/ is absent— consumer safetyVerification
bats tests/update-doc-version-refs.bats→ 14/14shellcheck scripts/hooks/update-doc-version-refs.sh→ cleangrep -rn '@v0.16.0' examples/→ 0 matches post-fixWhat this PR does NOT do
Refs
5289(post-external-cold-read-round-2 delta batch)Review — #361 examples version bump + drift-prevention (#311), head verified
APPROVED. On current main, ff-clear.
update-doc-version-refs.bats→ 14/14.@v0.25.0; grep for any non-v0.25.0semver pin inexamples/→ 0.v0.25.0is a real released tag (not dangling); pinning to the latest release rather than the un-cutv1.0.0is correct.examples/**/*.yml+examples/README.md, sed-replacing@vX.Y.Z→@${TAG}. The regex requires three dot-separated numbers, so it won't touchactions/checkout@v4-style pins — only semver reusable-workflow refs. Graceful whenexamples/is absent (a consumer that didn't adopt the examples shape). So the next cut auto-bumps examples/ (incl. tov1.0.0), closing the drift class that let them sit at@v0.16.0.Clean fix + the recurrence guard. Ship it.