hub
hub copied to clipboard
Idempotent creation for hub-release
Currently, there are commands to either create or edit the releases. However, there is no idiomatic way of implementing this scenario:
create a release if it does not exist, then upload attachment to it.
In case there is a pre-existing release it will be used rather than failing with HTTP 422.
Suggested command for idempotency: createoredit
hub release createoredit <options>
@am11 That's a nice idea. Perhaps instead of a new command, this option could be a flag on hub release create?