GithubHelp home page GithubHelp logo

Comments (2)

peter-evans avatar peter-evans commented on June 3, 2024

Hi @stevemao

Thanks for raising this issue.

The simple workaround for this is just to rename the branch input to something that doesn't clash with an existing tag. (Which I can see you have already done 👍 ).

Also, in general I would advise not creating branches and tags with the same ref name. It does create ambiguous situations for git and makes operations more complicated.

As for whether the action should actually support this situation, I'm leaning towards not attempting to add support for it because the workaround is so straightforward (and best practice, in my opinion). I've only had a couple of users ever bump into this kind of issue where tags clash with branch names, so it's pretty rare I think. To support it, and other similar cases where tags clash with branch names, I think it would make the git operations in this action quite a bit more complicated.

I'm going to close this issue as "won't fix," but I might reopen it in future if many users are running into this issue.

from create-pull-request.

stevemao avatar stevemao commented on June 3, 2024

Yes exactly what I thought. And I did.

Perhaps add this and related issues to the faq?

FYI: There are new commands such as git switch which only works on branches but not tags.

Thanks for the detailed explanation!

from create-pull-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.