Skip to content
Snippets Groups Projects
Unverified Commit cfc8b0b8 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(config): add missing `globalOnly` flags (#16202)

parent 54c35dbb
No related branches found
No related tags found
No related merge requests found
...@@ -241,6 +241,7 @@ const options: RenovateOptions[] = [ ...@@ -241,6 +241,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'boolean', type: 'boolean',
default: true, default: true,
globalOnly: true,
}, },
{ {
name: 'draftPR', name: 'draftPR',
...@@ -281,6 +282,7 @@ const options: RenovateOptions[] = [ ...@@ -281,6 +282,7 @@ const options: RenovateOptions[] = [
'If set, this Redis URL will be used for caching instead of the file system.', 'If set, this Redis URL will be used for caching instead of the file system.',
stage: 'global', stage: 'global',
type: 'string', type: 'string',
globalOnly: true,
}, },
{ {
name: 'baseDir', name: 'baseDir',
...@@ -288,6 +290,7 @@ const options: RenovateOptions[] = [ ...@@ -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.', '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', stage: 'global',
type: 'string', type: 'string',
globalOnly: true,
}, },
{ {
name: 'cacheDir', name: 'cacheDir',
...@@ -341,6 +344,7 @@ const options: RenovateOptions[] = [ ...@@ -341,6 +344,7 @@ const options: RenovateOptions[] = [
description: 'Log file path.', description: 'Log file path.',
stage: 'global', stage: 'global',
type: 'string', type: 'string',
globalOnly: true,
}, },
{ {
name: 'logFileLevel', name: 'logFileLevel',
...@@ -348,6 +352,7 @@ const options: RenovateOptions[] = [ ...@@ -348,6 +352,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'string', type: 'string',
default: 'debug', default: 'debug',
globalOnly: true,
}, },
{ {
name: 'logContext', name: 'logContext',
...@@ -689,6 +694,7 @@ const options: RenovateOptions[] = [ ...@@ -689,6 +694,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'boolean', type: 'boolean',
default: false, default: false,
globalOnly: true,
}, },
{ {
name: 'autodiscoverFilter', name: 'autodiscoverFilter',
...@@ -696,6 +702,7 @@ const options: RenovateOptions[] = [ ...@@ -696,6 +702,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'string', type: 'string',
default: null, default: null,
globalOnly: true,
}, },
{ {
name: 'prCommitsPerRunLimit', name: 'prCommitsPerRunLimit',
...@@ -704,6 +711,7 @@ const options: RenovateOptions[] = [ ...@@ -704,6 +711,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'integer', type: 'integer',
default: 0, default: 0,
globalOnly: true,
}, },
{ {
name: 'repositories', name: 'repositories',
...@@ -711,6 +719,7 @@ const options: RenovateOptions[] = [ ...@@ -711,6 +719,7 @@ const options: RenovateOptions[] = [
stage: 'global', stage: 'global',
type: 'array', type: 'array',
cli: false, cli: false,
globalOnly: true,
}, },
{ {
name: 'baseBranches', name: 'baseBranches',
......
...@@ -33,7 +33,6 @@ describe('website-docs', () => { ...@@ -33,7 +33,6 @@ describe('website-docs', () => {
.match(/\n## (.*?)\n/g) .match(/\n## (.*?)\n/g)
?.map((match) => match.substring(4, match.length - 1)); ?.map((match) => match.substring(4, match.length - 1));
const expectedOptions = options const expectedOptions = options
.filter((option) => option.stage !== 'global')
.filter((option) => option.releaseStatus !== 'unpublished') .filter((option) => option.releaseStatus !== 'unpublished')
.filter((option) => !option.globalOnly) .filter((option) => !option.globalOnly)
.filter((option) => !option.parent) .filter((option) => !option.parent)
...@@ -42,7 +41,7 @@ describe('website-docs', () => { ...@@ -42,7 +41,7 @@ describe('website-docs', () => {
.sort(); .sort();
const selfHostExpectedOptions = options const selfHostExpectedOptions = options
.filter((option) => !!option.globalOnly || option.stage === 'global') .filter((option) => !!option.globalOnly)
.map((option) => option.name) .map((option) => option.name)
.sort(); .sort();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment