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[] = [
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',
......
......@@ -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();
......
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