Skip to content

Commit 68861f4

Browse files
authored
feat(types): new labeled & unlabeled actions for DiscussionEvent, Discussion#state can be converting, active_lock_reason can be null in DiscussionLockedEvent, LabelEditedEvent#changes now contains a description object (#603)
1 parent 21d94f2 commit 68861f4

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
646646
| [`deploy_key`](https://developer.github.com/v3/activity/events/types/#deploykeyevent) | `created`<br>`deleted` |
647647
| [`deployment`](https://developer.github.com/v3/activity/events/types/#deploymentevent) | `created` |
648648
| [`deployment_status`](https://developer.github.com/v3/activity/events/types/#deploymentstatusevent) | `created` |
649-
| [`discussion`](https://developer.github.com/v3/activity/events/types/#discussionevent) | `answered`<br>`category_changed`<br>`created`<br>`deleted`<br>`edited`<br>`locked`<br>`pinned`<br>`transferred`<br>`unanswered`<br>`unlocked`<br>`unpinned` |
649+
| [`discussion`](https://developer.github.com/v3/activity/events/types/#discussionevent) | `answered`<br>`category_changed`<br>`created`<br>`deleted`<br>`edited`<br>`labeled`<br>`locked`<br>`pinned`<br>`transferred`<br>`unanswered`<br>`unlabeled`<br>`unlocked`<br>`unpinned` |
650650
| [`discussion_comment`](https://developer.github.com/v3/activity/events/types/#discussioncommentevent) | `created`<br>`deleted`<br>`edited` |
651651
| [`fork`](https://developer.github.com/v3/activity/events/types/#forkevent) | |
652652
| [`github_app_authorization`](https://developer.github.com/v3/activity/events/types/#githubappauthorizationevent) | `revoked` |

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"dependencies": {
2121
"@octokit/request-error": "^2.0.2",
2222
"@octokit/webhooks-methods": "^2.0.0",
23-
"@octokit/webhooks-types": "4.0.3",
23+
"@octokit/webhooks-types": "4.1.0",
2424
"aggregate-error": "^3.1.0"
2525
},
2626
"devDependencies": {
2727
"@jest/types": "^27.0.0",
2828
"@octokit/tsconfig": "^1.0.1",
29-
"@octokit/webhooks-schemas": "4.0.3",
29+
"@octokit/webhooks-schemas": "4.1.0",
3030
"@pika/pack": "^0.5.0",
3131
"@pika/plugin-build-node": "^0.9.2",
3232
"@pika/plugin-build-web": "^0.9.2",

src/generated/webhook-names.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ export const emitterEventNames = [
3737
"discussion.created",
3838
"discussion.deleted",
3939
"discussion.edited",
40+
"discussion.labeled",
4041
"discussion.locked",
4142
"discussion.pinned",
4243
"discussion.transferred",
4344
"discussion.unanswered",
45+
"discussion.unlabeled",
4446
"discussion.unlocked",
4547
"discussion.unpinned",
4648
"discussion_comment",

0 commit comments

Comments
 (0)