-
Notifications
You must be signed in to change notification settings - Fork 61
fix when no from option is given #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4fd561b
to
505d78a
Compare
@@ -148,7 +148,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int | |||
// @todo fix flaky assumption about the path of the source repo... | |||
$sourceRepo = CheckedOutRepository::fromPath(getcwd()); | |||
|
|||
$fromRevision = $input->hasOption('from') | |||
$fromRevision = $input->getOption('from') !== null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This kind of change requires a test addition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep sorry, didn't see the command was tested. Will add.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test already exists, updated it.
505d78a
to
7b6e1ce
Compare
@bendavies I think #73 fixed this already (by using the correct API in |
Bah 😂 |
…OR* is picked Previously, only the *MINOR* version was being compared, leading to previous major versions being considered in the lookup for the lowest available stable release.
…itories The reasoning behind this is that `symfony/console` has a very squishy API, and that can lead to a lot of headaches in upgrades or implicit API changes. Having an E2E test will ensure that the implementation details of `symfony/console` are also considered, since the interfaces really just lie.
…se from empty `git tag` list
… comparisons on no valid detected versions
…d in the selected stable minor releases
hasOption
=>Returns true if an InputOption object exists by name.