Skip to content

Commit

Permalink
feat(types): new projects_v2_status_update, sub_issues events (#1073
Browse files Browse the repository at this point in the history
)
  • Loading branch information
renovate[bot] authored Nov 19, 2024
1 parent 6ba131f commit 555f42c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
| [`project_column`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#project_column) | `created`<br>`deleted`<br>`edited`<br>`moved` |
| [`projects_v2`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#projects_v2) | `closed`<br>`created`<br>`deleted`<br>`edited`<br>`reopened` |
| [`projects_v2_item`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#projects_v2_item) | `archived`<br>`converted`<br>`created`<br>`deleted`<br>`edited`<br>`reordered`<br>`restored` |
| [`projects_v2_status_update`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#projects_v2_status_update) | `created`<br>`deleted`<br>`edited` |
| [`public`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#public) | |
| [`pull_request`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request) | `assigned`<br>`auto_merge_disabled`<br>`auto_merge_enabled`<br>`closed`<br>`converted_to_draft`<br>`demilestoned`<br>`dequeued`<br>`edited`<br>`enqueued`<br>`labeled`<br>`locked`<br>`milestoned`<br>`opened`<br>`ready_for_review`<br>`reopened`<br>`review_request_removed`<br>`review_requested`<br>`synchronize`<br>`unassigned`<br>`unlabeled`<br>`unlocked` |
| [`pull_request_review`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request_review) | `dismissed`<br>`edited`<br>`submitted` |
Expand All @@ -638,13 +639,14 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
| [`repository_import`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_import) | |
| [`repository_ruleset`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_ruleset) | `created`<br>`deleted`<br>`edited` |
| [`repository_vulnerability_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_vulnerability_alert) | `create`<br>`dismiss`<br>`reopen`<br>`resolve` |
| [`secret_scanning_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert) | `created`<br>`reopened`<br>`resolved`<br>`revoked`<br>`validated` |
| [`secret_scanning_alert`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert) | `created`<br>`reopened`<br>`resolved`<br>`validated` |
| [`secret_scanning_alert_location`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#secret_scanning_alert_location) | `created` |
| [`security_advisory`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#security_advisory) | `published`<br>`updated`<br>`withdrawn` |
| [`security_and_analysis`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#security_and_analysis) | |
| [`sponsorship`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#sponsorship) | `cancelled`<br>`created`<br>`edited`<br>`pending_cancellation`<br>`pending_tier_change`<br>`tier_changed` |
| [`star`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#star) | `created`<br>`deleted` |
| [`status`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#status) | |
| [`sub_issues`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#sub_issues) | `parent_issue_added`<br>`parent_issue_removed`<br>`sub_issue_added`<br>`sub_issue_removed` |
| [`team`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#team) | `added_to_repository`<br>`created`<br>`deleted`<br>`edited`<br>`removed_from_repository` |
| [`team_add`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#team_add) | |
| [`watch`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#watch) | `started` |
Expand Down
16 changes: 8 additions & 8 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 @@ -44,12 +44,12 @@
]
},
"dependencies": {
"@octokit/openapi-webhooks-types": "8.3.0",
"@octokit/openapi-webhooks-types": "8.4.0",
"@octokit/request-error": "^6.0.1",
"@octokit/webhooks-methods": "^5.0.0"
},
"devDependencies": {
"@octokit/openapi-webhooks": "8.3.0",
"@octokit/openapi-webhooks": "8.4.0",
"@octokit/tsconfig": "^4.0.0",
"@types/node": "^22.0.0",
"@vitest/coverage-v8": "^2.0.2",
Expand Down
10 changes: 9 additions & 1 deletion src/generated/webhook-identifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export type EventPayloadMap = {
| WebhookEventDefinition<"projects-v2-item-edited">
| WebhookEventDefinition<"projects-v2-item-reordered">
| WebhookEventDefinition<"projects-v2-item-restored">;
projects_v2_status_update:
| WebhookEventDefinition<"projects-v2-status-update-created">
| WebhookEventDefinition<"projects-v2-status-update-deleted">
| WebhookEventDefinition<"projects-v2-status-update-edited">;
public: WebhookEventDefinition<"public">;
pull_request:
| WebhookEventDefinition<"pull-request-assigned">
Expand Down Expand Up @@ -258,7 +262,6 @@ export type EventPayloadMap = {
| WebhookEventDefinition<"secret-scanning-alert-created">
| WebhookEventDefinition<"secret-scanning-alert-reopened">
| WebhookEventDefinition<"secret-scanning-alert-resolved">
| WebhookEventDefinition<"secret-scanning-alert-revoked">
| WebhookEventDefinition<"secret-scanning-alert-validated">;
secret_scanning_alert_location: WebhookEventDefinition<"secret-scanning-alert-location-created">;
security_advisory:
Expand All @@ -277,6 +280,11 @@ export type EventPayloadMap = {
| WebhookEventDefinition<"star-created">
| WebhookEventDefinition<"star-deleted">;
status: WebhookEventDefinition<"status">;
sub_issues:
| WebhookEventDefinition<"sub-issues-parent-issue-added">
| WebhookEventDefinition<"sub-issues-parent-issue-removed">
| WebhookEventDefinition<"sub-issues-sub-issue-added">
| WebhookEventDefinition<"sub-issues-sub-issue-removed">;
team_add: WebhookEventDefinition<"team-add">;
team:
| WebhookEventDefinition<"team-added-to-repository">
Expand Down
10 changes: 9 additions & 1 deletion src/generated/webhook-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ export const emitterEventNames = [
"projects_v2_item.edited",
"projects_v2_item.reordered",
"projects_v2_item.restored",
"projects_v2_status_update",
"projects_v2_status_update.created",
"projects_v2_status_update.deleted",
"projects_v2_status_update.edited",
"public",
"pull_request",
"pull_request.assigned",
Expand Down Expand Up @@ -265,7 +269,6 @@ export const emitterEventNames = [
"secret_scanning_alert.created",
"secret_scanning_alert.reopened",
"secret_scanning_alert.resolved",
"secret_scanning_alert.revoked",
"secret_scanning_alert.validated",
"secret_scanning_alert_location",
"secret_scanning_alert_location.created",
Expand All @@ -285,6 +288,11 @@ export const emitterEventNames = [
"star.created",
"star.deleted",
"status",
"sub_issues",
"sub_issues.parent_issue_added",
"sub_issues.parent_issue_removed",
"sub_issues.sub_issue_added",
"sub_issues.sub_issue_removed",
"team",
"team.added_to_repository",
"team.created",
Expand Down

0 comments on commit 555f42c

Please sign in to comment.