/
created.schema.json
115 lines (115 loc) · 3.75 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
{
"$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/repos#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": { "type": "string", "format": "uri" },
"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": {
"type": "object",
"description": "The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments) that this status is associated with.",
"required": [
"url",
"id",
"node_id",
"sha",
"ref",
"task",
"payload",
"original_environment",
"environment",
"description",
"creator",
"created_at",
"updated_at",
"statuses_url",
"repository_url",
"performed_via_github_app"
],
"properties": {
"url": { "type": "string", "format": "uri" },
"id": { "type": "integer" },
"node_id": { "type": "string" },
"sha": { "type": "string" },
"ref": { "type": "string" },
"task": { "type": "string" },
"payload": {
"type": "object",
"required": [],
"additionalProperties": false
},
"original_environment": { "type": "string" },
"environment": { "type": "string" },
"description": { "type": "null" },
"creator": { "$ref": "common/user.schema.json" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"statuses_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
},
"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"
}