-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updates to webhook event schemas (#785)
* feat: new `pull_request.{demilestoned, milestroned}` events * feat: many new app permissions * feat: new `pull_request_review_thread` app event * feat: new properties for `workflow_job` events * feat: new `subject_type` property for `PullRequestReviewComment` events * build: generate types * build: update example payloads * style: run lint script * fix: `pull_request.head.repo` can be `null`
- Loading branch information
Showing
12 changed files
with
168 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
payload-schemas/api.github.com/pull_request/demilestoned.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "pull_request$demilestoned", | ||
"type": "object", | ||
"required": [ | ||
"action", | ||
"number", | ||
"pull_request", | ||
"milestone", | ||
"repository", | ||
"sender" | ||
], | ||
"properties": { | ||
"action": { "type": "string", "enum": ["demilestoned"] }, | ||
"number": { "type": "integer", "description": "The pull request number." }, | ||
"pull_request": { | ||
"allOf": [ | ||
{ "$ref": "common/pull-request.schema.json" }, | ||
{ | ||
"type": "object", | ||
"required": ["milestone"], | ||
"properties": { | ||
"milestone": { "$ref": "common/milestone.schema.json" } | ||
}, | ||
"tsAdditionalProperties": false | ||
} | ||
] | ||
}, | ||
"milestone": { "$ref": "common/milestone.schema.json" }, | ||
"repository": { "$ref": "common/repository.schema.json" }, | ||
"sender": { "$ref": "common/user.schema.json" }, | ||
"installation": { "$ref": "common/installation-lite.schema.json" }, | ||
"organization": { "$ref": "common/organization.schema.json" } | ||
}, | ||
"additionalProperties": false, | ||
"title": "pull_request demilestoned event" | ||
} |
37 changes: 37 additions & 0 deletions
37
payload-schemas/api.github.com/pull_request/milestoned.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "pull_request$milestoned", | ||
"type": "object", | ||
"required": [ | ||
"action", | ||
"number", | ||
"pull_request", | ||
"milestone", | ||
"repository", | ||
"sender" | ||
], | ||
"properties": { | ||
"action": { "type": "string", "enum": ["milestoned"] }, | ||
"number": { "type": "integer", "description": "The pull request number." }, | ||
"pull_request": { | ||
"allOf": [ | ||
{ "$ref": "common/pull-request.schema.json" }, | ||
{ | ||
"type": "object", | ||
"required": ["milestone"], | ||
"properties": { | ||
"milestone": { "$ref": "common/milestone.schema.json" } | ||
}, | ||
"tsAdditionalProperties": false | ||
} | ||
] | ||
}, | ||
"milestone": { "$ref": "common/milestone.schema.json" }, | ||
"repository": { "$ref": "common/repository.schema.json" }, | ||
"sender": { "$ref": "common/user.schema.json" }, | ||
"installation": { "$ref": "common/installation-lite.schema.json" }, | ||
"organization": { "$ref": "common/organization.schema.json" } | ||
}, | ||
"additionalProperties": false, | ||
"title": "pull_request milestoned event" | ||
} |
Oops, something went wrong.