diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts index 25ba3c862c1f93f324b79b4d51e74aa997c65800..e9c2c29b8a84d1501a32c212122f2a64cb1aae60 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 a856acf2d55fc302cde71d89755302f919e8d593..3895146656303c1c8eb6f62bdeaf78a1929d4bde 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();