Skip to content

ci: retag image references on a major bump, and flag the prose - #8

Merged
StoneyJackson merged 2 commits into
mainfrom
ci/tidy-bump-diffs
Jul 27, 2026
Merged

ci: retag image references on a major bump, and flag the prose#8
StoneyJackson merged 2 commits into
mainfrom
ci/tidy-bump-diffs

Conversation

@StoneyJackson

Copy link
Copy Markdown
Member

A new plcc-ng major publishes the images under a new major tag, but the copy-paste snippets in README.md, devcontainer.json and docs/choosing-your-image.md kept naming the old one — today's 2.0.0 release needed all six fixed by hand.

Those six are fully qualified image paths, so they can be rewritten safely. The surrounding guidance cannot: it names both the new major and the one being left behind, so a blind :N -> :M substitution yields text that is confidently wrong (":3 carries plcc-ng 3.x, and :1 stays on plcc-ng 1.x"). On a major the PR body now asks a human to review those specific passages instead of pretending to have handled them.

perl rather than sed: the match needs a negative lookahead so :2 does not fire inside :20 or :2.1, and BSD sed has neither that nor \b. Anchoring on the full devcontainers/ path is what keeps features/plcc-ng:1 out of scope — verified it survives even when the feature shares the image's major number.

The JSON reformatting noise needed no change: the 2.0.0 bump already rewrote those four files through jq, so they are canonical and the next bump produces a one-line diff each.

A new plcc-ng major publishes the images under a new major tag, but the
copy-paste snippets in README.md, devcontainer.json and
docs/choosing-your-image.md kept naming the old one — today's 2.0.0
release needed all six fixed by hand.

Those six are fully qualified image paths, so they can be rewritten
safely. The surrounding guidance cannot: it names both the new major and
the one being left behind, so a blind :N -> :M substitution yields text
that is confidently wrong ("`:3` carries plcc-ng 3.x, and `:1` stays on
plcc-ng 1.x"). On a major the PR body now asks a human to review those
specific passages instead of pretending to have handled them.

perl rather than sed: the match needs a negative lookahead so `:2` does
not fire inside `:20` or `:2.1`, and BSD sed has neither that nor \b.
Anchoring on the full devcontainers/ path is what keeps
features/plcc-ng:1 out of scope — verified it survives even when the
feature shares the image's major number.

The JSON reformatting noise needed no change: the 2.0.0 bump already
rewrote those four files through jq, so they are canonical and the next
bump produces a one-line diff each.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 27, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the automated “check plcc-ng release” workflow so that major version bumps also retag fully-qualified devcontainer image references in repo-facing copy/paste snippets, while explicitly flagging the surrounding prose as requiring human review.

Changes:

  • Detect major bumps explicitly (OLD_MAJOR/NEW_MAJOR) and include a “major bump” marker in logs.
  • On major bumps, retag ghcr.io/ourplcc/devcontainers/*:${OLD_MAJOR}:${NEW_MAJOR} in README.md, devcontainer.json, and docs/choosing-your-image.md using a Perl regex with a negative lookahead.
  • Append a PR-body review note calling out specific prose sections in docs/choosing-your-image.md for manual review (while keeping the BREAKING CHANGE: footer positioned for semantic-release parsing).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"" \
"The fully qualified image references in \`README.md\`, \`devcontainer.json\` and \`docs/choosing-your-image.md\` were retagged \`:${OLD_MAJOR}\` → \`:${NEW_MAJOR}\` automatically." \
"" \
"The surrounding guidance in \`docs/choosing-your-image.md\` was **not** touched and still describes the previous major. Please review by hand:" \
The note said the guidance in docs/choosing-your-image.md was "not
touched", sitting right below a sentence listing that same file among
those retagged. Scoped correctly but easy to misread as the file being
unchanged — and it is edited on every bump regardless, by the version
example sed.

Now states plainly that all three files are modified, and that only the
guidance prose was left alone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@StoneyJackson
StoneyJackson merged commit 24f90bf into main Jul 27, 2026
6 checks passed
@StoneyJackson
StoneyJackson deleted the ci/tidy-bump-diffs branch July 27, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants