-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathschema.json
90 lines (90 loc) · 3.57 KB
/
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"commits"
],
"properties": {
"commits": {
"type": "array",
"description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 20 commits. If necessary, you can use the [Commits API](https://docs.github.com/en/rest/reference/repos#commits) to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.",
"items": { "$ref": "/definitions/commit" }
}
},
"additionalProperties": false,
"title": "push event",
"definitions": {
"commit": {
"$schema": "http://json-schema.org/draft-07/schema",
"required": [
"id",
"tree_id",
"distinct",
"message",
"timestamp",
"url",
"author",
"committer",
"added",
"removed",
"modified"
],
"type": "object",
"properties": {
"id": { "type": "string" },
"tree_id": { "type": "string" },
"distinct": {
"type": "boolean",
"description": "Whether this commit is distinct from any that have been pushed before."
},
"message": { "type": "string", "description": "The commit message." },
"`timestamp`": {
"type": "string",
"format": "date-time",
"description": "The ISO 8601 timestamp of the commit."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL that points to the commit API resource."
},
"author": { "$ref": "/definitions/committer" },
"committer": { "$ref": "/definitions/committer" },
"added": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files added in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were added."
},
"modified": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files modified by the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were modified."
},
"removed": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files removed in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were removed."
}
},
"additionalProperties": false,
"title": "Commit"
},
"committer": {
"$schema": "http://json-schema.org/draft-07/schema",
"description": "Metaproperties for Git author/committer information.",
"required": ["name"],
"type": "object",
"properties": {
"name": { "type": "string", "description": "The git author's name." },
"email": {
"description": "The git author's email address.",
"type": "string"
},
"`date`": { "type": "string", "format": "date-time" },
"username": { "type": "string" }
},
"additionalProperties": false,
"title": "Committer"
}
}
}