You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to control the branch name of the PR #53
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.
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
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.
Reacted by Caleb Olin, Alec Chernicki, Malte Hallström, Pablo Espinosa, Dragos Dumitrache and Alberts S
@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:
Dev A pushes branch foo to remote.
Dev B pushes branch foo/bar to remote.
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.
Reacted by Shaibu Emmanuel, Dragos Dumitrache and Kevin Robayna
Activity
Andarist commentedon Aug 26, 2020
Why can't you just tweak your branch name validations 😉 ? What kind of a name would comply with your rules?
0mnius commentedon Aug 26, 2020
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
Andarist commentedon Aug 26, 2020
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.
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.
tragiclifestories commentedon Jun 26, 2023
@Andarist one good reason to disallow path separators in branch names is because when it comes down to it, refs are stored in
.gitas files and directories. So there is a scenario like this:footo remote.foo/barto remote.foo/barbecause 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.
bluwy commentedon May 15, 2026
I'm going to close this in favor of #184 as it has more activity and a linked PR