markchalloner / git-semver

Git plugin for Semantic Versioning
MIT License
381 stars 43 forks source link

Add DRYRUN flag to semver commands to allow checking tags without creating them #28

Closed oliviabarrick closed 5 years ago

oliviabarrick commented 6 years ago

This is useful to be able to update files and create a custom release commit that includes the version before tagging it.

Example: https://github.com/justinbarrick/fluxcloud/blob/master/Makefile#L9-L10

markchalloner commented 5 years ago

I like this idea.

I think the trigger would be better as a named argument e.g. git-semver patcch -d rather than an environmental variable, as it is then can be documented in the usage.

If you agree then please rebase on latest master (has named arguments to use as an example).

Thanks!

oliviabarrick commented 5 years ago

Should be changed now! I'm supporting both --dryrun and -d for clarity.

markchalloner commented 5 years ago

Looks good thanks for the PR.