From 50626e51231d1eb3f6fe3024c00f30c157f8b162 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 13 Oct 2022 10:58:30 -0700 Subject: [PATCH] feat: new `dependabot_alert` and `workflow_run.in_progress` events, and various other type fixes (#759) --- README.md | 3 ++- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- src/generated/webhook-names.ts | 7 +++++++ 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 62dace63..2d8ecb8d 100644 --- a/README.md +++ b/README.md @@ -645,6 +645,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam | [`commit_comment`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#commit_comment) | `created` | | [`create`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#create) | | | [`delete`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#delete) | | +| [`dependabot_alert`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert) | `created`
`dismissed`
`fixed`
`reintroduced`
`reopened` | | [`deploy_key`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deploy_key) | `created`
`deleted` | | [`deployment`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment) | `created` | | [`deployment_status`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_status) | `created` | @@ -694,7 +695,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam | [`watch`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#watch) | `started` | | [`workflow_dispatch`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch) | | | [`workflow_job`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job) | `completed`
`in_progress`
`queued` | -| [`workflow_run`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run) | `completed`
`requested` | +| [`workflow_run`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run) | `completed`
`in_progress`
`requested` | diff --git a/package-lock.json b/package-lock.json index ec9d0e57..e2cff5ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,13 +11,13 @@ "dependencies": { "@octokit/request-error": "^3.0.0", "@octokit/webhooks-methods": "^3.0.0", - "@octokit/webhooks-types": "6.4.0", + "@octokit/webhooks-types": "6.5.0", "aggregate-error": "^3.1.0" }, "devDependencies": { "@jest/types": "^29.0.0", "@octokit/tsconfig": "^1.0.1", - "@octokit/webhooks-schemas": "6.4.0", + "@octokit/webhooks-schemas": "6.5.0", "@pika/pack": "^0.3.7", "@pika/plugin-build-node": "^0.9.2", "@pika/plugin-build-web": "^0.9.2", @@ -2362,15 +2362,15 @@ } }, "node_modules/@octokit/webhooks-schemas": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-schemas/-/webhooks-schemas-6.4.0.tgz", - "integrity": "sha512-6Vh++SNCrlHLZuNqSwyrbmW64hlytIYUbBnez7/Ijsm4YNbEYaNMqtzcxsV6ztZoqx2rH94B03C4CanLP41FgA==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-schemas/-/webhooks-schemas-6.5.0.tgz", + "integrity": "sha512-nk+vcazHDfKZi8W4ECGYNOWGaKlRsDptECmoIdobcNYlRL8gZPZF0EBGKd1iHq3sRSrwiVfEpxyly2/1m85f7g==", "dev": true }, "node_modules/@octokit/webhooks-types": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-6.4.0.tgz", - "integrity": "sha512-epkcGuajnLfavJoa1oGby158Ki3vZrs3DYK9Yi1X+stM3KcEwOuaXRsONIRw6fGdtgYlkZ01IWcl5NKJb7+jmg==" + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-6.5.0.tgz", + "integrity": "sha512-SNx1YKBvi9IQvXo/SQ0p+9OKO2HMdzpCWcKsYxpGW1tlkE9TojYiGnFfxcXddyrsK4mC1UiyXY8+NYjWjtkVmA==" }, "node_modules/@pika/babel-plugin-esm-import-rewrite": { "version": "0.6.1", @@ -9573,15 +9573,15 @@ "integrity": "sha512-XftYVcBxtzC2G05kdBNn9IYLtQ+Cz6ufKkjZd0DU/qGaZEFTPzM2OabXAWG5tvL0q/I+Exio1JnRiPfetiMSEw==" }, "@octokit/webhooks-schemas": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-schemas/-/webhooks-schemas-6.4.0.tgz", - "integrity": "sha512-6Vh++SNCrlHLZuNqSwyrbmW64hlytIYUbBnez7/Ijsm4YNbEYaNMqtzcxsV6ztZoqx2rH94B03C4CanLP41FgA==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-schemas/-/webhooks-schemas-6.5.0.tgz", + "integrity": "sha512-nk+vcazHDfKZi8W4ECGYNOWGaKlRsDptECmoIdobcNYlRL8gZPZF0EBGKd1iHq3sRSrwiVfEpxyly2/1m85f7g==", "dev": true }, "@octokit/webhooks-types": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-6.4.0.tgz", - "integrity": "sha512-epkcGuajnLfavJoa1oGby158Ki3vZrs3DYK9Yi1X+stM3KcEwOuaXRsONIRw6fGdtgYlkZ01IWcl5NKJb7+jmg==" + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-6.5.0.tgz", + "integrity": "sha512-SNx1YKBvi9IQvXo/SQ0p+9OKO2HMdzpCWcKsYxpGW1tlkE9TojYiGnFfxcXddyrsK4mC1UiyXY8+NYjWjtkVmA==" }, "@pika/babel-plugin-esm-import-rewrite": { "version": "0.6.1", diff --git a/package.json b/package.json index f1faf04f..4f088986 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,13 @@ "dependencies": { "@octokit/request-error": "^3.0.0", "@octokit/webhooks-methods": "^3.0.0", - "@octokit/webhooks-types": "6.4.0", + "@octokit/webhooks-types": "6.5.0", "aggregate-error": "^3.1.0" }, "devDependencies": { "@jest/types": "^29.0.0", "@octokit/tsconfig": "^1.0.1", - "@octokit/webhooks-schemas": "6.4.0", + "@octokit/webhooks-schemas": "6.5.0", "@pika/pack": "^0.3.7", "@pika/plugin-build-node": "^0.9.2", "@pika/plugin-build-web": "^0.9.2", diff --git a/src/generated/webhook-names.ts b/src/generated/webhook-names.ts index abdbc370..d2618e40 100644 --- a/src/generated/webhook-names.ts +++ b/src/generated/webhook-names.ts @@ -26,6 +26,12 @@ export const emitterEventNames = [ "commit_comment.created", "create", "delete", + "dependabot_alert", + "dependabot_alert.created", + "dependabot_alert.dismissed", + "dependabot_alert.fixed", + "dependabot_alert.reintroduced", + "dependabot_alert.reopened", "deploy_key", "deploy_key.created", "deploy_key.deleted", @@ -245,5 +251,6 @@ export const emitterEventNames = [ "workflow_job.queued", "workflow_run", "workflow_run.completed", + "workflow_run.in_progress", "workflow_run.requested", ] as const;