Repository navigation
chore(changeset): keep check:dot-folder passing after versioning and shorten the rename note for 14 packages - #1706
Merged
Conversation
check:dot-folder allows .changeset/cdk-blocks-dot-folder.md to name the old folder. In pre mode, changeset version moves a consumed changeset to .changeset/pre/ and keeps its text, so the check fails on the versioned tree with three findings in .changeset/pre/cdk-blocks-dot-folder.md. The version PR runs no checks, so the failure would first show on main after the release. Allow the file at its post-versioning path as well.
…e folder rename cdk-blocks-dot-folder named 20 packages, and changeset version copies a changeset's full text into the changelog of every package it names. The 14 packages it bumped as patch each got the whole migration guide. Keep the full text for the six packages it bumps as minor, and move the 14 patch-only packages to a second changeset with a five-sentence note that points at the core changelog. The bump levels are unchanged.
pranavosu
enabled auto-merge (squash)
November 20, 2026 05:22
pranavosu
disabled auto-merge
November 20, 2026 05:22
This branch was previously 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.
Why
The rc.1 version PR (#1703) has two problems that both come from
.changeset/cdk-blocks-dot-folder.md.npm run check:dot-folderfails on the version PR's tree. The check allows.changeset/cdk-blocks-dot-folder.mdto name the old folder, but in pre modechangeset versionmoves a consumed changeset to.changeset/pre/. The version PR is opened by the release workflow and runs no checks, so "Local Build and Checks" would first fail onmain, for every PR, after the release merges.changeset versioncopies its full text, about 600 words, into each of their changelogs.What changed
scripts/dot-folder-guard.ts: one moreALLOWEDentry, for.changeset/pre/cdk-blocks-dot-folder.md..changeset/cdk-blocks-dot-folder.mdnow names only the six packages it bumps as minor. Its text is unchanged..changeset/cdk-blocks-dot-folder-blocks.mdis new. It names the 14 packages that were bumped as patch, with a five-sentence note that points at the@aws-cdk-blocks/corechangelog.Scope
Release metadata and one guard allowlist entry. No package source changes. Every package keeps the bump level it had.
Tradeoffs
The 14 block changelogs no longer carry the full migration steps. They say where the data moved and link to the core entry, which every app has installed. If reviewers want the full text everywhere, drop the second commit and keep the first.
Blast Radius
The release workflow regenerates #1703 from
main, so it shrinks on the next push. The 1.0.0 changelogs get the same shorter entries, because leaving pre mode reapplies every changeset.Verification
Simulated in a worktree by running
npx changeset versionand staging the result.check:dot-folderon chore: version packages (rc) #1703's current tree (d3be633c): exit 1, three findings in.changeset/pre/cdk-blocks-dot-folder.md. On the versioned tree of this branch: exit 0.main, 58,416 on this branch. 22 packages still move to1.0.0-rc.1.changeset-guard.ts validate-structurepasses before and after versioning, andnode --test scripts/dot-folder-guard.test.mjspasses 23 of 23.