shipshapecode / ember-cli-release

Ember CLI addon for versioned release management
MIT License
90 stars 18 forks source link

Ask before create commit. #52

Open paperkotter opened 8 years ago

paperkotter commented 8 years ago

I have this use case.

Latest version: v1.0.1
Succesfully committed changes 'Released v1.0.2' locally.
[?] About to create tag 'v1.0.2' and push to remote 'origin', proceed?: No
Aborted.

Commit ''Released v1.0.2' still there, even I said No.

So, can I ask before commit creates ?

slindberg commented 8 years ago

Sounds like what you want to do is see what version will be created without any changes. Would a --check or --dry-run flag that just prints what the next version will be satisfy your use case?

leizhao4 commented 7 years ago

I would like this feature too. A --dry-run flag is less ideal because it would be annoying to do it every time. My use case is when it accidentally creates a wrong version number (for example, when I forget to add --prerelease flag when I just want to increment the prerelease version), I can easily cancel it, without having to reset the commit afterwards.