Skip to content

Commit

Permalink
feat: new dependabot_alert and workflow_run.in_progress events, a…
Browse files Browse the repository at this point in the history
…nd various other type fixes (#759)
  • Loading branch information
octokitbot authored Oct 13, 2022
1 parent a087568 commit 50626e5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br>`dismissed`<br>`fixed`<br>`reintroduced`<br>`reopened` |
| [`deploy_key`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deploy_key) | `created`<br>`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` |
Expand Down Expand Up @@ -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`<br>`in_progress`<br>`queued` |
| [`workflow_run`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run) | `completed`<br>`requested` |
| [`workflow_run`](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run) | `completed`<br>`in_progress`<br>`requested` |

<!-- /autogenerated via scripts/generate-types.ts -->

Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions src/generated/webhook-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -245,5 +251,6 @@ export const emitterEventNames = [
"workflow_job.queued",
"workflow_run",
"workflow_run.completed",
"workflow_run.in_progress",
"workflow_run.requested",
] as const;

0 comments on commit 50626e5

Please sign in to comment.