@tomsd/github-repo-js 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +443 -5094
- package/dist/index.iife.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/modules/base.d.ts +31 -0
- package/dist/modules/blob.d.ts +68 -0
- package/dist/modules/blobs.d.ts +67 -0
- package/dist/modules/github-classes.d.ts +4647 -0
- package/dist/modules/issue-comments.d.ts +101 -0
- package/dist/modules/issue.d.ts +330 -0
- package/dist/modules/my-issues.d.ts +289 -0
- package/dist/modules/organization-audit-log.d.ts +22 -0
- package/dist/modules/organization-repositories.d.ts +591 -0
- package/dist/modules/pull-commits.d.ts +177 -0
- package/dist/modules/pull-reviewers.d.ts +41 -0
- package/dist/modules/reference-get.d.ts +67 -0
- package/dist/modules/reference.d.ts +73 -0
- package/dist/modules/repository-artifact.d.ts +118 -0
- package/dist/modules/repository-artifacts.d.ts +118 -0
- package/dist/modules/repository-branch.d.ts +82 -0
- package/dist/modules/repository-branches.d.ts +66 -0
- package/dist/modules/repository-commits.d.ts +211 -0
- package/dist/modules/repository-issues.d.ts +317 -0
- package/dist/modules/repository-latest-release.d.ts +21 -0
- package/dist/modules/repository-pull.d.ts +458 -0
- package/dist/modules/repository-pulls.d.ts +369 -0
- package/dist/modules/repository-references.d.ts +82 -0
- package/dist/modules/repository-releases.d.ts +171 -0
- package/dist/modules/repository-runs.d.ts +206 -0
- package/dist/modules/repository-trees.d.ts +99 -0
- package/dist/modules/repository.d.ts +2267 -0
- package/dist/modules/tree.d.ts +82 -0
- package/dist/modules/user-organizations.d.ts +84 -0
- package/dist/modules/user-repositories.d.ts +597 -0
- package/dist/modules/user.d.ts +500 -0
- package/dist/repl.mjs +4 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +6 -6
- package/dist/index.global.js +0 -1
- package/dist/index.js +0 -1
- package/dist/repl.js +0 -4
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryPulls(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
url: string;
|
|
7
|
+
id: number;
|
|
8
|
+
node_id: string;
|
|
9
|
+
html_url: string;
|
|
10
|
+
diff_url: string;
|
|
11
|
+
patch_url: string;
|
|
12
|
+
issue_url: string;
|
|
13
|
+
commits_url: string;
|
|
14
|
+
review_comments_url: string;
|
|
15
|
+
review_comment_url: string;
|
|
16
|
+
comments_url: string;
|
|
17
|
+
statuses_url: string;
|
|
18
|
+
number: number;
|
|
19
|
+
state: string;
|
|
20
|
+
locked: boolean;
|
|
21
|
+
title: string;
|
|
22
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
23
|
+
body: string | null;
|
|
24
|
+
labels: {
|
|
25
|
+
id: number;
|
|
26
|
+
node_id: string;
|
|
27
|
+
url: string;
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
color: string;
|
|
31
|
+
default: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
34
|
+
active_lock_reason?: string | null;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
closed_at: string | null;
|
|
38
|
+
merged_at: string | null;
|
|
39
|
+
merge_commit_sha: string | null;
|
|
40
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
41
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
42
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
43
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
44
|
+
head: {
|
|
45
|
+
label: string;
|
|
46
|
+
ref: string;
|
|
47
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
48
|
+
sha: string;
|
|
49
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
50
|
+
};
|
|
51
|
+
base: {
|
|
52
|
+
label: string;
|
|
53
|
+
ref: string;
|
|
54
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
55
|
+
sha: string;
|
|
56
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
57
|
+
};
|
|
58
|
+
_links: {
|
|
59
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
60
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
61
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
62
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
63
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
64
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
65
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
66
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
67
|
+
};
|
|
68
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
69
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
70
|
+
draft?: boolean;
|
|
71
|
+
}[]>;
|
|
72
|
+
owner: string;
|
|
73
|
+
repo: string;
|
|
74
|
+
token: string;
|
|
75
|
+
get apiOrigin(): string;
|
|
76
|
+
get requestHeaders(): {
|
|
77
|
+
accept: string;
|
|
78
|
+
authorization: string;
|
|
79
|
+
"X-GitHub-Api-Version": string;
|
|
80
|
+
};
|
|
81
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
82
|
+
url: string;
|
|
83
|
+
id: number;
|
|
84
|
+
node_id: string;
|
|
85
|
+
html_url: string;
|
|
86
|
+
diff_url: string;
|
|
87
|
+
patch_url: string;
|
|
88
|
+
issue_url: string;
|
|
89
|
+
commits_url: string;
|
|
90
|
+
review_comments_url: string;
|
|
91
|
+
review_comment_url: string;
|
|
92
|
+
comments_url: string;
|
|
93
|
+
statuses_url: string;
|
|
94
|
+
number: number;
|
|
95
|
+
state: string;
|
|
96
|
+
locked: boolean;
|
|
97
|
+
title: string;
|
|
98
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
99
|
+
body: string | null;
|
|
100
|
+
labels: {
|
|
101
|
+
id: number;
|
|
102
|
+
node_id: string;
|
|
103
|
+
url: string;
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
color: string;
|
|
107
|
+
default: boolean;
|
|
108
|
+
}[];
|
|
109
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
110
|
+
active_lock_reason?: string | null;
|
|
111
|
+
created_at: string;
|
|
112
|
+
updated_at: string;
|
|
113
|
+
closed_at: string | null;
|
|
114
|
+
merged_at: string | null;
|
|
115
|
+
merge_commit_sha: string | null;
|
|
116
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
117
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
118
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
119
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
120
|
+
head: {
|
|
121
|
+
label: string;
|
|
122
|
+
ref: string;
|
|
123
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
124
|
+
sha: string;
|
|
125
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
126
|
+
};
|
|
127
|
+
base: {
|
|
128
|
+
label: string;
|
|
129
|
+
ref: string;
|
|
130
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
131
|
+
sha: string;
|
|
132
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
133
|
+
};
|
|
134
|
+
_links: {
|
|
135
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
136
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
137
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
138
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
139
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
140
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
141
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
142
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
143
|
+
};
|
|
144
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
145
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
146
|
+
draft?: boolean;
|
|
147
|
+
}[]>;
|
|
148
|
+
get(): Promise<{
|
|
149
|
+
url: string;
|
|
150
|
+
id: number;
|
|
151
|
+
node_id: string;
|
|
152
|
+
html_url: string;
|
|
153
|
+
diff_url: string;
|
|
154
|
+
patch_url: string;
|
|
155
|
+
issue_url: string;
|
|
156
|
+
commits_url: string;
|
|
157
|
+
review_comments_url: string;
|
|
158
|
+
review_comment_url: string;
|
|
159
|
+
comments_url: string;
|
|
160
|
+
statuses_url: string;
|
|
161
|
+
number: number;
|
|
162
|
+
state: string;
|
|
163
|
+
locked: boolean;
|
|
164
|
+
title: string;
|
|
165
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
166
|
+
body: string | null;
|
|
167
|
+
labels: {
|
|
168
|
+
id: number;
|
|
169
|
+
node_id: string;
|
|
170
|
+
url: string;
|
|
171
|
+
name: string;
|
|
172
|
+
description: string;
|
|
173
|
+
color: string;
|
|
174
|
+
default: boolean;
|
|
175
|
+
}[];
|
|
176
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
177
|
+
active_lock_reason?: string | null;
|
|
178
|
+
created_at: string;
|
|
179
|
+
updated_at: string;
|
|
180
|
+
closed_at: string | null;
|
|
181
|
+
merged_at: string | null;
|
|
182
|
+
merge_commit_sha: string | null;
|
|
183
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
184
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
185
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
186
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
187
|
+
head: {
|
|
188
|
+
label: string;
|
|
189
|
+
ref: string;
|
|
190
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
191
|
+
sha: string;
|
|
192
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
193
|
+
};
|
|
194
|
+
base: {
|
|
195
|
+
label: string;
|
|
196
|
+
ref: string;
|
|
197
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
198
|
+
sha: string;
|
|
199
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
200
|
+
};
|
|
201
|
+
_links: {
|
|
202
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
203
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
204
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
205
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
206
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
207
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
208
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
209
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
210
|
+
};
|
|
211
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
212
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
213
|
+
draft?: boolean;
|
|
214
|
+
}>;
|
|
215
|
+
post(body: {
|
|
216
|
+
title?: string;
|
|
217
|
+
head: string;
|
|
218
|
+
head_repo?: string;
|
|
219
|
+
base: string;
|
|
220
|
+
body?: string;
|
|
221
|
+
maintainer_can_modify?: boolean;
|
|
222
|
+
draft?: boolean;
|
|
223
|
+
issue?: number;
|
|
224
|
+
}): Promise<{
|
|
225
|
+
url: string;
|
|
226
|
+
id: number;
|
|
227
|
+
node_id: string;
|
|
228
|
+
html_url: string;
|
|
229
|
+
diff_url: string;
|
|
230
|
+
patch_url: string;
|
|
231
|
+
issue_url: string;
|
|
232
|
+
commits_url: string;
|
|
233
|
+
review_comments_url: string;
|
|
234
|
+
review_comment_url: string;
|
|
235
|
+
comments_url: string;
|
|
236
|
+
statuses_url: string;
|
|
237
|
+
number: number;
|
|
238
|
+
state: string;
|
|
239
|
+
locked: boolean;
|
|
240
|
+
title: string;
|
|
241
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
242
|
+
body: string | null;
|
|
243
|
+
labels: {
|
|
244
|
+
id: number;
|
|
245
|
+
node_id: string;
|
|
246
|
+
url: string;
|
|
247
|
+
name: string;
|
|
248
|
+
description: string;
|
|
249
|
+
color: string;
|
|
250
|
+
default: boolean;
|
|
251
|
+
}[];
|
|
252
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
253
|
+
active_lock_reason?: string | null;
|
|
254
|
+
created_at: string;
|
|
255
|
+
updated_at: string;
|
|
256
|
+
closed_at: string | null;
|
|
257
|
+
merged_at: string | null;
|
|
258
|
+
merge_commit_sha: string | null;
|
|
259
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
260
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
261
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
262
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
263
|
+
head: {
|
|
264
|
+
label: string;
|
|
265
|
+
ref: string;
|
|
266
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
267
|
+
sha: string;
|
|
268
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
269
|
+
};
|
|
270
|
+
base: {
|
|
271
|
+
label: string;
|
|
272
|
+
ref: string;
|
|
273
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
274
|
+
sha: string;
|
|
275
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
276
|
+
};
|
|
277
|
+
_links: {
|
|
278
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
279
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
280
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
281
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
282
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
283
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
284
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
285
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
286
|
+
};
|
|
287
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
288
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
289
|
+
draft?: boolean;
|
|
290
|
+
}>;
|
|
291
|
+
patch(body: {
|
|
292
|
+
title?: string;
|
|
293
|
+
head: string;
|
|
294
|
+
head_repo?: string;
|
|
295
|
+
base: string;
|
|
296
|
+
body?: string;
|
|
297
|
+
maintainer_can_modify?: boolean;
|
|
298
|
+
draft?: boolean;
|
|
299
|
+
issue?: number;
|
|
300
|
+
}): Promise<{
|
|
301
|
+
url: string;
|
|
302
|
+
id: number;
|
|
303
|
+
node_id: string;
|
|
304
|
+
html_url: string;
|
|
305
|
+
diff_url: string;
|
|
306
|
+
patch_url: string;
|
|
307
|
+
issue_url: string;
|
|
308
|
+
commits_url: string;
|
|
309
|
+
review_comments_url: string;
|
|
310
|
+
review_comment_url: string;
|
|
311
|
+
comments_url: string;
|
|
312
|
+
statuses_url: string;
|
|
313
|
+
number: number;
|
|
314
|
+
state: string;
|
|
315
|
+
locked: boolean;
|
|
316
|
+
title: string;
|
|
317
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
318
|
+
body: string | null;
|
|
319
|
+
labels: {
|
|
320
|
+
id: number;
|
|
321
|
+
node_id: string;
|
|
322
|
+
url: string;
|
|
323
|
+
name: string;
|
|
324
|
+
description: string;
|
|
325
|
+
color: string;
|
|
326
|
+
default: boolean;
|
|
327
|
+
}[];
|
|
328
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
329
|
+
active_lock_reason?: string | null;
|
|
330
|
+
created_at: string;
|
|
331
|
+
updated_at: string;
|
|
332
|
+
closed_at: string | null;
|
|
333
|
+
merged_at: string | null;
|
|
334
|
+
merge_commit_sha: string | null;
|
|
335
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
336
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
337
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
338
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
339
|
+
head: {
|
|
340
|
+
label: string;
|
|
341
|
+
ref: string;
|
|
342
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
343
|
+
sha: string;
|
|
344
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
345
|
+
};
|
|
346
|
+
base: {
|
|
347
|
+
label: string;
|
|
348
|
+
ref: string;
|
|
349
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
350
|
+
sha: string;
|
|
351
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
352
|
+
};
|
|
353
|
+
_links: {
|
|
354
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
355
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
356
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
357
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
358
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
359
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
360
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
361
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
362
|
+
};
|
|
363
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
364
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
365
|
+
draft?: boolean;
|
|
366
|
+
}>;
|
|
367
|
+
delete(): Promise<void>;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryReferences(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
getMatchingList(refName: string): Promise<{
|
|
5
|
+
ref: string;
|
|
6
|
+
node_id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
object: {
|
|
9
|
+
type: string;
|
|
10
|
+
sha: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
}[]>;
|
|
14
|
+
owner: string;
|
|
15
|
+
repo: string;
|
|
16
|
+
token: string;
|
|
17
|
+
get apiOrigin(): string;
|
|
18
|
+
get requestHeaders(): {
|
|
19
|
+
accept: string;
|
|
20
|
+
authorization: string;
|
|
21
|
+
"X-GitHub-Api-Version": string;
|
|
22
|
+
};
|
|
23
|
+
get pageSizeForRequest(): number;
|
|
24
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
25
|
+
ref: string;
|
|
26
|
+
node_id: string;
|
|
27
|
+
url: string;
|
|
28
|
+
object: {
|
|
29
|
+
type: string;
|
|
30
|
+
sha: string;
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
}[]>;
|
|
34
|
+
getList(query?: Record<string, string>): Promise<{
|
|
35
|
+
ref: string;
|
|
36
|
+
node_id: string;
|
|
37
|
+
url: string;
|
|
38
|
+
object: {
|
|
39
|
+
type: string;
|
|
40
|
+
sha: string;
|
|
41
|
+
url: string;
|
|
42
|
+
};
|
|
43
|
+
}[]>;
|
|
44
|
+
get(): Promise<{
|
|
45
|
+
ref: string;
|
|
46
|
+
node_id: string;
|
|
47
|
+
url: string;
|
|
48
|
+
object: {
|
|
49
|
+
type: string;
|
|
50
|
+
sha: string;
|
|
51
|
+
url: string;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
post(body: {
|
|
55
|
+
ref: string;
|
|
56
|
+
sha: string;
|
|
57
|
+
}): Promise<{
|
|
58
|
+
ref: string;
|
|
59
|
+
node_id: string;
|
|
60
|
+
url: string;
|
|
61
|
+
object: {
|
|
62
|
+
type: string;
|
|
63
|
+
sha: string;
|
|
64
|
+
url: string;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
67
|
+
patch(body: {
|
|
68
|
+
ref: string;
|
|
69
|
+
sha: string;
|
|
70
|
+
}): Promise<{
|
|
71
|
+
ref: string;
|
|
72
|
+
node_id: string;
|
|
73
|
+
url: string;
|
|
74
|
+
object: {
|
|
75
|
+
type: string;
|
|
76
|
+
sha: string;
|
|
77
|
+
url: string;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
delete(): Promise<void>;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryReleases(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
url: string;
|
|
7
|
+
html_url: string;
|
|
8
|
+
assets_url: string;
|
|
9
|
+
upload_url: string;
|
|
10
|
+
tarball_url: string | null;
|
|
11
|
+
zipball_url: string | null;
|
|
12
|
+
id: number;
|
|
13
|
+
node_id: string;
|
|
14
|
+
tag_name: string;
|
|
15
|
+
target_commitish: string;
|
|
16
|
+
name: string | null;
|
|
17
|
+
body?: string | null;
|
|
18
|
+
draft: boolean;
|
|
19
|
+
prerelease: boolean;
|
|
20
|
+
immutable?: boolean;
|
|
21
|
+
created_at: string;
|
|
22
|
+
published_at: string | null;
|
|
23
|
+
updated_at?: string | null;
|
|
24
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
25
|
+
assets: import("@octokit/openapi-types").components["schemas"]["release-asset"][];
|
|
26
|
+
body_html?: string;
|
|
27
|
+
body_text?: string;
|
|
28
|
+
mentions_count?: number;
|
|
29
|
+
discussion_url?: string;
|
|
30
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
31
|
+
}[]>;
|
|
32
|
+
owner: string;
|
|
33
|
+
repo: string;
|
|
34
|
+
token: string;
|
|
35
|
+
get apiOrigin(): string;
|
|
36
|
+
get requestHeaders(): {
|
|
37
|
+
accept: string;
|
|
38
|
+
authorization: string;
|
|
39
|
+
"X-GitHub-Api-Version": string;
|
|
40
|
+
};
|
|
41
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
42
|
+
url: string;
|
|
43
|
+
html_url: string;
|
|
44
|
+
assets_url: string;
|
|
45
|
+
upload_url: string;
|
|
46
|
+
tarball_url: string | null;
|
|
47
|
+
zipball_url: string | null;
|
|
48
|
+
id: number;
|
|
49
|
+
node_id: string;
|
|
50
|
+
tag_name: string;
|
|
51
|
+
target_commitish: string;
|
|
52
|
+
name: string | null;
|
|
53
|
+
body?: string | null;
|
|
54
|
+
draft: boolean;
|
|
55
|
+
prerelease: boolean;
|
|
56
|
+
immutable?: boolean;
|
|
57
|
+
created_at: string;
|
|
58
|
+
published_at: string | null;
|
|
59
|
+
updated_at?: string | null;
|
|
60
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
61
|
+
assets: import("@octokit/openapi-types").components["schemas"]["release-asset"][];
|
|
62
|
+
body_html?: string;
|
|
63
|
+
body_text?: string;
|
|
64
|
+
mentions_count?: number;
|
|
65
|
+
discussion_url?: string;
|
|
66
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
67
|
+
}[]>;
|
|
68
|
+
get(): Promise<{
|
|
69
|
+
url: string;
|
|
70
|
+
html_url: string;
|
|
71
|
+
assets_url: string;
|
|
72
|
+
upload_url: string;
|
|
73
|
+
tarball_url: string | null;
|
|
74
|
+
zipball_url: string | null;
|
|
75
|
+
id: number;
|
|
76
|
+
node_id: string;
|
|
77
|
+
tag_name: string;
|
|
78
|
+
target_commitish: string;
|
|
79
|
+
name: string | null;
|
|
80
|
+
body?: string | null;
|
|
81
|
+
draft: boolean;
|
|
82
|
+
prerelease: boolean;
|
|
83
|
+
immutable?: boolean;
|
|
84
|
+
created_at: string;
|
|
85
|
+
published_at: string | null;
|
|
86
|
+
updated_at?: string | null;
|
|
87
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
88
|
+
assets: import("@octokit/openapi-types").components["schemas"]["release-asset"][];
|
|
89
|
+
body_html?: string;
|
|
90
|
+
body_text?: string;
|
|
91
|
+
mentions_count?: number;
|
|
92
|
+
discussion_url?: string;
|
|
93
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
94
|
+
}>;
|
|
95
|
+
post(body: {
|
|
96
|
+
tag_name: string;
|
|
97
|
+
target_commitish?: string;
|
|
98
|
+
name?: string;
|
|
99
|
+
body?: string;
|
|
100
|
+
draft?: boolean;
|
|
101
|
+
prerelease?: boolean;
|
|
102
|
+
discussion_category_name?: string;
|
|
103
|
+
generate_release_notes?: boolean;
|
|
104
|
+
make_latest?: "true" | "false" | "legacy";
|
|
105
|
+
}): Promise<{
|
|
106
|
+
url: string;
|
|
107
|
+
html_url: string;
|
|
108
|
+
assets_url: string;
|
|
109
|
+
upload_url: string;
|
|
110
|
+
tarball_url: string | null;
|
|
111
|
+
zipball_url: string | null;
|
|
112
|
+
id: number;
|
|
113
|
+
node_id: string;
|
|
114
|
+
tag_name: string;
|
|
115
|
+
target_commitish: string;
|
|
116
|
+
name: string | null;
|
|
117
|
+
body?: string | null;
|
|
118
|
+
draft: boolean;
|
|
119
|
+
prerelease: boolean;
|
|
120
|
+
immutable?: boolean;
|
|
121
|
+
created_at: string;
|
|
122
|
+
published_at: string | null;
|
|
123
|
+
updated_at?: string | null;
|
|
124
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
125
|
+
assets: import("@octokit/openapi-types").components["schemas"]["release-asset"][];
|
|
126
|
+
body_html?: string;
|
|
127
|
+
body_text?: string;
|
|
128
|
+
mentions_count?: number;
|
|
129
|
+
discussion_url?: string;
|
|
130
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
131
|
+
}>;
|
|
132
|
+
patch(body: {
|
|
133
|
+
tag_name: string;
|
|
134
|
+
target_commitish?: string;
|
|
135
|
+
name?: string;
|
|
136
|
+
body?: string;
|
|
137
|
+
draft?: boolean;
|
|
138
|
+
prerelease?: boolean;
|
|
139
|
+
discussion_category_name?: string;
|
|
140
|
+
generate_release_notes?: boolean;
|
|
141
|
+
make_latest?: "true" | "false" | "legacy";
|
|
142
|
+
}): Promise<{
|
|
143
|
+
url: string;
|
|
144
|
+
html_url: string;
|
|
145
|
+
assets_url: string;
|
|
146
|
+
upload_url: string;
|
|
147
|
+
tarball_url: string | null;
|
|
148
|
+
zipball_url: string | null;
|
|
149
|
+
id: number;
|
|
150
|
+
node_id: string;
|
|
151
|
+
tag_name: string;
|
|
152
|
+
target_commitish: string;
|
|
153
|
+
name: string | null;
|
|
154
|
+
body?: string | null;
|
|
155
|
+
draft: boolean;
|
|
156
|
+
prerelease: boolean;
|
|
157
|
+
immutable?: boolean;
|
|
158
|
+
created_at: string;
|
|
159
|
+
published_at: string | null;
|
|
160
|
+
updated_at?: string | null;
|
|
161
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
162
|
+
assets: import("@octokit/openapi-types").components["schemas"]["release-asset"][];
|
|
163
|
+
body_html?: string;
|
|
164
|
+
body_text?: string;
|
|
165
|
+
mentions_count?: number;
|
|
166
|
+
discussion_url?: string;
|
|
167
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
168
|
+
}>;
|
|
169
|
+
delete(): Promise<void>;
|
|
170
|
+
};
|
|
171
|
+
};
|