From cfc8b0b859afa97268c5b3a1d83922964a0f9cb3 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Fri, 24 Jun 2022 11:32:41 +0200 Subject: [PATCH] fix(config): add missing `globalOnly` flags (#16202) --- lib/config/options/index.ts | 9 +++++++++ test/website-docs.spec.ts | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts index 25ba3c862c..e9c2c29b8a 100644 --- a/lib/config/options/index.ts +++ b/lib/config/options/index.ts @@ -241,6 +241,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'boolean', default: true, + globalOnly: true, }, { name: 'draftPR', @@ -281,6 +282,7 @@ const options: RenovateOptions[] = [ 'If set, this Redis URL will be used for caching instead of the file system.', stage: 'global', type: 'string', + globalOnly: true, }, { name: 'baseDir', @@ -288,6 +290,7 @@ const options: RenovateOptions[] = [ 'The base directory for Renovate to store local files, including repository files and cache. If left empty, Renovate will create its own temporary directory to use.', stage: 'global', type: 'string', + globalOnly: true, }, { name: 'cacheDir', @@ -341,6 +344,7 @@ const options: RenovateOptions[] = [ description: 'Log file path.', stage: 'global', type: 'string', + globalOnly: true, }, { name: 'logFileLevel', @@ -348,6 +352,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'string', default: 'debug', + globalOnly: true, }, { name: 'logContext', @@ -689,6 +694,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'boolean', default: false, + globalOnly: true, }, { name: 'autodiscoverFilter', @@ -696,6 +702,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'string', default: null, + globalOnly: true, }, { name: 'prCommitsPerRunLimit', @@ -704,6 +711,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'integer', default: 0, + globalOnly: true, }, { name: 'repositories', @@ -711,6 +719,7 @@ const options: RenovateOptions[] = [ stage: 'global', type: 'array', cli: false, + globalOnly: true, }, { name: 'baseBranches', diff --git a/test/website-docs.spec.ts b/test/website-docs.spec.ts index a856acf2d5..3895146656 100644 --- a/test/website-docs.spec.ts +++ b/test/website-docs.spec.ts @@ -33,7 +33,6 @@ describe('website-docs', () => { .match(/\n## (.*?)\n/g) ?.map((match) => match.substring(4, match.length - 1)); const expectedOptions = options - .filter((option) => option.stage !== 'global') .filter((option) => option.releaseStatus !== 'unpublished') .filter((option) => !option.globalOnly) .filter((option) => !option.parent) @@ -42,7 +41,7 @@ describe('website-docs', () => { .sort(); const selfHostExpectedOptions = options - .filter((option) => !!option.globalOnly || option.stage === 'global') + .filter((option) => !!option.globalOnly) .map((option) => option.name) .sort(); -- GitLab