commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

[Feature] Allow GPG signing on cz bump for tags and commits

Open ShaneMalachow opened this issue 4 years ago • 5 comments

Description

Allow for the version tag and commit from a cz bump command to be signed using a GPG key.

Possible Solution

Implementing a flag on cz bump that allows for the tag and commit to be signed by adding the -S argument to the git client.

Additional context

This is related to issue #248 but the fixes proposed to cz c there won't help if I also need to enforce tags and commits during a version bump being signed.

ShaneMalachow avatar Feb 16 '21 19:02 ShaneMalachow

I'm haven't use -S so I'm not sure I can implement this. Don't you have to create a pair of keys to sign the commits? How would you configure this in a CI?

If you could provide a mini-tutorial/explanation on how to do on a CI I'll give it a try. Otherwise we won't be able to support our users.

Thanks!

woile avatar Mar 05 '21 13:03 woile

I think this has been supported since https://github.com/commitizen-tools/commitizen/blob/master/CHANGELOG.md#v2290-2022-07-22. Could you please try with version higher than v2.29.0? I'll close this one for now. Feel free to reopen it if you think there's something missed

Lee-W avatar Aug 20 '22 07:08 Lee-W

@Lee-W I believe this might still be unsupported - especially if somebody wants to explicitly sign commits, and not have git configured for auto-signing.

samupl avatar Mar 20 '23 08:03 samupl