-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
Describe the feature or problem you’d like to solve
When scripting release builds, the flow might go something like this:
- Create a draft release
- In parallel, build assets for the release (maybe, different flavors of an Android app), and add them to the release
- Finalize and mark the release no longer a draft if everything is good.
The issue comes if one of those parallel builds fails. If so, the release is incomplete, and it would be best if we could fully remove the release, its tag, and its assets.
This relates to #378
Proposed solution
According to the linked ticket, and the docs, you cannot today remove the assets from a release.
I propose implementing the original --assetID part of the release delete command request in #378.
Then a user would run gh release delete --user <user> --repo <repo> --tag <tag> to fully delete everything about the release on github. You could use --tag if that's what you know, and if so, it would remove the tag and the related assets.
If, instead, you only want to remove a specific asset, you could use gh release delete --user <user> --repo <repo> --assetID <assetID> to remove only that asset from a release.