Skip to content

Commit

Permalink
feat(typescript): better payload definitions (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Dec 13, 2020
1 parent bc4a071 commit 341a8b2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@gimenete/type-writer": "^0.1.5",
"@octokit/tsconfig": "^1.0.1",
"@octokit/webhooks-definitions": "^3.21.0",
"@octokit/webhooks-definitions": "^3.22.0",
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-build-types": "^0.9.2",
Expand Down
17 changes: 17 additions & 0 deletions src/generated/event-payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,20 @@ export declare module EventPayloads {
type: string;
site_admin: boolean;
};
type WebhookPayloadRepositoryVulnerabilityAlertOrganization = {
login: string;
id: number;
node_id: string;
url: string;
repos_url: string;
events_url: string;
hooks_url: string;
issues_url: string;
members_url: string;
public_members_url: string;
avatar_url: string;
description: string;
};
type WebhookPayloadRepositoryVulnerabilityAlertSender = {
login: string;
id: number;
Expand Down Expand Up @@ -794,6 +808,8 @@ export declare module EventPayloads {
external_reference: string;
external_identifier: string;
fixed_in: string;
ghsa_id?: string;
created_at?: string;
dismisser?: WebhookPayloadRepositoryVulnerabilityAlertAlertDismisser;
dismiss_reason?: string;
dismissed_at?: string;
Expand All @@ -803,6 +819,7 @@ export declare module EventPayloads {
alert: WebhookPayloadRepositoryVulnerabilityAlertAlert;
repository?: PayloadRepository;
sender?: WebhookPayloadRepositoryVulnerabilityAlertSender;
organization?: WebhookPayloadRepositoryVulnerabilityAlertOrganization;
};
type WebhookPayloadRepositoryImportSender = {
login: string;
Expand Down

0 comments on commit 341a8b2

Please sign in to comment.