From 9014b8d9529f8f7b6c7a9939726ad58265f8db4f Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Tue, 4 Jul 2023 15:51:41 +0200 Subject: [PATCH] feat!: allow post upgrade templating by default (#23126) --- docs/usage/configuration-options.md | 3 +++ docs/usage/self-hosted-configuration.md | 3 +-- lib/config/options/index.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index 442d3360bdd6673..18d9aa4cfcc51e2 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -2602,6 +2602,9 @@ You can use variable templating in your commands as long as [`allowPostUpgradeCo A list of glob-style matchers that determine which files will be included in the final commit made by Renovate. Dotfiles are included. +Optional field which defaults to any non-ignored file in the repo (`**/*` glob pattern). +Specify a custom value for this if you wish to exclude certain files which are modified by your `postUpgradeTasks` and you don't want committed. + ### executionMode Defaults to `update`, but can also be set to `branch`. diff --git a/docs/usage/self-hosted-configuration.md b/docs/usage/self-hosted-configuration.md index 7a8f9913f0d43cb..f090e9fcf3dbf4d 100644 --- a/docs/usage/self-hosted-configuration.md +++ b/docs/usage/self-hosted-configuration.md @@ -40,8 +40,7 @@ The command to install dependencies (`npm ci --ignore-scripts`) is needed becaus "commands": [ "npm ci --ignore-scripts", "npx ng update {{{depName}}} --from={{{currentVersion}}} --to={{{newVersion}}} --migrate-only --allow-dirty --force" - ], - "fileFilters": ["**/**"] + ] } } ] diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts index d5d02f1e9130cf2..c26a8171a6b735b 100644 --- a/lib/config/options/index.ts +++ b/lib/config/options/index.ts @@ -65,7 +65,7 @@ const options: RenovateOptions[] = [ type: 'array', subType: 'string', parent: 'postUpgradeTasks', - default: [], + default: ['**/*'], cli: false, }, {