Skip to content

Is it possible to control the branch name of the PR #53

Closed as duplicate

Description

@0mnius

Hello,

Is there any way i can control the branch name this action creates for PR?
Current format changeset-release/target_branch breaks our branch name styling validations.

TIA

Activity

  1. Andarist commented on Aug 26, 2020

    @Andarist
    Member

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

  2. 0mnius commented on Aug 26, 2020

    @0mnius
    Author

    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

  3. Andarist commented on Aug 26, 2020

    @Andarist
    Member

    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.

  4. tragiclifestories commented on Jun 26, 2023

    @tragiclifestories

    @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.

  5. bluwy commented on May 15, 2026

    @bluwy
    Member

    I'm going to close this in favor of #184 as it has more activity and a linked PR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions