mc706 / changelog-cli

A Command Line Interface that makes it easy to manage a helpful Changelog
MIT License
17 stars 15 forks source link

The --yes flag on release results in a release type flag being ignored #33

Closed danielpatrickdotdev closed 1 year ago

danielpatrickdotdev commented 3 years ago

It seems that using the --yes flag with release causes the recommended release type to be used rather than one specified by the command. See examples below.

It looks like a simple fix - will hopefully raise a PR as soon as I can get my head around how the tests work!

$ changelog suggest
0.7.1

$ changelog release --patch
Planning on releasing version 0.7.1. Proceed? [y/N]: N

$ changelog release --minor
Planning on releasing version 0.8.0. Proceed? [y/N]: N

$ changelog release --major
Planning on releasing version 1.0.0. Proceed? [y/N]: N

$ changelog release --major --yes

$ changelog current
0.7.1