-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathgithub.ts
47 lines (40 loc) · 829 Bytes
/
github.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export type PullRequestContributionsByRepository = {
contributions: Contributions;
repository: Repository;
};
export type Contributions = {
totalCount: number;
nodes: PullRequestNode[];
};
export type PullRequestNode = {
pullRequest: PullRequest;
};
export type PullRequest = {
id: string;
title: string;
state: PullRequestState;
url: string;
};
export type Repository = {
owner: Owner;
name: string;
stargazerCount: number;
};
export type Owner = {
login: string;
avatarUrl: string;
};
export type User = {
login: string;
avatarUrl: string;
bio: string;
name: string;
followers: {
totalCount: number;
};
starsCount: {
totalCount: number;
};
};
export type RepositoryRenderFormat = "cards" | "text" | "json";
export type PullRequestState = "MERGED" | "CLOSED" | "OPEN";