Skip to content

renovate-reproductions/32231

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

renovate/renovate issue 32231

Current behavior

Currently, if branchNameStrict is set to true, the documentation indicates that it should get rid of all special characters in the branch name. This appears to be the intended behavior, looking at the discussions behind the addition of this feature.

However, in reality, if you have something like additionalBranchPrefix set to {{packageFileDir}}-. this will add slashes to the branch name which are not removed by the branchNameStrict option; you'll end up with a branch like renovate/modules/foo-package-2-x.

Expected behavior

Optimally, branchNameStrict being set to true would remove all special characters from the branches. At the very least, there should be clearly documented way to have branch names contain only alphanumeric and hyphen characters. If, as the discussion in the issue indicates, it would be a problem for the branchPrefix to be altered by the branchNameStrict parameter, then it should be clearly explained in the documentation that in order to get rid of all special characters, you must both set branchNameStrict (or accept the current true default value) and set branchPrefix to something not containing any special characters.

Link to the Renovate issue or Discussion

renovatebot/renovate#32231

About

Reproduction repository for renovate issue #32231

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%