Skip to content

Allow changeset version --ignore alongside config ignore - #2361

Open
Noyabronok wants to merge 1 commit into
changesets:mainfrom
Noyabronok:fix/version-ignore-with-config-ignore
Open

Noyabronok wants to merge 1 commit into
changesets:mainfrom
Noyabronok:fix/version-ignore-with-config-ignore

Conversation

@Noyabronok

Copy link
Copy Markdown

Fixes #2360.

The CLI docs say changeset version --ignore "extends the ignore option with the same safety rails", but the command exits with "you can only use one of them at a time" whenever .changeset/config.json has a non-empty ignore list. The restriction dates back to #371 with no stated reason.

This combines the config ignore list with the --ignore values. The mixed changeset check and the skipped dependents check both run on the combined list, so the safety rails described in the docs still apply. Package name validation for --ignore values is unchanged.

The use case is a monorepo that permanently ignores some packages in config (templates, internal tooling) and wants to hold back a few more for a single release run without rewriting the config file in CI.

#2326 edits the same block for --include, so whichever lands second will need a small rebase.

Tests

Replaced the test that asserted the old error with three that cover combining the lists, the skipped dependents check on a package ignored only by the flag, and the mixed changeset check across the combined list. All three fail without the change. pnpm build, pnpm test run, pnpm types:check, pnpm lint and pnpm format pass locally.

Generated with Claude Code

The CLI docs say `--ignore` extends the config `ignore` option, but the
command rejected the flag whenever the config list was non-empty. Combine
both lists instead. The mixed changeset and skipped dependents checks
run on the combined list.

Co-Authored-By: Claude <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c677082

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for changesets ready!

Name Link
🔨 Latest commit c677082
🔍 Latest deploy log https://app.netlify.com/projects/changesets/deploys/6ae58d615672caa32faba25b
😎 Deploy Preview https://deploy-preview-2361--changesets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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.

changeset version --ignore errors when config has ignore, but docs say the flag extends it

1 participant