From c9161ef6fd4ab31ff43e361dc6373cacb520d26d Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sun, 23 Oct 2022 06:48:17 +0200 Subject: [PATCH] feat(config)!: default branchNameStrict=true --- docs/usage/configuration-options.md | 8 ++++---- lib/config/options/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index 2a69db77e1..27c09e5829 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -299,15 +299,15 @@ If you truly need to configure this then it probably means either: ## branchNameStrict -By default, Renovate doesn't care about special characters when slugifying the branch name. -This means that special characters like `.` may end up in the branch name. - -When you set `branchNameStrict` to `true`: +By default, Renovate removes special characters when slugifying the branch name: - all special characters are removed - only alphabetic characters are allowed - hyphens `-` are used to separate sections +To revert this behavior to that used in v32 and before, set this value to `false`. +This will mean that special characters like `.` may end up in the branch name. + ## branchPrefix You can modify this field if you want to change the prefix used. diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts index 71413beedc..3db6cf1157 100644 --- a/lib/config/options/index.ts +++ b/lib/config/options/index.ts @@ -2412,7 +2412,7 @@ const options: RenovateOptions[] = [ name: 'branchNameStrict', description: `Whether to be strict about the use of special characters within the branch name.`, type: 'boolean', - default: false, + default: true, }, ]; -- GitLab