ember-cli-release icon indicating copy to clipboard operation
ember-cli-release copied to clipboard

Ask before create commit.

Open paperkotter opened this issue 9 years ago • 2 comments

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 ?

paperkotter avatar Jun 07 '16 18:06 paperkotter

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?

slindberg avatar Jun 18 '16 23:06 slindberg

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.

leizhao4 avatar Sep 21 '16 22:09 leizhao4