chore: consolidate dependabot changeset
Fixes n/a.
This updates the Dependabot changeset workflow so repeated dependency bumps before a release are consolidated into one changeset.
For example, if one workerd PR records:
| Dependency | From | To |
| ---------- | ------------ | ------------ |
| workerd | 1.20260619.1 | 1.20260621.1 |
and a later PR bumps workerd again, the same changeset is updated to:
| Dependency | From | To |
| ---------- | ------------ | ------------ |
| workerd | 1.20260619.1 | 1.20260623.1 |
This avoids adding multiple changesets updating the version of the same dependency.
C3 framework changesets remain scoped per dependency, so unrelated framework update PRs do not conflict with each other.
- Tests
- [x] Tests included/updated
- [ ] Automated tests not possible - manual testing has been completed as follows:
- [ ] Additional testing not necessary because:
- Public documentation
- [ ] Cloudflare docs PR(s):
- [x] Documentation not necessary because: internal tooling
A picture of a cute animal (not mandatory, but encouraged)
⚠️ No Changeset found
Latest commit: 71be282fda616662857b43d85ba57e25fde1ee4f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Codeowners approval required for this PR:
- @cloudflare/wrangler
Show detailed file reviewers
- .github/workflows/c3-dependabot-versioning-prs.yml: [@cloudflare/wrangler]
- .github/workflows/miniflare-dependabot-versioning-prs.yml: [@cloudflare/wrangler]
- tools/dependabot/tests/generate-dependabot-pr-changesets.test.ts: [@cloudflare/wrangler]
- tools/dependabot/generate-dependabot-pr-changesets.ts: [@cloudflare/wrangler]
Confirmed: C3 framework deps are updated individually by dependabot (no grouping), so per-dependency scoping is the intended design and aligns with the PR description ("C3 framework changesets remain scoped per dependency").
Now, the one genuinely concerning edge case for C3: if dependabot ever opens a combined/rebased PR touching two framework deps, the script throws and the workflow fails. But this is by design per the PR. It's a deliberate tradeoff with a clear error message. Not a bug.
Let me do a final check on a potential real bug: the mergeChanges function and the scenario where the existing changeset already covers the same dependency but the new PR's to is actually OLDER (downgrade) — it would blindly take new to. Not realistic for dependabot. Not actionable.
Let me verify there are no issues with how getPackageJsonDiff interacts with the existing changeset being committed in a prior workflow run on the same branch causing a double HEAD~1 issue. The changeset commit doesn't touch package.json, and the path filter prevents re-trigger. Fine.
I've completed a thorough review. The logic is correct, well-tested, and the design tradeoffs are intentional and documented. The only stale reference (c3-e2e-dependabot.yml) is pre-existing and not introduced by this PR.
Let me confirm the PR number one more time before concluding.
The PR is #14404, which matches. After thorough analysis of all 4 changed files, the logic is sound:
parseChangesetForChangesregex correctly parses tables and skips headers/separatorsmergeChangescorrectly preserves originalfromand updatestogetChangesetFilenamecorrectly handles labeled (miniflare/workerd) and dependency-scoped (C3) cases- Workflows correctly drop the PR number arg and pass the new label arg
- Tests cover the new functions comprehensively
No actionable logic bugs, security issues, or backward-compatibility violations found.
LGTM
github run
@cloudflare/autoconfig
npm i https://pkg.pr.new/@cloudflare/autoconfig@14404
create-cloudflare
npm i https://pkg.pr.new/create-cloudflare@14404
@cloudflare/deploy-helpers
npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14404
@cloudflare/kv-asset-handler
npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14404
miniflare
npm i https://pkg.pr.new/miniflare@14404
@cloudflare/pages-shared
npm i https://pkg.pr.new/@cloudflare/pages-shared@14404
@cloudflare/unenv-preset
npm i https://pkg.pr.new/@cloudflare/unenv-preset@14404
@cloudflare/vite-plugin
npm i https://pkg.pr.new/@cloudflare/vite-plugin@14404
@cloudflare/vitest-pool-workers
npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14404
@cloudflare/workers-auth
npm i https://pkg.pr.new/@cloudflare/workers-auth@14404
@cloudflare/workers-editor-shared
npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14404
@cloudflare/workers-utils
npm i https://pkg.pr.new/@cloudflare/workers-utils@14404
wrangler
npm i https://pkg.pr.new/wrangler@14404
commit: 71be282