Repository navigation
ci: bump the features a Dependabot update changes - #106
Open
joris-sevenlab wants to merge 1 commit into
Open
joris-sevenlab wants to merge 1 commit into
joris-sevenlab wants to merge 1 commit into
Conversation
A Dependabot PR that changes a template, such as the Dockerfile's base image, failed the version and changelog gates until someone bumped the feature by hand. A workflow now runs `bump:check --fix` on it, adds a changelog line from the PR title and pushes with RELEASE_PR_TOKEN, so CI runs again.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A Dependabot PR that changes a template a scaffold emits now gets the feature version bump and a changelog line it needs, pushed onto the PR by a workflow, so its CI goes green without a manual commit.
Why
The Docker base-image PRs (#104 today) change
packages/preset-nuxt4/templates/docker/Dockerfile. That fails the feature version gate and the changelog gate until someone bumpsshared:dockerand writes an entry by hand. Without the bump, existing projects never get the new image onbattlestack pull.How
pnpm bump:check --fixpatch-bumps every feature the gate would fail on, including the writer features the docs/env rule names..github/workflows/dependabot-bump.yml, onpull_request_target, only for PRs Dependabot opened:--check --fixagainst the PR's base,## Unreleasedfrom the PR title (fix(docker): bump node from a to b in /xbecomesBump node from a to b in /x.),RELEASE_PR_TOKEN. AGITHUB_TOKENpush starts no workflows, so the required checks would never rerun.tsx. The second run, triggered by its own push, finds nothing to bump and exits.Type of change
AI assistance
Agent, service and model, if you know it: Claude Code, Opus 5.5
How much of this is agent-written?
Testing
The title-to-changelog conversion was checked with GNU sed, as on the Ubuntu runner.
pnpm tscpassespnpm testpasses (no test covers the bump script)Anything else
pull_request_targetworkflows only from the default branch, so this proves itself on the first Docker digest PR after merging.pull_request_targetchecks out the PR head with a write token. That is safe here because it only runs for PRs Dependabot opened and never installs or runs their dependencies.