Skip to content

Commit

Permalink
fix: correct enum values for `required_conversation_resolution_leve…
Browse files Browse the repository at this point in the history
…l`, add enum values for `PullRequestReview#state` (#693)

ref: octokit/webhooks.net#91
ref: #689 (comment)
  • Loading branch information
wolfy1339 committed Aug 11, 2022
1 parent 08106ad commit caa9572
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"properties": {
"from": {
"type": "string",
"enum": ["off", "required", "requested_and_required"]
"enum": ["off", "non_admins", "everyone"]
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
"description": "A commit SHA for the review."
},
"submitted_at": { "type": "string", "format": "date-time" },
"state": { "type": "string" },
"state": {
"type": "string",
"enum": ["commented", "changes_requested", "approved"]
},
"html_url": { "type": "string", "format": "uri" },
"pull_request_url": { "type": "string", "format": "uri" },
"author_association": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
"description": "A commit SHA for the review."
},
"submitted_at": { "type": "string", "format": "date-time" },
"state": { "type": "string" },
"state": {
"type": "string",
"enum": ["commented", "changes_requested", "approved"]
},
"html_url": { "type": "string", "format": "uri" },
"pull_request_url": { "type": "string", "format": "uri" },
"author_association": {
Expand Down
6 changes: 3 additions & 3 deletions payload-types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ export interface BranchProtectionRuleEditedEvent {
from: number;
};
required_conversation_resolution_level?: {
from: "off" | "required" | "requested_and_required";
from: "off" | "non_admins" | "everyone";
};
required_deployments_enforcement_level?: {
from: "off" | "non_admins" | "everyone";
Expand Down Expand Up @@ -5332,7 +5332,7 @@ export interface PullRequestReviewEditedEvent {
*/
commit_id: string;
submitted_at: string;
state: string;
state: "commented" | "changes_requested" | "approved";
html_url: string;
pull_request_url: string;
author_association: AuthorAssociation;
Expand Down Expand Up @@ -5368,7 +5368,7 @@ export interface PullRequestReviewSubmittedEvent {
*/
commit_id: string;
submitted_at: string;
state: string;
state: "commented" | "changes_requested" | "approved";
html_url: string;
pull_request_url: string;
author_association: AuthorAssociation;
Expand Down

0 comments on commit caa9572

Please sign in to comment.