Skip to content

Commit b47e4b0

Browse files
renovate[bot]Octokit Bot
andauthored
feat: new secret_scanning_alert.assigned, secret_scanning_alert.unassigned, issue_dependencies events (#1189)
* fix(deps): update octokit monorepo to v12.1.0 * WIP: Webhooks changed - please review --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Octokit Bot <octokitbot@martynus.net>
1 parent 5ca3206 commit b47e4b0

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
665665
| [`installation_repositories`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_repositories) | `added`<br>`removed` |
666666
| [`installation_target`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#installation_target) | `renamed` |
667667
| [`issue_comment`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_comment) | `created`<br>`deleted`<br>`edited` |
668+
| [`issue_dependencies`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_dependencies) | `blocked_by_added`<br>`blocked_by_removed`<br>`blocking_added`<br>`blocking_removed` |
668669
| [`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` |
669670
| [`label`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#label) | `created`<br>`deleted`<br>`edited` |
670671
| [`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` |
@@ -699,7 +700,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
699700
| [`repository_import`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_import) | |
700701
| [`repository_ruleset`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_ruleset) | `created`<br>`deleted`<br>`edited` |
701702
| [`repository_vulnerability_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_vulnerability_alert) | `create`<br>`dismiss`<br>`reopen`<br>`resolve` |
702-
| [`secret_scanning_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert) | `created`<br>`publicly_leaked`<br>`reopened`<br>`resolved`<br>`validated` |
703+
| [`secret_scanning_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert) | `assigned`<br>`created`<br>`publicly_leaked`<br>`reopened`<br>`resolved`<br>`unassigned`<br>`validated` |
703704
| [`secret_scanning_alert_location`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert_location) | `created` |
704705
| [`secret_scanning_scan`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_scan) | `completed` |
705706
| [`security_advisory`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#security_advisory) | `published`<br>`updated`<br>`withdrawn` |

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
@@ -47,12 +47,12 @@
4747
]
4848
},
4949
"dependencies": {
50-
"@octokit/openapi-webhooks-types": "12.0.3",
50+
"@octokit/openapi-webhooks-types": "12.1.0",
5151
"@octokit/request-error": "^7.0.0",
5252
"@octokit/webhooks-methods": "^6.0.0"
5353
},
5454
"devDependencies": {
55-
"@octokit/openapi-webhooks": "12.0.3",
55+
"@octokit/openapi-webhooks": "12.1.0",
5656
"@octokit/tsconfig": "^4.0.0",
5757
"@types/express": "^5.0.1",
5858
"@types/node": "^22.0.0",

src/generated/webhook-identifiers.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ export type EventPayloadMap = {
9191
| WebhookEventDefinition<"issue-comment-created">
9292
| WebhookEventDefinition<"issue-comment-deleted">
9393
| WebhookEventDefinition<"issue-comment-edited">;
94+
issue_dependencies:
95+
| WebhookEventDefinition<"issue-dependencies-blocked-by-added">
96+
| WebhookEventDefinition<"issue-dependencies-blocked-by-removed">
97+
| WebhookEventDefinition<"issue-dependencies-blocking-added">
98+
| WebhookEventDefinition<"issue-dependencies-blocking-removed">;
9499
issues:
95100
| WebhookEventDefinition<"issues-assigned">
96101
| WebhookEventDefinition<"issues-closed">
@@ -262,10 +267,12 @@ export type EventPayloadMap = {
262267
| WebhookEventDefinition<"repository-vulnerability-alert-reopen">
263268
| WebhookEventDefinition<"repository-vulnerability-alert-resolve">;
264269
secret_scanning_alert:
270+
| WebhookEventDefinition<"secret-scanning-alert-assigned">
265271
| WebhookEventDefinition<"secret-scanning-alert-created">
266272
| WebhookEventDefinition<"secret-scanning-alert-publicly-leaked">
267273
| WebhookEventDefinition<"secret-scanning-alert-reopened">
268274
| WebhookEventDefinition<"secret-scanning-alert-resolved">
275+
| WebhookEventDefinition<"secret-scanning-alert-unassigned">
269276
| WebhookEventDefinition<"secret-scanning-alert-validated">;
270277
secret_scanning_alert_location: WebhookEventDefinition<"secret-scanning-alert-location-created">;
271278
secret_scanning_scan: WebhookEventDefinition<"secret-scanning-scan-completed">;

src/generated/webhook-names.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ export const emitterEventNames = [
9696
"issue_comment.created",
9797
"issue_comment.deleted",
9898
"issue_comment.edited",
99+
"issue_dependencies",
100+
"issue_dependencies.blocked_by_added",
101+
"issue_dependencies.blocked_by_removed",
102+
"issue_dependencies.blocking_added",
103+
"issue_dependencies.blocking_removed",
99104
"issues",
100105
"issues.assigned",
101106
"issues.closed",
@@ -269,10 +274,12 @@ export const emitterEventNames = [
269274
"repository_vulnerability_alert.reopen",
270275
"repository_vulnerability_alert.resolve",
271276
"secret_scanning_alert",
277+
"secret_scanning_alert.assigned",
272278
"secret_scanning_alert.created",
273279
"secret_scanning_alert.publicly_leaked",
274280
"secret_scanning_alert.reopened",
275281
"secret_scanning_alert.resolved",
282+
"secret_scanning_alert.unassigned",
276283
"secret_scanning_alert.validated",
277284
"secret_scanning_alert_location",
278285
"secret_scanning_alert_location.created",

0 commit comments

Comments
 (0)