-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
109 lines (106 loc) · 2.7 KB
/
index.d.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// from `@octokit/rest`
type ReposListCommitsResponseItemParentsItem = { url: string; sha: string };
type ReposListCommitsResponseItemCommitter = {
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;
};
type ReposListCommitsResponseItemAuthor = {
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;
};
type ReposListCommitsResponseItemCommitVerification = {
verified: boolean;
reason: string;
signature: null;
payload: null;
};
type ReposListCommitsResponseItemCommitTree = { url: string; sha: string };
type ReposListCommitsResponseItemCommitCommitter = {
name: string;
email: string;
date: string;
};
type ReposListCommitsResponseItemCommitAuthor = {
name: string;
email: string;
date: string;
};
type ReposListCommitsResponseItemCommit = {
url: string;
author: ReposListCommitsResponseItemCommitAuthor;
committer: ReposListCommitsResponseItemCommitCommitter;
message: string;
tree: ReposListCommitsResponseItemCommitTree;
comment_count: number;
verification: ReposListCommitsResponseItemCommitVerification;
};
type ReposListCommitsResponseItem = {
url: string;
sha: string;
node_id: string;
html_url: string;
comments_url: string;
commit: ReposListCommitsResponseItemCommit;
author: ReposListCommitsResponseItemAuthor;
committer: ReposListCommitsResponseItemCommitter;
parents: Array<ReposListCommitsResponseItemParentsItem>;
};
namespace Gh {
type ReposListCommit = ReposListCommitsResponseItem;
type ReposListCommitsResponse = Array<ReposListCommitsResponseItem>;
}
namespace Ncm {
interface Pkg {
name: string;
size: string;
url: string;
}
interface Commit {
sha?: string;
commit: {
message: string;
}
}
interface Build {
version: string;
sha: string;
timestamp: number;
commits?: Commit[];
pkgs: {
[key: string]: Pkg
};
}
}
expors as namespace;