guilhem / bump

CLI to bump version tag in a git repository following semver
Apache License 2.0
25 stars 3 forks source link

Annotated & Signed Tags #2

Open OliverEvans96 opened 4 years ago

OliverEvans96 commented 4 years ago

Hi there,

Great package! It would be nice to have annotated and signed tags, which can be configured with go-git's CreateTagOptions.

Cheers, Oliver

guilhem commented 4 years ago

What is the interface / behavior you may want?

OliverEvans96 commented 4 years ago

I think the optimal approach would be to mimic git tag with -a and -s flags

E.g., just run bump minor -a -m "tag message" or bump minor -s -m "tag message"

I specifically don't want to have to supply the path to my GPG key as a command line argument every time I want to do a signed tag bump.

Although it would be really nice to be able to just to do bump minor -s or bump minor -a and have an editor open according to the env var EDITOR, like git does to fill in the tag message. Although I'm not sure if this would be tricky - since go-get is a go reimplementation of git, I imagine you can't just let git tag -s open up the editor for you with the correct prompt.

fwkz commented 4 years ago

I'd make the -m optional. The default value would be the version to which tag was bumped.