-
Notifications
You must be signed in to change notification settings - Fork 41
/
workflow-run.schema.json
126 lines (126 loc) · 3.73 KB
/
workflow-run.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/workflow-run.schema.json",
"required": [
"artifacts_url",
"cancel_url",
"check_suite_url",
"check_suite_id",
"check_suite_node_id",
"conclusion",
"created_at",
"event",
"head_branch",
"head_commit",
"head_repository",
"head_sha",
"html_url",
"id",
"jobs_url",
"logs_url",
"node_id",
"name",
"pull_requests",
"repository",
"rerun_url",
"run_number",
"status",
"updated_at",
"url",
"workflow_id",
"workflow_url",
"run_attempt",
"run_started_at",
"previous_attempt_url",
"actor",
"triggering_actor"
],
"type": "object",
"properties": {
"artifacts_url": { "type": "string", "format": "uri" },
"cancel_url": { "type": "string", "format": "uri" },
"check_suite_url": { "type": "string", "format": "uri" },
"check_suite_id": { "type": "integer" },
"check_suite_node_id": { "type": "string" },
"conclusion": {
"type": ["string", "null"],
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
"skipped",
null
]
},
"created_at": { "type": "string", "format": "date-time" },
"event": { "type": "string" },
"head_branch": { "type": "string" },
"head_commit": { "$ref": "commit-simple.schema.json" },
"head_repository": { "$ref": "repository-lite.schema.json" },
"head_sha": { "type": "string" },
"path": { "type": "string" },
"html_url": { "type": "string", "format": "uri" },
"id": { "type": "integer" },
"jobs_url": { "type": "string", "format": "uri" },
"logs_url": { "type": "string", "format": "uri" },
"node_id": { "type": "string" },
"name": { "type": "string" },
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"required": ["url", "id", "number", "head", "base"],
"properties": {
"url": { "type": "string", "format": "uri" },
"id": { "type": "number" },
"number": { "type": "number" },
"head": {
"type": "object",
"required": ["ref", "sha", "repo"],
"properties": {
"ref": { "type": "string" },
"sha": { "type": "string" },
"repo": { "$ref": "repo-ref.schema.json" }
},
"additionalProperties": false
},
"base": {
"type": "object",
"required": ["ref", "sha", "repo"],
"properties": {
"ref": { "type": "string" },
"sha": { "type": "string" },
"repo": { "$ref": "repo-ref.schema.json" }
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"repository": { "$ref": "repository-lite.schema.json" },
"rerun_url": { "type": "string", "format": "uri" },
"run_number": { "type": "integer" },
"status": {
"type": "string",
"enum": ["requested", "in_progress", "completed", "queued", "waiting"]
},
"updated_at": { "type": "string", "format": "date-time" },
"url": { "type": "string", "format": "uri" },
"workflow_id": { "type": "integer" },
"workflow_url": { "type": "string", "format": "uri" },
"run_attempt": { "type": "integer" },
"run_started_at": { "type": "string", "format": "date-time" },
"previous_attempt_url": {
"oneOf": [{ "type": "string", "format": "uri" }, { "type": "null" }]
},
"actor": { "$ref": "user.schema.json" },
"triggering_actor": { "$ref": "user.schema.json" }
},
"additionalProperties": false,
"title": "Workflow Run"
}