hub icon indicating copy to clipboard operation
hub copied to clipboard

Idempotent creation for hub-release

Open am11 opened this issue 5 years ago • 1 comments

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 avatar Jun 23 '20 02:06 am11

@am11 That's a nice idea. Perhaps instead of a new command, this option could be a flag on hub release create?

mislav avatar Aug 02 '20 12:08 mislav