Skip to content

Commit

Permalink
fix: add missing properties to pull_request_review.submitted (#305)
Browse files Browse the repository at this point in the history
* fix: add missing properties to pull_request_review.submitted

* fix: adjust payload examples to validate

* build: generate types
  • Loading branch information
wolfy1339 authored Jan 18, 2021
1 parent 7bd5ff0 commit 88bf8d5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
8 changes: 6 additions & 2 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -38017,6 +38017,7 @@
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",
Expand Down Expand Up @@ -38286,7 +38287,8 @@
"href": "https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"
}
},
"author_association": "OWNER"
"author_association": "OWNER",
"active_lock_reason": null
},
"repository": {
"id": 186853002,
Expand Down Expand Up @@ -38543,6 +38545,7 @@
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",
Expand Down Expand Up @@ -38812,7 +38815,8 @@
"href": "https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"
}
},
"author_association": "OWNER"
"author_association": "OWNER",
"active_lock_reason": null
},
"repository": {
"id": 186853002,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",
Expand Down Expand Up @@ -401,7 +402,8 @@
"href": "https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"
}
},
"author_association": "OWNER"
"author_association": "OWNER",
"active_lock_reason": null
},
"repository": {
"id": 186853002,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",
Expand Down Expand Up @@ -401,7 +402,8 @@
"href": "https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"
}
},
"author_association": "OWNER"
"author_association": "OWNER",
"active_lock_reason": null
},
"repository": {
"id": 186853002,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"requested_teams",
"labels",
"milestone",
"draft",
"commits_url",
"review_comments_url",
"review_comment_url",
Expand All @@ -100,7 +101,8 @@
"head",
"base",
"_links",
"author_association"
"author_association",
"active_lock_reason"
],
"properties": {
"url": { "type": "string" },
Expand Down Expand Up @@ -197,6 +199,7 @@
},
"additionalProperties": false
},
"draft": { "type": "boolean" },
"commits_url": { "type": "string" },
"review_comments_url": { "type": "string" },
"review_comment_url": { "type": "string" },
Expand Down Expand Up @@ -388,6 +391,10 @@
"NONE",
"OWNER"
]
},
"active_lock_reason": {
"type": ["string", "null"],
"enum": ["resolved", "off-topic", "too heated", "spam", null]
}
},
"additionalProperties": false
Expand Down
2 changes: 2 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7650,6 +7650,7 @@ export interface PullRequestReviewSubmittedEvent {
due_on: string;
closed_at: string | null;
} | null;
draft: boolean;
commits_url: string;
review_comments_url: string;
review_comment_url: string;
Expand Down Expand Up @@ -7742,6 +7743,7 @@ export interface PullRequestReviewSubmittedEvent {
| "MEMBER"
| "NONE"
| "OWNER";
active_lock_reason: "resolved" | "off-topic" | "too heated" | "spam" | null;
};
repository: Repository;
installation?: Installation;
Expand Down

0 comments on commit 88bf8d5

Please sign in to comment.