Skip to content

Commit fd515ec

Browse files
feat(types): new issues.typed and issues.untyped and custom_property.promote_to_enterprise events (#1126)
* fix(deps): update octokit monorepo to v10.4.0 * update generated files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent 73061d9 commit fd515ec

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
645645
| [`code_scanning_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#code_scanning_alert) | `appeared_in_branch`<br>`closed_by_user`<br>`created`<br>`fixed`<br>`reopened`<br>`reopened_by_user` |
646646
| [`commit_comment`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#commit_comment) | `created` |
647647
| [`create`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#create) | |
648-
| [`custom_property`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property) | `created`<br>`deleted`<br>`updated` |
648+
| [`custom_property`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property) | `created`<br>`deleted`<br>`promote_to_enterprise`<br>`updated` |
649649
| [`custom_property_values`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property_values) | `updated` |
650650
| [`delete`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#delete) | |
651651
| [`dependabot_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#dependabot_alert) | `auto_dismissed`<br>`auto_reopened`<br>`created`<br>`dismissed`<br>`fixed`<br>`reintroduced`<br>`reopened` |
@@ -663,7 +663,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
663663
| [`installation_repositories`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_repositories) | `added`<br>`removed` |
664664
| [`installation_target`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_target) | `renamed` |
665665
| [`issue_comment`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_comment) | `created`<br>`deleted`<br>`edited` |
666-
| [`issues`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#issues) | `assigned`<br>`closed`<br>`deleted`<br>`demilestoned`<br>`edited`<br>`labeled`<br>`locked`<br>`milestoned`<br>`opened`<br>`pinned`<br>`reopened`<br>`transferred`<br>`unassigned`<br>`unlabeled`<br>`unlocked`<br>`unpinned` |
666+
| [`issues`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#issues) | `assigned`<br>`closed`<br>`deleted`<br>`demilestoned`<br>`edited`<br>`labeled`<br>`locked`<br>`milestoned`<br>`opened`<br>`pinned`<br>`reopened`<br>`transferred`<br>`typed`<br>`unassigned`<br>`unlabeled`<br>`unlocked`<br>`unpinned`<br>`untyped` |
667667
| [`label`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#label) | `created`<br>`deleted`<br>`edited` |
668668
| [`marketplace_purchase`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#marketplace_purchase) | `cancelled`<br>`changed`<br>`pending_change`<br>`pending_change_cancelled`<br>`purchased` |
669669
| [`member`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#member) | `added`<br>`edited`<br>`removed` |

package-lock.json

Lines changed: 8 additions & 8 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
@@ -44,12 +44,12 @@
4444
]
4545
},
4646
"dependencies": {
47-
"@octokit/openapi-webhooks-types": "10.3.0",
47+
"@octokit/openapi-webhooks-types": "10.4.0",
4848
"@octokit/request-error": "^6.1.7",
4949
"@octokit/webhooks-methods": "^5.1.1"
5050
},
5151
"devDependencies": {
52-
"@octokit/openapi-webhooks": "10.3.0",
52+
"@octokit/openapi-webhooks": "10.4.0",
5353
"@octokit/tsconfig": "^4.0.0",
5454
"@types/node": "^22.0.0",
5555
"@vitest/coverage-v8": "^3.0.0",

src/generated/webhook-identifiers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type EventPayloadMap = {
3232
custom_property:
3333
| WebhookEventDefinition<"custom-property-created">
3434
| WebhookEventDefinition<"custom-property-deleted">
35+
| WebhookEventDefinition<"custom-property-promoted-to-enterprise">
3536
| WebhookEventDefinition<"custom-property-updated">;
3637
custom_property_values: WebhookEventDefinition<"custom-property-values-updated">;
3738
delete: WebhookEventDefinition<"delete">;
@@ -103,10 +104,12 @@ export type EventPayloadMap = {
103104
| WebhookEventDefinition<"issues-pinned">
104105
| WebhookEventDefinition<"issues-reopened">
105106
| WebhookEventDefinition<"issues-transferred">
107+
| WebhookEventDefinition<"issues-typed">
106108
| WebhookEventDefinition<"issues-unassigned">
107109
| WebhookEventDefinition<"issues-unlabeled">
108110
| WebhookEventDefinition<"issues-unlocked">
109-
| WebhookEventDefinition<"issues-unpinned">;
111+
| WebhookEventDefinition<"issues-unpinned">
112+
| WebhookEventDefinition<"issues-untyped">;
110113
label:
111114
| WebhookEventDefinition<"label-created">
112115
| WebhookEventDefinition<"label-deleted">

src/generated/webhook-names.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const emitterEventNames = [
3131
"custom_property",
3232
"custom_property.created",
3333
"custom_property.deleted",
34+
"custom_property.promote_to_enterprise",
3435
"custom_property.updated",
3536
"custom_property_values",
3637
"custom_property_values.updated",
@@ -108,10 +109,12 @@ export const emitterEventNames = [
108109
"issues.pinned",
109110
"issues.reopened",
110111
"issues.transferred",
112+
"issues.typed",
111113
"issues.unassigned",
112114
"issues.unlabeled",
113115
"issues.unlocked",
114116
"issues.unpinned",
117+
"issues.untyped",
115118
"label",
116119
"label.created",
117120
"label.deleted",

0 commit comments

Comments
 (0)