-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
enhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome
Description
Describe the bug
version: 2.32.0 (2023-07-11)
When creating a new release with gh release create nightly --title nightly --generate-notes, if the tag already exists locally, it will fail with error: "tag {{tag}} exists locally but has not been pushed to {{ user/repo }}, please push it before continuing or specify the --target flag to create a new tag".
But the command gh release delete nightly --yes --cleanup-tag only delete the release and tag remotely. Hence if we delete a release with a tag and re-create it again, we will receive an error. This happens when users want to use gh to build the nightly release pipeline.
Steps to reproduce the behavior
- Type this:
gh release delete nightly --yes --cleanup-taggh release create nightly --title nightly --generate-notes
- View the output 'tag {{tag}} exists locally but has not been pushed to {{ user/repo }}, please push it before continuing or specify the
--targetflag to create a new tag' - See error
Expected vs actual behavior
- It should be okay if the
gh release createonly checks the remote tag. But I guess it may have some reason to check the local tags. - In this situation, we should make it consistent to
create/delete releasewithgh. Otherwise, users have to usegit tag -d <tag>which I think breaks the user experience.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome