mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Add pipeline.step.when.branch string-array type to schema.json (#1380)
Previously the schema only accepted string, this fixes #1379 and matches the linter to the existing capabilities of the constraints.go (and therefore server).
This commit is contained in:
@@ -200,7 +200,18 @@
|
||||
},
|
||||
"branch": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#branch",
|
||||
"type": "string"
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"event": {
|
||||
"description": "TODO Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#event",
|
||||
|
||||
Reference in New Issue
Block a user