Skip to content
Snippets Groups Projects
Commit 2e6b7aea authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(schema): more allowedValues

parent 00f62954
No related branches found
Tags 14.56.4
No related merge requests found
......@@ -559,8 +559,17 @@ const options = [
description:
'Update types to match against (major, minor, pin, etc). Valid only within `packageRules` object.',
type: 'list',
// TODO: add allowedValues
subType: 'string',
allowedValues: [
'major',
'minor',
'patch',
'pin',
'digest',
'lockFileMaintenance',
'rollback',
'bump',
],
allowString: true,
stage: 'package',
parent: 'packageRules',
......@@ -681,6 +690,7 @@ const options = [
name: 'bumpVersion',
description: 'Bump the version in the package.json being updated',
type: 'string',
allowedValues: ['major', 'minor', 'patch'],
},
// Major/Minor/Patch
{
......@@ -807,9 +817,9 @@ const options = [
},
{
name: 'prCreation',
description:
'When to create the PR for a branch. Values: immediate, not-pending, status-success.',
description: 'When to create the PR for a branch.',
type: 'string',
allowedValues: ['immediate', 'not-pending', 'status-success'],
default: 'immediate',
},
{
......@@ -843,9 +853,9 @@ const options = [
},
{
name: 'automergeType',
description:
'How to automerge - "branch", "pr", or "pr-comment". Branch support is GitHub-only',
description: 'How to automerge, if enabled.',
type: 'string',
allowedValues: ['branch', 'pr', 'pr-comment'],
default: 'pr',
},
{
......
......@@ -351,7 +351,17 @@
"description": "Update types to match against (major, minor, pin, etc). Valid only within `packageRules` object.",
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [
"major",
"minor",
"patch",
"pin",
"digest",
"lockFileMaintenance",
"rollback",
"bump"
]
}
},
"paths": {
......@@ -424,7 +434,8 @@
},
"bumpVersion": {
"description": "Bump the version in the package.json being updated",
"type": "string"
"type": "string",
"enum": ["major", "minor", "patch"]
},
"major": {
"description": "Configuration to apply when an update type is major",
......@@ -519,8 +530,9 @@
"default": false
},
"prCreation": {
"description": "When to create the PR for a branch. Values: immediate, not-pending, status-success.",
"description": "When to create the PR for a branch.",
"type": "string",
"enum": ["immediate", "not-pending", "status-success"],
"default": "immediate"
},
"prNotPendingHours": {
......@@ -544,8 +556,9 @@
"default": false
},
"automergeType": {
"description": "How to automerge - \"branch\", \"pr\", or \"pr-comment\". Branch support is GitHub-only",
"description": "How to automerge, if enabled.",
"type": "string",
"enum": ["branch", "pr", "pr-comment"],
"default": "pr"
},
"automergeComment": {
......
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