-
Notifications
You must be signed in to change notification settings - Fork 41
/
created.schema.json
132 lines (132 loc) · 4.4 KB
/
created.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
127
128
129
130
131
132
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "deployment_status$created",
"type": "object",
"required": [
"action",
"deployment_status",
"deployment",
"repository",
"sender"
],
"properties": {
"action": { "type": "string", "enum": ["created"] },
"deployment_status": {
"type": "object",
"description": "The [deployment status](https://docs.github.com/en/rest/reference/deployments#list-deployment-statuses).",
"required": [
"url",
"id",
"node_id",
"state",
"creator",
"description",
"environment",
"target_url",
"created_at",
"updated_at",
"deployment_url",
"repository_url"
],
"properties": {
"url": { "type": "string", "format": "uri" },
"id": { "type": "integer" },
"node_id": { "type": "string" },
"state": {
"type": "string",
"description": "The new state. Can be `pending`, `success`, `failure`, or `error`."
},
"creator": { "$ref": "common/user.schema.json" },
"description": {
"type": "string",
"description": "The optional human-readable description added to the status."
},
"environment": { "type": "string" },
"environment_url": {
"oneOf": [
{ "type": "string", "format": "uri" },
{ "type": "string", "enum": [""] }
]
},
"log_url": { "type": "string", "format": "uri" },
"target_url": {
"type": "string",
"description": "The optional link added to the status."
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"deployment_url": { "type": "string", "format": "uri" },
"repository_url": { "type": "string", "format": "uri" },
"performed_via_github_app": {
"oneOf": [{ "$ref": "common/app.schema.json" }, { "type": "null" }]
}
},
"additionalProperties": false
},
"deployment": { "$ref": "common/deployment.schema.json" },
"check_run": {
"type": "object",
"required": [
"id",
"name",
"node_id",
"head_sha",
"external_id",
"url",
"html_url",
"details_url",
"status",
"conclusion",
"started_at",
"completed_at"
],
"properties": {
"id": { "type": "integer", "description": "The id of the check." },
"name": {
"type": "string",
"description": "The name of the check run."
},
"node_id": { "type": "string" },
"head_sha": {
"type": "string",
"description": "The SHA of the commit that is being checked."
},
"external_id": { "type": "string" },
"url": { "type": "string", "format": "uri" },
"html_url": { "type": "string", "format": "uri" },
"details_url": { "type": "string", "format": "uri" },
"status": {
"type": "string",
"enum": ["queued", "in_progress", "completed", "waiting"],
"description": "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."
},
"conclusion": {
"type": ["string", "null"],
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
"skipped",
null
],
"description": "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."
},
"started_at": { "type": "string", "format": "date-time" },
"completed_at": { "type": ["string", "null"], "format": "date-time" }
},
"additionalProperties": false
},
"workflow_run": { "$ref": "common/deployment-workflow-run.schema.json" },
"workflow": { "$ref": "common/workflow.schema.json" },
"repository": { "$ref": "common/repository.schema.json" },
"sender": { "$ref": "common/user.schema.json" },
"installation": { "$ref": "common/installation-lite.schema.json" },
"organization": { "$ref": "common/organization.schema.json" }
},
"additionalProperties": false,
"title": "deployment_status created event"
}