Skip to content

Should gh release create push the local tag if it exists? #4357

Description

@spenserblack

Describe the feature or problem you’d like to solve

When using gh release create with a tag that exists in the local repository but not in origin, it creates a new tag instead of pushing the local tag. This seemed like confusing behavior to me.

Proposed solution

If the tag name passed to gh release create already exists in the local repo, that tag should be pushed instead of a new tag with the same name being created for the release. This behavior might match the expected behavior.

Additional context

Of course, there is a workaround for this already: push the tag before using gh release create 😆
But, since other commands will push changes to the remote for you (like gh pr create), I was a bit surprised that gh release create didn't push the local tag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIhelp wantedContributions welcome

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions