GithubHelp home page GithubHelp logo

Comments (4)

Andarist avatar Andarist commented on September 1, 2024 6

This sounds really arbitrary to me. I understand (to some extent 😉 ) that you might require a certain pattern for your other branches as maybe they need to reference some tracker issue numbers or whatever, but it should be totally possible to customize this on your end. I mean - it should be possible to extend your validation rules with special cases for our branch names.

it would be great to have control over as we have with title and commit msg

Customizing those seems like a much more popular option than customizing the branch name. I'm not 100% opposed to making this configurable, but your feature request really comes as a quirky one to me. I'd like to discuss alternatives first.

from action.

tragiclifestories avatar tragiclifestories commented on September 1, 2024 3

@Andarist one good reason to disallow path separators in branch names is because when it comes down to it, refs are stored in .git as files and directories. So there is a scenario like this:

  1. Dev A pushes branch foo to remote.
  2. Dev B pushes branch foo/bar to remote.
  3. CI cannot run tests on foo/bar because the git metadata is unavailable.

For this reason, we have a global rule across our whole organisation that disallows path-separators in branch names. It has bitten us in practice multiple times and requires manual git-surgery to fix. So it would be great if this issue could be reconsidered.

from action.

0mnius avatar 0mnius commented on September 1, 2024 1

We don't use folders in branch names (what / does) and use only lower kebab...it would be great to have control over as we have with title and commit msg

from action.

Andarist avatar Andarist commented on September 1, 2024

Why can't you just tweak your branch name validations 😉 ? What kind of a name would comply with your rules?

from action.

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.