Skip to content

Commit

Permalink
fix: check_suite#after can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Nov 22, 2021
1 parent c0481c6 commit 2281de8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -62,7 +62,7 @@
"description": "URL that points to the check suite API resource."
},
"before": { "type": ["string", "null"] },
"after": { "type": "string" },
"after": { "type": ["string", "null"] },
"pull_requests": {
"type": "array",
"items": { "$ref": "common/check-run-pull-request.schema.json" },
Expand Down
Expand Up @@ -62,7 +62,7 @@
"description": "URL that points to the check suite API resource."
},
"before": { "type": ["string", "null"] },
"after": { "type": "string" },
"after": { "type": ["string", "null"] },
"pull_requests": {
"type": "array",
"items": { "$ref": "common/check-run-pull-request.schema.json" },
Expand Down
Expand Up @@ -62,7 +62,7 @@
"description": "URL that points to the check suite API resource."
},
"before": { "type": ["string", "null"] },
"after": { "type": "string" },
"after": { "type": ["string", "null"] },
"pull_requests": {
"type": "array",
"items": { "$ref": "common/check-run-pull-request.schema.json" },
Expand Down
6 changes: 3 additions & 3 deletions payload-types/schema.d.ts
Expand Up @@ -1262,7 +1262,7 @@ export interface CheckSuiteCompletedEvent {
*/
url: string;
before: string | null;
after: string;
after: string | null;
/**
* An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty.
*/
Expand Down Expand Up @@ -1339,7 +1339,7 @@ export interface CheckSuiteRequestedEvent {
*/
url: string;
before: string | null;
after: string;
after: string | null;
/**
* An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty.
*/
Expand Down Expand Up @@ -1393,7 +1393,7 @@ export interface CheckSuiteRerequestedEvent {
*/
url: string;
before: string | null;
after: string;
after: string | null;
/**
* An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty.
*/
Expand Down

0 comments on commit 2281de8

Please sign in to comment.