question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Affected Packages

@changesets/cli

Problem

In a monorepo that uses gitflow (multiple target branches), the baseBranch config option isn’t flexible enough and can result in the wrong changed packages detection when using the add command.

Proposed solution

Add support for the --since flag (used with the status command) to the add command.

cc: @lukebatchelor @Noviny

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Andaristcommented, Feb 6, 2021

@acao we could use a hand with implementing this 😉

1reaction
Novinycommented, Oct 27, 2020

From my understanding, having the lists of changed packages be accurate when you’re generating changesets is super useful, particularly in repositories with more than, say, 20 packages.

I’d be fine with calling it baseBranch so it accurately reflects the flag it’s overriding, and the chance could be relatively easy to implement as such.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI Flags in Practice + How to Make Your Own CLI Command ...
In this post, we'll go over what type of parameters CLI commands take—also known as "flags", "arguments", and sometimes "options.” Then, we'll ...
Read more >
Relax ordering requirements for flags/commands to improve ...
CLI ergonomics when editing/adding flags to command are very bad. ... Without forced ordering you can add a flag at the end at...
Read more >
Flags · CLI11 Tutorial
Adding a flag in CLI11 is done in one of three ways. Boolean flags. The simplest way to add a flag is probably...
Read more >
How to add --help, -h flag to Thor command? - ruby
I'd like to avoid having to add help-specific logic to all commands. Also, this executes the command after printing the help.
Read more >
How To Use the Flag Package in Go - DigitalOcean
Go applications can support sub-commands with their own set of flags using the flag.(*FlagSet) type. To illustrate this, create a program that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found