SRS/tools/githubType.ts

81 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2022-04-19 19:53:00 +09:00
export type User = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
export type Label = {
id: number;
node_id: string;
url: string;
name: string;
description: string;
color: string;
default: boolean;
};
export type Milestone = {
url: string;
html_url: string;
labels_url: string;
id: number;
node_id: string;
number: number;
state: string;
title: string;
description: string;
creator: User;
open_issues: number;
closed_issues: number;
created_at: string;
updated_at: string;
closed_at?: string;
due_on: string;
};
export type PullRequest = {
url: string;
html_url: string;
diff_url: string;
patch_url: string;
};
export type Issue = {
id: number;
node_id: string;
url: string;
repository_url: string;
labels_url: string;
comments_url: string;
events_url: string;
html_url: string;
number: number;
state: string;
title: string;
body: string;
user: User;
labels: Label[];
assignee: User;
assignees: User[];
milestone: any;
locked: boolean;
active_lock_reason: string;
comments: number;
pull_request: PullRequest;
closed_at?: string;
created_at: string;
updated_at: string;
closed_by: User;
author_association: string;
};