Skip to content

Commit a5ff2fd

Browse files
authored
fix: cleanup properties in issues and pull_request schemas (#383)
* fix: cleanup properties in issues and pull_request schemas Removes the `label` property from other actions then then `labeled` and `unlabeled` Removes the `assignees` property from all schemas, it doesn't exist at the top level Removes the `assignee` property from other actions then then `assigned` and `unassigned` * build: update schema.d.ts
1 parent 51edeb0 commit a5ff2fd

30 files changed

+0
-206
lines changed

payload-schemas/schemas/issues/assigned.schema.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["assigned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
109
"assignee": {
1110
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
1211
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
1712
"repository": { "$ref": "common/repository.schema.json" },
1813
"sender": { "$ref": "common/user.schema.json" },
1914
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/closed.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
}
2020
]
2121
},
22-
"label": { "$ref": "common/label.schema.json" },
23-
"assignee": {
24-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
25-
},
26-
"assignees": {
27-
"type": "array",
28-
"items": { "$ref": "common/user.schema.json" }
29-
},
3022
"repository": { "$ref": "common/repository.schema.json" },
3123
"sender": { "$ref": "common/user.schema.json" },
3224
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/deleted.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["deleted"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/demilestoned.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["demilestoned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/edited.schema.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525
},
2626
"additionalProperties": false
2727
},
28-
"assignee": {
29-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
30-
},
31-
"assignees": {
32-
"type": "array",
33-
"items": { "$ref": "common/user.schema.json" }
34-
},
3528
"repository": { "$ref": "common/repository.schema.json" },
3629
"sender": { "$ref": "common/user.schema.json" },
3730
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/labeled.schema.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
"action": { "type": "string", "enum": ["labeled"] },
88
"issue": { "$ref": "common/issue.schema.json" },
99
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
1710
"repository": { "$ref": "common/repository.schema.json" },
1811
"sender": { "$ref": "common/user.schema.json" },
1912
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/locked.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@
2222
}
2323
]
2424
},
25-
"label": { "$ref": "common/label.schema.json" },
26-
"assignee": {
27-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
28-
},
29-
"assignees": {
30-
"type": "array",
31-
"items": { "$ref": "common/user.schema.json" }
32-
},
3325
"repository": { "$ref": "common/repository.schema.json" },
3426
"sender": { "$ref": "common/user.schema.json" },
3527
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/milestoned.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["milestoned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/opened.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
}
2020
]
2121
},
22-
"label": { "$ref": "common/label.schema.json" },
23-
"assignee": {
24-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
25-
},
26-
"assignees": {
27-
"type": "array",
28-
"items": { "$ref": "common/user.schema.json" }
29-
},
3022
"repository": { "$ref": "common/repository.schema.json" },
3123
"sender": { "$ref": "common/user.schema.json" },
3224
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/pinned.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["pinned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/reopened.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
}
1717
]
1818
},
19-
"label": { "$ref": "common/label.schema.json" },
20-
"assignee": {
21-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
22-
},
23-
"assignees": {
24-
"type": "array",
25-
"items": { "$ref": "common/user.schema.json" }
26-
},
2719
"repository": { "$ref": "common/repository.schema.json" },
2820
"sender": { "$ref": "common/user.schema.json" },
2921
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/transferred.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["transferred"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/unassigned.schema.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["unassigned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
109
"assignee": {
1110
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
1211
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
1712
"repository": { "$ref": "common/repository.schema.json" },
1813
"sender": { "$ref": "common/user.schema.json" },
1914
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/unlabeled.schema.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
"action": { "type": "string", "enum": ["unlabeled"] },
88
"issue": { "$ref": "common/issue.schema.json" },
99
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
1710
"repository": { "$ref": "common/repository.schema.json" },
1811
"sender": { "$ref": "common/user.schema.json" },
1912
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/unlocked.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
}
2020
]
2121
},
22-
"label": { "$ref": "common/label.schema.json" },
23-
"assignee": {
24-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
25-
},
26-
"assignees": {
27-
"type": "array",
28-
"items": { "$ref": "common/user.schema.json" }
29-
},
3022
"repository": { "$ref": "common/repository.schema.json" },
3123
"sender": { "$ref": "common/user.schema.json" },
3224
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/issues/unpinned.schema.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
"properties": {
77
"action": { "type": "string", "enum": ["unpinned"] },
88
"issue": { "$ref": "common/issue.schema.json" },
9-
"label": { "$ref": "common/label.schema.json" },
10-
"assignee": {
11-
"oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }]
12-
},
13-
"assignees": {
14-
"type": "array",
15-
"items": { "$ref": "common/user.schema.json" }
16-
},
179
"repository": { "$ref": "common/repository.schema.json" },
1810
"sender": { "$ref": "common/user.schema.json" },
1911
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/pull_request/assigned.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"action": { "type": "string", "enum": ["assigned"] },
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
10-
"label": { "$ref": "common/label.schema.json" },
1110
"assignee": { "$ref": "common/user.schema.json" },
1211
"repository": { "$ref": "common/repository.schema.json" },
1312
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/pull_request/closed.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
}
2626
]
2727
},
28-
"label": { "$ref": "common/label.schema.json" },
29-
"assignee": { "$ref": "common/user.schema.json" },
3028
"repository": { "$ref": "common/repository.schema.json" },
3129
"installation": { "$ref": "common/installation-lite.schema.json" },
3230
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/converted_to_draft.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
}
3636
]
3737
},
38-
"label": { "$ref": "common/label.schema.json" },
39-
"assignee": { "$ref": "common/user.schema.json" },
4038
"repository": { "$ref": "common/repository.schema.json" },
4139
"installation": { "$ref": "common/installation-lite.schema.json" },
4240
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/edited.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
"additionalProperties": false
3333
},
3434
"pull_request": { "$ref": "common/pull-request.schema.json" },
35-
"label": { "$ref": "common/label.schema.json" },
36-
"assignee": { "$ref": "common/user.schema.json" },
3735
"repository": { "$ref": "common/repository.schema.json" },
3836
"installation": { "$ref": "common/installation-lite.schema.json" },
3937
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/labeled.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
1010
"label": { "$ref": "common/label.schema.json" },
11-
"assignee": { "$ref": "common/user.schema.json" },
1211
"repository": { "$ref": "common/repository.schema.json" },
1312
"installation": { "$ref": "common/installation-lite.schema.json" },
1413
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/locked.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"action": { "type": "string", "enum": ["locked"] },
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
10-
"label": { "$ref": "common/label.schema.json" },
11-
"assignee": { "$ref": "common/user.schema.json" },
1210
"repository": { "$ref": "common/repository.schema.json" },
1311
"installation": { "$ref": "common/installation-lite.schema.json" },
1412
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/opened.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
}
3232
]
3333
},
34-
"label": { "$ref": "common/label.schema.json" },
35-
"assignee": { "$ref": "common/user.schema.json" },
3634
"repository": { "$ref": "common/repository.schema.json" },
3735
"installation": { "$ref": "common/installation-lite.schema.json" },
3836
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/ready_for_review.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
}
3838
]
3939
},
40-
"label": { "$ref": "common/label.schema.json" },
41-
"assignee": { "$ref": "common/user.schema.json" },
4240
"repository": { "$ref": "common/repository.schema.json" },
4341
"installation": { "$ref": "common/installation-lite.schema.json" },
4442
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/reopened.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
}
3232
]
3333
},
34-
"label": { "$ref": "common/label.schema.json" },
35-
"assignee": { "$ref": "common/user.schema.json" },
3634
"repository": { "$ref": "common/repository.schema.json" },
3735
"installation": { "$ref": "common/installation-lite.schema.json" },
3836
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/synchronize.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"action": { "type": "string", "enum": ["synchronize"] },
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
10-
"label": { "$ref": "common/label.schema.json" },
11-
"assignee": { "$ref": "common/user.schema.json" },
1210
"repository": { "$ref": "common/repository.schema.json" },
1311
"installation": { "$ref": "common/installation-lite.schema.json" },
1412
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/unassigned.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"action": { "type": "string", "enum": ["unassigned"] },
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
10-
"label": { "$ref": "common/label.schema.json" },
1110
"assignee": { "$ref": "common/user.schema.json" },
1211
"repository": { "$ref": "common/repository.schema.json" },
1312
"installation": { "$ref": "common/installation-lite.schema.json" },

payload-schemas/schemas/pull_request/unlabeled.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
1010
"label": { "$ref": "common/label.schema.json" },
11-
"assignee": { "$ref": "common/user.schema.json" },
1211
"repository": { "$ref": "common/repository.schema.json" },
1312
"installation": { "$ref": "common/installation-lite.schema.json" },
1413
"organization": { "$ref": "common/organization.schema.json" },

payload-schemas/schemas/pull_request/unlocked.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"action": { "type": "string", "enum": ["unlocked"] },
88
"number": { "type": "integer" },
99
"pull_request": { "$ref": "common/pull-request.schema.json" },
10-
"label": { "$ref": "common/label.schema.json" },
11-
"assignee": { "$ref": "common/user.schema.json" },
1210
"repository": { "$ref": "common/repository.schema.json" },
1311
"installation": { "$ref": "common/installation-lite.schema.json" },
1412
"organization": { "$ref": "common/organization.schema.json" },

0 commit comments

Comments
 (0)