Skip to content

Commit

Permalink
Update bitrise.yml JSON schema (#3742)
Browse files Browse the repository at this point in the history
* fix: align pipeline models (#1)

* add `title`, `summary`, `description` to pipelines and stages.
* add `abort_on_fail` and `should_always_run` to the `StageModel`
* create separate `WorkflowStageConfigModel` with the `run_if` property

* Update bitrise.yml schema (#2)

* Update bitrise.yml JSON schema (#3)

* Fix id property (#4)

* Run prettier:fix for bitrise.json schema (#5)

---------

Co-authored-by: Bálint <balint@morasz.hu>
  • Loading branch information
godrei and morbalint committed Apr 29, 2024
1 parent 2f3e230 commit 7ad52d4
Showing 1 changed file with 71 additions and 12 deletions.
83 changes: 71 additions & 12 deletions src/schemas/json/bitrise.json
@@ -1,5 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/bitrise.json",
"$ref": "#/definitions/BitriseDataModel",
"definitions": {
"AppModel": {
Expand Down Expand Up @@ -302,6 +303,9 @@
"timeout": {
"type": "integer"
},
"no_output_timeout": {
"type": "integer"
},
"meta": {
"patternProperties": {
".*": {
Expand Down Expand Up @@ -360,29 +364,85 @@
"additionalProperties": false,
"type": "object"
},
"TriggerMapItemModelRegexCondition": {
"properties": {
"regex": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"TriggerMapItemModel": {
"properties": {
"push_branch": {
"type": {
"type": "string",
"enum": ["push", "pull_request", "tag"]
},
"enabled": {
"type": "boolean"
},
"pipeline": {
"type": "string"
},
"pull_request_source_branch": {
"workflow": {
"type": "string"
},

"push_branch": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"commit_message": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"changed_files": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},

"pull_request_source_branch": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"pull_request_target_branch": {
"type": "string"
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"draft_pull_request_enabled": {
"type": "boolean"
},
"tag": {
"type": "string"
"pull_request_label": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"pipeline": {
"type": "string"
"pull_request_comment": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},
"workflow": {
"type": "string"

"tag": {
"oneOf": [
{ "$ref": "#/definitions/TriggerMapItemModelRegexCondition" },
{ "type": "string" }
]
},

"pattern": {
"type": "string"
},
Expand Down Expand Up @@ -459,6 +519,5 @@
"additionalProperties": false,
"type": "object"
}
},
"id": "https://json.schemastore.org/bitrise.json"
}
}

0 comments on commit 7ad52d4

Please sign in to comment.