Skip to content

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

Closed
Noyabronok wants to merge 1 commit into
changesets:mainfrom
Noyabronok:NS-3127-version-ignore-with-config-ignore
Closed

Noyabronok wants to merge 1 commit into
changesets:mainfrom
Noyabronok:NS-3127-version-ignore-with-config-ignore

Conversation

@Noyabronok

@Noyabronok Noyabronok commented Oct 30, 2026 •

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>
@netlify

netlify Bot commented Oct 30, 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/6ae4e8175d9a31a554f6ab99
😎 Deploy Preview https://deploy-preview-2359--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.

@changeset-bot

changeset-bot Bot commented Oct 30, 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

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.46%. Comparing base (b09779a) to head (c677082).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2359      +/-   ##
==========================================
- Coverage   87.47%   87.46%   -0.02%     
==========================================
  Files          78       78              
  Lines        2971     2967       -4     
  Branches      851      849       -2     
==========================================
- Hits         2599     2595       -4     
  Misses        337      337              
  Partials       35       35              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Noyabronok

Copy link
Copy Markdown
Author

Superseded by #2361 (same change, renamed branch).

@Noyabronok Noyabronok closed this Oct 31, 2026
@Noyabronok
Noyabronok deleted the NS-3127-version-ignore-with-config-ignore branch October 31, 2026 06:40
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