Skip to content

Commit

Permalink
build: generate types
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Mar 30, 2021
1 parent 3a8a15a commit a6fb742
Showing 1 changed file with 167 additions and 0 deletions.
167 changes: 167 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type Schema =
| DeploymentEvent
| DeploymentStatusEvent
| DiscussionEvent
| DiscussionCommentEvent
| ForkEvent
| GithubAppAuthorizationEvent
| GollumEvent
Expand Down Expand Up @@ -103,6 +104,10 @@ export type DiscussionEvent =
| DiscussionUnansweredEvent
| DiscussionUnlockedEvent
| DiscussionUnpinnedEvent;
export type DiscussionCommentEvent =
| DiscussionCommentCreatedEvent
| DiscussionCommentDeletedEvent
| DiscussionCommentEditedEvent;
export type GithubAppAuthorizationEvent = GithubAppAuthorizationRevokedEvent;
export type InstallationEvent =
| InstallationCreatedEvent
Expand Down Expand Up @@ -2316,6 +2321,167 @@ export interface DiscussionUnpinnedEvent {
installation?: InstallationLite;
organization?: Organization;
}
export interface DiscussionCommentCreatedEvent {
action: "created";
comment: {
id: number;
node_id: string;
html_url: string;
parent_id: null;
child_comment_count: number;
repository_url: string;
discussion_id: number;
author_association: AuthorAssociation;
user: User;
created_at: string;
updated_at: string;
body: string;
};
discussion: {
repository_url: string;
category: {
id: number;
repository_id: number;
emoji: string;
name: string;
description: string;
created_at: string;
updated_at: string;
slug: string;
is_answerable: boolean;
};
answer_html_url: string | null;
answer_chosen_at: string | null;
answer_chosen_by: string | null;
html_url: string;
id: number;
node_id: string;
number: number;
title: string;
user: User;
state: "open";
locked: boolean;
comments: number;
created_at: string;
updated_at: string;
author_association: AuthorAssociation;
active_lock_reason: string | null;
body: string;
};
repository: Repository;
sender: User;
installation: InstallationLite;
organization?: Organization;
}
export interface DiscussionCommentDeletedEvent {
action: "deleted";
comment: {
id: number;
node_id: string;
html_url: string;
parent_id: null;
child_comment_count: number;
repository_url: string;
discussion_id: number;
author_association: AuthorAssociation;
user: User;
created_at: string;
updated_at: string;
body: string;
};
discussion: {
repository_url: string;
category: {
id: number;
repository_id: number;
emoji: string;
name: string;
description: string;
created_at: string;
updated_at: string;
slug: string;
is_answerable: boolean;
};
answer_html_url: string | null;
answer_chosen_at: string | null;
answer_chosen_by: string | null;
html_url: string;
id: number;
node_id: string;
number: number;
title: string;
user: User;
state: "open";
locked: boolean;
comments: number;
created_at: string;
updated_at: string;
author_association: AuthorAssociation;
active_lock_reason: string | null;
body: string;
};
repository: Repository;
sender: User;
installation: InstallationLite;
organization?: Organization;
}
export interface DiscussionCommentEditedEvent {
changes: {
body: {
from: string;
};
};
action: "edited";
comment: {
id: number;
node_id: string;
html_url: string;
parent_id: null;
child_comment_count: number;
repository_url: string;
discussion_id: number;
author_association: AuthorAssociation;
user: User;
created_at: string;
updated_at: string;
body: string;
};
discussion: {
repository_url: string;
category: {
id: number;
repository_id: number;
emoji: string;
name: string;
description: string;
created_at: string;
updated_at: string;
slug: string;
is_answerable: boolean;
};
answer_html_url: string | null;
answer_chosen_at: string | null;
answer_chosen_by: string | null;
html_url: string;
id: number;
node_id: string;
number: number;
title: string;
user: User;
state: "open";
locked: boolean;
comments: number;
created_at: string;
updated_at: string;
author_association: AuthorAssociation;
active_lock_reason: string | null;
body: string;
};
repository: Repository;
sender: User;
installation: InstallationLite;
organization?: Organization;
}
/**
* A user forks a repository.
*/
Expand Down Expand Up @@ -6121,6 +6287,7 @@ export interface EventPayloadMap {
deployment: DeploymentEvent;
deployment_status: DeploymentStatusEvent;
discussion: DiscussionEvent;
discussion_comment: DiscussionCommentEvent;
fork: ForkEvent;
github_app_authorization: GithubAppAuthorizationEvent;
gollum: GollumEvent;
Expand Down

0 comments on commit a6fb742

Please sign in to comment.