Skip to content

feat(cli): add --since flag to add command - #1840

Merged
Andarist merged 7 commits into
changesets:mainfrom
wotan-allfather:feat/add-since-flag
Feb 24, 2026
Merged

Andarist merged 7 commits into
changesets:mainfrom
wotan-allfather:feat/add-since-flag

Conversation

@wotan-allfather

Copy link
Copy Markdown
Contributor

Add support for the --since flag to the add command, allowing users to specify which branch, tag, or git ref to use when detecting changed packages. This is useful for gitflow workflows where multiple target branches exist and the baseBranch config doesn't cover all use cases.

  • Add since parameter to add command function
  • Pass since to getVersionableChangedPackages
  • Update help message and documentation
  • Add test for --since flag functionality

Closes #477

Add support for the --since flag to the add command, allowing users to
specify which branch, tag, or git ref to use when detecting changed
packages. This is useful for gitflow workflows where multiple target
branches exist and the baseBranch config doesn't cover all use cases.

- Add since parameter to add command function
- Pass since to getVersionableChangedPackages
- Update help message and documentation
- Add test for --since flag functionality

Closes changesets#477
@changeset-bot

changeset-bot Bot commented Feb 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0fa8b89

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 Minor

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

@ivanm696

Copy link
Copy Markdown

CI

@codecov

codecov Bot commented Feb 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.74%. Comparing base (1f91879) to head (0fa8b89).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1840      +/-   ##
==========================================
+ Coverage   81.55%   81.74%   +0.18%     
==========================================
  Files          55       55              
  Lines        2353     2355       +2     
  Branches      698      705       +7     
==========================================
+ Hits         1919     1925       +6     
+ Misses        429      425       -4     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 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.

@Andarist
Andarist merged commit 057cca2 into changesets:main Feb 24, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 23, 2026
nnecec pushed a commit to nnecec/changesets-docs that referenced this pull request Apr 16, 2026
* feat(cli): add --since flag to add command

Add support for the --since flag to the add command, allowing users to
specify which branch, tag, or git ref to use when detecting changed
packages. This is useful for gitflow workflows where multiple target
branches exist and the baseBranch config doesn't cover all use cases.

- Add since parameter to add command function
- Pass since to getVersionableChangedPackages
- Update help message and documentation
- Add test for --since flag functionality

Closes changesets#477

* tweak

* tweak

* tweak

* make the test more real

* unmock some stuff

---------

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
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.

Add support for the --since flag to the add command

6 participants