@napi-rs/cli 3.0.0-alpha.59 → 3.0.0-alpha.60
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/dist/index.cjs +3473 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
8
11
|
var __export = (target, all) => {
|
|
9
12
|
for (var name in all)
|
|
10
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -27,6 +30,2494 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
30
|
));
|
|
28
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
32
|
|
|
33
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
|
|
34
|
+
var require_dist_node = __commonJS({
|
|
35
|
+
"../node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js"(exports2, module2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var __defProp2 = Object.defineProperty;
|
|
38
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
39
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
40
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
41
|
+
var __export2 = (target, all) => {
|
|
42
|
+
for (var name in all)
|
|
43
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
44
|
+
};
|
|
45
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
46
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
47
|
+
for (let key of __getOwnPropNames2(from))
|
|
48
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
49
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
50
|
+
}
|
|
51
|
+
return to;
|
|
52
|
+
};
|
|
53
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
54
|
+
var dist_src_exports = {};
|
|
55
|
+
__export2(dist_src_exports, {
|
|
56
|
+
composePaginateRest: () => composePaginateRest,
|
|
57
|
+
isPaginatingEndpoint: () => isPaginatingEndpoint,
|
|
58
|
+
paginateRest: () => paginateRest2,
|
|
59
|
+
paginatingEndpoints: () => paginatingEndpoints
|
|
60
|
+
});
|
|
61
|
+
module2.exports = __toCommonJS2(dist_src_exports);
|
|
62
|
+
var VERSION7 = "11.3.1";
|
|
63
|
+
function normalizePaginatedListResponse(response) {
|
|
64
|
+
if (!response.data) {
|
|
65
|
+
return {
|
|
66
|
+
...response,
|
|
67
|
+
data: []
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
71
|
+
if (!responseNeedsNormalization)
|
|
72
|
+
return response;
|
|
73
|
+
const incompleteResults = response.data.incomplete_results;
|
|
74
|
+
const repositorySelection = response.data.repository_selection;
|
|
75
|
+
const totalCount = response.data.total_count;
|
|
76
|
+
delete response.data.incomplete_results;
|
|
77
|
+
delete response.data.repository_selection;
|
|
78
|
+
delete response.data.total_count;
|
|
79
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
80
|
+
const data = response.data[namespaceKey];
|
|
81
|
+
response.data = data;
|
|
82
|
+
if (typeof incompleteResults !== "undefined") {
|
|
83
|
+
response.data.incomplete_results = incompleteResults;
|
|
84
|
+
}
|
|
85
|
+
if (typeof repositorySelection !== "undefined") {
|
|
86
|
+
response.data.repository_selection = repositorySelection;
|
|
87
|
+
}
|
|
88
|
+
response.data.total_count = totalCount;
|
|
89
|
+
return response;
|
|
90
|
+
}
|
|
91
|
+
function iterator(octokit, route, parameters) {
|
|
92
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
93
|
+
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
94
|
+
const method = options.method;
|
|
95
|
+
const headers = options.headers;
|
|
96
|
+
let url = options.url;
|
|
97
|
+
return {
|
|
98
|
+
[Symbol.asyncIterator]: () => ({
|
|
99
|
+
async next() {
|
|
100
|
+
if (!url)
|
|
101
|
+
return { done: true };
|
|
102
|
+
try {
|
|
103
|
+
const response = await requestMethod({ method, url, headers });
|
|
104
|
+
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
105
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
106
|
+
/<([^>]+)>;\s*rel="next"/
|
|
107
|
+
) || [])[1];
|
|
108
|
+
return { value: normalizedResponse };
|
|
109
|
+
} catch (error) {
|
|
110
|
+
if (error.status !== 409)
|
|
111
|
+
throw error;
|
|
112
|
+
url = "";
|
|
113
|
+
return {
|
|
114
|
+
value: {
|
|
115
|
+
status: 200,
|
|
116
|
+
headers: {},
|
|
117
|
+
data: []
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function paginate(octokit, route, parameters, mapFn) {
|
|
126
|
+
if (typeof parameters === "function") {
|
|
127
|
+
mapFn = parameters;
|
|
128
|
+
parameters = void 0;
|
|
129
|
+
}
|
|
130
|
+
return gather(
|
|
131
|
+
octokit,
|
|
132
|
+
[],
|
|
133
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
134
|
+
mapFn
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
function gather(octokit, results, iterator2, mapFn) {
|
|
138
|
+
return iterator2.next().then((result) => {
|
|
139
|
+
if (result.done) {
|
|
140
|
+
return results;
|
|
141
|
+
}
|
|
142
|
+
let earlyExit = false;
|
|
143
|
+
function done() {
|
|
144
|
+
earlyExit = true;
|
|
145
|
+
}
|
|
146
|
+
results = results.concat(
|
|
147
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
148
|
+
);
|
|
149
|
+
if (earlyExit) {
|
|
150
|
+
return results;
|
|
151
|
+
}
|
|
152
|
+
return gather(octokit, results, iterator2, mapFn);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
var composePaginateRest = Object.assign(paginate, {
|
|
156
|
+
iterator
|
|
157
|
+
});
|
|
158
|
+
var paginatingEndpoints = [
|
|
159
|
+
"GET /advisories",
|
|
160
|
+
"GET /app/hook/deliveries",
|
|
161
|
+
"GET /app/installation-requests",
|
|
162
|
+
"GET /app/installations",
|
|
163
|
+
"GET /assignments/{assignment_id}/accepted_assignments",
|
|
164
|
+
"GET /classrooms",
|
|
165
|
+
"GET /classrooms/{classroom_id}/assignments",
|
|
166
|
+
"GET /enterprises/{enterprise}/copilot/usage",
|
|
167
|
+
"GET /enterprises/{enterprise}/dependabot/alerts",
|
|
168
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
|
169
|
+
"GET /events",
|
|
170
|
+
"GET /gists",
|
|
171
|
+
"GET /gists/public",
|
|
172
|
+
"GET /gists/starred",
|
|
173
|
+
"GET /gists/{gist_id}/comments",
|
|
174
|
+
"GET /gists/{gist_id}/commits",
|
|
175
|
+
"GET /gists/{gist_id}/forks",
|
|
176
|
+
"GET /installation/repositories",
|
|
177
|
+
"GET /issues",
|
|
178
|
+
"GET /licenses",
|
|
179
|
+
"GET /marketplace_listing/plans",
|
|
180
|
+
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
|
181
|
+
"GET /marketplace_listing/stubbed/plans",
|
|
182
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
|
183
|
+
"GET /networks/{owner}/{repo}/events",
|
|
184
|
+
"GET /notifications",
|
|
185
|
+
"GET /organizations",
|
|
186
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
|
187
|
+
"GET /orgs/{org}/actions/permissions/repositories",
|
|
188
|
+
"GET /orgs/{org}/actions/runners",
|
|
189
|
+
"GET /orgs/{org}/actions/secrets",
|
|
190
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
|
191
|
+
"GET /orgs/{org}/actions/variables",
|
|
192
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
|
193
|
+
"GET /orgs/{org}/blocks",
|
|
194
|
+
"GET /orgs/{org}/code-scanning/alerts",
|
|
195
|
+
"GET /orgs/{org}/codespaces",
|
|
196
|
+
"GET /orgs/{org}/codespaces/secrets",
|
|
197
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
|
198
|
+
"GET /orgs/{org}/copilot/billing/seats",
|
|
199
|
+
"GET /orgs/{org}/copilot/usage",
|
|
200
|
+
"GET /orgs/{org}/dependabot/alerts",
|
|
201
|
+
"GET /orgs/{org}/dependabot/secrets",
|
|
202
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
|
203
|
+
"GET /orgs/{org}/events",
|
|
204
|
+
"GET /orgs/{org}/failed_invitations",
|
|
205
|
+
"GET /orgs/{org}/hooks",
|
|
206
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
|
207
|
+
"GET /orgs/{org}/installations",
|
|
208
|
+
"GET /orgs/{org}/invitations",
|
|
209
|
+
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
|
210
|
+
"GET /orgs/{org}/issues",
|
|
211
|
+
"GET /orgs/{org}/members",
|
|
212
|
+
"GET /orgs/{org}/members/{username}/codespaces",
|
|
213
|
+
"GET /orgs/{org}/migrations",
|
|
214
|
+
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
|
215
|
+
"GET /orgs/{org}/organization-roles/{role_id}/teams",
|
|
216
|
+
"GET /orgs/{org}/organization-roles/{role_id}/users",
|
|
217
|
+
"GET /orgs/{org}/outside_collaborators",
|
|
218
|
+
"GET /orgs/{org}/packages",
|
|
219
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
220
|
+
"GET /orgs/{org}/personal-access-token-requests",
|
|
221
|
+
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
|
222
|
+
"GET /orgs/{org}/personal-access-tokens",
|
|
223
|
+
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
|
|
224
|
+
"GET /orgs/{org}/projects",
|
|
225
|
+
"GET /orgs/{org}/properties/values",
|
|
226
|
+
"GET /orgs/{org}/public_members",
|
|
227
|
+
"GET /orgs/{org}/repos",
|
|
228
|
+
"GET /orgs/{org}/rulesets",
|
|
229
|
+
"GET /orgs/{org}/rulesets/rule-suites",
|
|
230
|
+
"GET /orgs/{org}/secret-scanning/alerts",
|
|
231
|
+
"GET /orgs/{org}/security-advisories",
|
|
232
|
+
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
|
|
233
|
+
"GET /orgs/{org}/teams",
|
|
234
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
|
235
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
|
236
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
237
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
|
238
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
|
239
|
+
"GET /orgs/{org}/teams/{team_slug}/members",
|
|
240
|
+
"GET /orgs/{org}/teams/{team_slug}/projects",
|
|
241
|
+
"GET /orgs/{org}/teams/{team_slug}/repos",
|
|
242
|
+
"GET /orgs/{org}/teams/{team_slug}/teams",
|
|
243
|
+
"GET /projects/columns/{column_id}/cards",
|
|
244
|
+
"GET /projects/{project_id}/collaborators",
|
|
245
|
+
"GET /projects/{project_id}/columns",
|
|
246
|
+
"GET /repos/{owner}/{repo}/actions/artifacts",
|
|
247
|
+
"GET /repos/{owner}/{repo}/actions/caches",
|
|
248
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
|
249
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
|
250
|
+
"GET /repos/{owner}/{repo}/actions/runners",
|
|
251
|
+
"GET /repos/{owner}/{repo}/actions/runs",
|
|
252
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
|
253
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
|
254
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
|
255
|
+
"GET /repos/{owner}/{repo}/actions/secrets",
|
|
256
|
+
"GET /repos/{owner}/{repo}/actions/variables",
|
|
257
|
+
"GET /repos/{owner}/{repo}/actions/workflows",
|
|
258
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
|
259
|
+
"GET /repos/{owner}/{repo}/activity",
|
|
260
|
+
"GET /repos/{owner}/{repo}/assignees",
|
|
261
|
+
"GET /repos/{owner}/{repo}/branches",
|
|
262
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
|
263
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
|
264
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
|
265
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
266
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
|
267
|
+
"GET /repos/{owner}/{repo}/codespaces",
|
|
268
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
|
269
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
|
270
|
+
"GET /repos/{owner}/{repo}/collaborators",
|
|
271
|
+
"GET /repos/{owner}/{repo}/comments",
|
|
272
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
|
273
|
+
"GET /repos/{owner}/{repo}/commits",
|
|
274
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
|
275
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
|
276
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
|
277
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
|
278
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
|
279
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
|
280
|
+
"GET /repos/{owner}/{repo}/contributors",
|
|
281
|
+
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
|
282
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
|
283
|
+
"GET /repos/{owner}/{repo}/deployments",
|
|
284
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
|
285
|
+
"GET /repos/{owner}/{repo}/environments",
|
|
286
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
|
287
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
|
288
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets",
|
|
289
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables",
|
|
290
|
+
"GET /repos/{owner}/{repo}/events",
|
|
291
|
+
"GET /repos/{owner}/{repo}/forks",
|
|
292
|
+
"GET /repos/{owner}/{repo}/hooks",
|
|
293
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
|
294
|
+
"GET /repos/{owner}/{repo}/invitations",
|
|
295
|
+
"GET /repos/{owner}/{repo}/issues",
|
|
296
|
+
"GET /repos/{owner}/{repo}/issues/comments",
|
|
297
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
|
298
|
+
"GET /repos/{owner}/{repo}/issues/events",
|
|
299
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
300
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
|
301
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
302
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
|
303
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
|
304
|
+
"GET /repos/{owner}/{repo}/keys",
|
|
305
|
+
"GET /repos/{owner}/{repo}/labels",
|
|
306
|
+
"GET /repos/{owner}/{repo}/milestones",
|
|
307
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
|
308
|
+
"GET /repos/{owner}/{repo}/notifications",
|
|
309
|
+
"GET /repos/{owner}/{repo}/pages/builds",
|
|
310
|
+
"GET /repos/{owner}/{repo}/projects",
|
|
311
|
+
"GET /repos/{owner}/{repo}/pulls",
|
|
312
|
+
"GET /repos/{owner}/{repo}/pulls/comments",
|
|
313
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
|
314
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
|
315
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
|
316
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
|
317
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
|
318
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
|
319
|
+
"GET /repos/{owner}/{repo}/releases",
|
|
320
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
|
321
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
|
322
|
+
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
|
323
|
+
"GET /repos/{owner}/{repo}/rulesets",
|
|
324
|
+
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
|
|
325
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
|
326
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
|
327
|
+
"GET /repos/{owner}/{repo}/security-advisories",
|
|
328
|
+
"GET /repos/{owner}/{repo}/stargazers",
|
|
329
|
+
"GET /repos/{owner}/{repo}/subscribers",
|
|
330
|
+
"GET /repos/{owner}/{repo}/tags",
|
|
331
|
+
"GET /repos/{owner}/{repo}/teams",
|
|
332
|
+
"GET /repos/{owner}/{repo}/topics",
|
|
333
|
+
"GET /repositories",
|
|
334
|
+
"GET /search/code",
|
|
335
|
+
"GET /search/commits",
|
|
336
|
+
"GET /search/issues",
|
|
337
|
+
"GET /search/labels",
|
|
338
|
+
"GET /search/repositories",
|
|
339
|
+
"GET /search/topics",
|
|
340
|
+
"GET /search/users",
|
|
341
|
+
"GET /teams/{team_id}/discussions",
|
|
342
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
|
343
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
344
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
|
345
|
+
"GET /teams/{team_id}/invitations",
|
|
346
|
+
"GET /teams/{team_id}/members",
|
|
347
|
+
"GET /teams/{team_id}/projects",
|
|
348
|
+
"GET /teams/{team_id}/repos",
|
|
349
|
+
"GET /teams/{team_id}/teams",
|
|
350
|
+
"GET /user/blocks",
|
|
351
|
+
"GET /user/codespaces",
|
|
352
|
+
"GET /user/codespaces/secrets",
|
|
353
|
+
"GET /user/emails",
|
|
354
|
+
"GET /user/followers",
|
|
355
|
+
"GET /user/following",
|
|
356
|
+
"GET /user/gpg_keys",
|
|
357
|
+
"GET /user/installations",
|
|
358
|
+
"GET /user/installations/{installation_id}/repositories",
|
|
359
|
+
"GET /user/issues",
|
|
360
|
+
"GET /user/keys",
|
|
361
|
+
"GET /user/marketplace_purchases",
|
|
362
|
+
"GET /user/marketplace_purchases/stubbed",
|
|
363
|
+
"GET /user/memberships/orgs",
|
|
364
|
+
"GET /user/migrations",
|
|
365
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
366
|
+
"GET /user/orgs",
|
|
367
|
+
"GET /user/packages",
|
|
368
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
369
|
+
"GET /user/public_emails",
|
|
370
|
+
"GET /user/repos",
|
|
371
|
+
"GET /user/repository_invitations",
|
|
372
|
+
"GET /user/social_accounts",
|
|
373
|
+
"GET /user/ssh_signing_keys",
|
|
374
|
+
"GET /user/starred",
|
|
375
|
+
"GET /user/subscriptions",
|
|
376
|
+
"GET /user/teams",
|
|
377
|
+
"GET /users",
|
|
378
|
+
"GET /users/{username}/events",
|
|
379
|
+
"GET /users/{username}/events/orgs/{org}",
|
|
380
|
+
"GET /users/{username}/events/public",
|
|
381
|
+
"GET /users/{username}/followers",
|
|
382
|
+
"GET /users/{username}/following",
|
|
383
|
+
"GET /users/{username}/gists",
|
|
384
|
+
"GET /users/{username}/gpg_keys",
|
|
385
|
+
"GET /users/{username}/keys",
|
|
386
|
+
"GET /users/{username}/orgs",
|
|
387
|
+
"GET /users/{username}/packages",
|
|
388
|
+
"GET /users/{username}/projects",
|
|
389
|
+
"GET /users/{username}/received_events",
|
|
390
|
+
"GET /users/{username}/received_events/public",
|
|
391
|
+
"GET /users/{username}/repos",
|
|
392
|
+
"GET /users/{username}/social_accounts",
|
|
393
|
+
"GET /users/{username}/ssh_signing_keys",
|
|
394
|
+
"GET /users/{username}/starred",
|
|
395
|
+
"GET /users/{username}/subscriptions"
|
|
396
|
+
];
|
|
397
|
+
function isPaginatingEndpoint(arg) {
|
|
398
|
+
if (typeof arg === "string") {
|
|
399
|
+
return paginatingEndpoints.includes(arg);
|
|
400
|
+
} else {
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function paginateRest2(octokit) {
|
|
405
|
+
return {
|
|
406
|
+
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
407
|
+
iterator: iterator.bind(null, octokit)
|
|
408
|
+
})
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
paginateRest2.VERSION = VERSION7;
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js
|
|
416
|
+
var require_dist_node2 = __commonJS({
|
|
417
|
+
"../node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js"(exports2, module2) {
|
|
418
|
+
"use strict";
|
|
419
|
+
var __defProp2 = Object.defineProperty;
|
|
420
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
421
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
422
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
423
|
+
var __export2 = (target, all) => {
|
|
424
|
+
for (var name in all)
|
|
425
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
426
|
+
};
|
|
427
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
428
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
429
|
+
for (let key of __getOwnPropNames2(from))
|
|
430
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
431
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
432
|
+
}
|
|
433
|
+
return to;
|
|
434
|
+
};
|
|
435
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
436
|
+
var dist_src_exports = {};
|
|
437
|
+
__export2(dist_src_exports, {
|
|
438
|
+
legacyRestEndpointMethods: () => legacyRestEndpointMethods2,
|
|
439
|
+
restEndpointMethods: () => restEndpointMethods
|
|
440
|
+
});
|
|
441
|
+
module2.exports = __toCommonJS2(dist_src_exports);
|
|
442
|
+
var VERSION7 = "13.2.2";
|
|
443
|
+
var Endpoints = {
|
|
444
|
+
actions: {
|
|
445
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
446
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
447
|
+
],
|
|
448
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
449
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
450
|
+
],
|
|
451
|
+
addSelectedRepoToOrgSecret: [
|
|
452
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
453
|
+
],
|
|
454
|
+
addSelectedRepoToOrgVariable: [
|
|
455
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
456
|
+
],
|
|
457
|
+
approveWorkflowRun: [
|
|
458
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
459
|
+
],
|
|
460
|
+
cancelWorkflowRun: [
|
|
461
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
462
|
+
],
|
|
463
|
+
createEnvironmentVariable: [
|
|
464
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
465
|
+
],
|
|
466
|
+
createOrUpdateEnvironmentSecret: [
|
|
467
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
468
|
+
],
|
|
469
|
+
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
470
|
+
createOrUpdateRepoSecret: [
|
|
471
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
472
|
+
],
|
|
473
|
+
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
474
|
+
createRegistrationTokenForOrg: [
|
|
475
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
476
|
+
],
|
|
477
|
+
createRegistrationTokenForRepo: [
|
|
478
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
479
|
+
],
|
|
480
|
+
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
481
|
+
createRemoveTokenForRepo: [
|
|
482
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
483
|
+
],
|
|
484
|
+
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
485
|
+
createWorkflowDispatch: [
|
|
486
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
487
|
+
],
|
|
488
|
+
deleteActionsCacheById: [
|
|
489
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
490
|
+
],
|
|
491
|
+
deleteActionsCacheByKey: [
|
|
492
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
493
|
+
],
|
|
494
|
+
deleteArtifact: [
|
|
495
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
496
|
+
],
|
|
497
|
+
deleteEnvironmentSecret: [
|
|
498
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
499
|
+
],
|
|
500
|
+
deleteEnvironmentVariable: [
|
|
501
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
502
|
+
],
|
|
503
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
504
|
+
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
505
|
+
deleteRepoSecret: [
|
|
506
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
507
|
+
],
|
|
508
|
+
deleteRepoVariable: [
|
|
509
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
510
|
+
],
|
|
511
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
512
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
513
|
+
],
|
|
514
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
515
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
516
|
+
],
|
|
517
|
+
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
518
|
+
deleteWorkflowRunLogs: [
|
|
519
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
520
|
+
],
|
|
521
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
522
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
523
|
+
],
|
|
524
|
+
disableWorkflow: [
|
|
525
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
526
|
+
],
|
|
527
|
+
downloadArtifact: [
|
|
528
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
529
|
+
],
|
|
530
|
+
downloadJobLogsForWorkflowRun: [
|
|
531
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
532
|
+
],
|
|
533
|
+
downloadWorkflowRunAttemptLogs: [
|
|
534
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
535
|
+
],
|
|
536
|
+
downloadWorkflowRunLogs: [
|
|
537
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
538
|
+
],
|
|
539
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
540
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
541
|
+
],
|
|
542
|
+
enableWorkflow: [
|
|
543
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
544
|
+
],
|
|
545
|
+
forceCancelWorkflowRun: [
|
|
546
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
|
547
|
+
],
|
|
548
|
+
generateRunnerJitconfigForOrg: [
|
|
549
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
550
|
+
],
|
|
551
|
+
generateRunnerJitconfigForRepo: [
|
|
552
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
553
|
+
],
|
|
554
|
+
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
555
|
+
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
556
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
557
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
558
|
+
],
|
|
559
|
+
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
560
|
+
getAllowedActionsOrganization: [
|
|
561
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
562
|
+
],
|
|
563
|
+
getAllowedActionsRepository: [
|
|
564
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
565
|
+
],
|
|
566
|
+
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
567
|
+
getCustomOidcSubClaimForRepo: [
|
|
568
|
+
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
569
|
+
],
|
|
570
|
+
getEnvironmentPublicKey: [
|
|
571
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
|
572
|
+
],
|
|
573
|
+
getEnvironmentSecret: [
|
|
574
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
575
|
+
],
|
|
576
|
+
getEnvironmentVariable: [
|
|
577
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
578
|
+
],
|
|
579
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
580
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
581
|
+
],
|
|
582
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
583
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
584
|
+
],
|
|
585
|
+
getGithubActionsPermissionsOrganization: [
|
|
586
|
+
"GET /orgs/{org}/actions/permissions"
|
|
587
|
+
],
|
|
588
|
+
getGithubActionsPermissionsRepository: [
|
|
589
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
590
|
+
],
|
|
591
|
+
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
592
|
+
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
593
|
+
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
594
|
+
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
595
|
+
getPendingDeploymentsForRun: [
|
|
596
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
597
|
+
],
|
|
598
|
+
getRepoPermissions: [
|
|
599
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
600
|
+
{},
|
|
601
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
602
|
+
],
|
|
603
|
+
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
604
|
+
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
605
|
+
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
606
|
+
getReviewsForRun: [
|
|
607
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
608
|
+
],
|
|
609
|
+
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
610
|
+
getSelfHostedRunnerForRepo: [
|
|
611
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
612
|
+
],
|
|
613
|
+
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
614
|
+
getWorkflowAccessToRepository: [
|
|
615
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
616
|
+
],
|
|
617
|
+
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
618
|
+
getWorkflowRunAttempt: [
|
|
619
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
620
|
+
],
|
|
621
|
+
getWorkflowRunUsage: [
|
|
622
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
623
|
+
],
|
|
624
|
+
getWorkflowUsage: [
|
|
625
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
626
|
+
],
|
|
627
|
+
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
628
|
+
listEnvironmentSecrets: [
|
|
629
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
630
|
+
],
|
|
631
|
+
listEnvironmentVariables: [
|
|
632
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
633
|
+
],
|
|
634
|
+
listJobsForWorkflowRun: [
|
|
635
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
636
|
+
],
|
|
637
|
+
listJobsForWorkflowRunAttempt: [
|
|
638
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
639
|
+
],
|
|
640
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
641
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
642
|
+
],
|
|
643
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
644
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
645
|
+
],
|
|
646
|
+
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
647
|
+
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
648
|
+
listRepoOrganizationSecrets: [
|
|
649
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
650
|
+
],
|
|
651
|
+
listRepoOrganizationVariables: [
|
|
652
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
653
|
+
],
|
|
654
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
655
|
+
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
656
|
+
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
657
|
+
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
658
|
+
listRunnerApplicationsForRepo: [
|
|
659
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
660
|
+
],
|
|
661
|
+
listSelectedReposForOrgSecret: [
|
|
662
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
663
|
+
],
|
|
664
|
+
listSelectedReposForOrgVariable: [
|
|
665
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
666
|
+
],
|
|
667
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
668
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
669
|
+
],
|
|
670
|
+
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
671
|
+
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
672
|
+
listWorkflowRunArtifacts: [
|
|
673
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
674
|
+
],
|
|
675
|
+
listWorkflowRuns: [
|
|
676
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
677
|
+
],
|
|
678
|
+
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
679
|
+
reRunJobForWorkflowRun: [
|
|
680
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
681
|
+
],
|
|
682
|
+
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
683
|
+
reRunWorkflowFailedJobs: [
|
|
684
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
685
|
+
],
|
|
686
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
687
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
688
|
+
],
|
|
689
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
690
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
691
|
+
],
|
|
692
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
693
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
694
|
+
],
|
|
695
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
696
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
697
|
+
],
|
|
698
|
+
removeSelectedRepoFromOrgSecret: [
|
|
699
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
700
|
+
],
|
|
701
|
+
removeSelectedRepoFromOrgVariable: [
|
|
702
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
703
|
+
],
|
|
704
|
+
reviewCustomGatesForRun: [
|
|
705
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
706
|
+
],
|
|
707
|
+
reviewPendingDeploymentsForRun: [
|
|
708
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
709
|
+
],
|
|
710
|
+
setAllowedActionsOrganization: [
|
|
711
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
712
|
+
],
|
|
713
|
+
setAllowedActionsRepository: [
|
|
714
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
715
|
+
],
|
|
716
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
717
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
718
|
+
],
|
|
719
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
720
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
721
|
+
],
|
|
722
|
+
setCustomOidcSubClaimForRepo: [
|
|
723
|
+
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
724
|
+
],
|
|
725
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
726
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
727
|
+
],
|
|
728
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
729
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
730
|
+
],
|
|
731
|
+
setGithubActionsPermissionsOrganization: [
|
|
732
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
733
|
+
],
|
|
734
|
+
setGithubActionsPermissionsRepository: [
|
|
735
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
736
|
+
],
|
|
737
|
+
setSelectedReposForOrgSecret: [
|
|
738
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
739
|
+
],
|
|
740
|
+
setSelectedReposForOrgVariable: [
|
|
741
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
742
|
+
],
|
|
743
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
744
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
745
|
+
],
|
|
746
|
+
setWorkflowAccessToRepository: [
|
|
747
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
748
|
+
],
|
|
749
|
+
updateEnvironmentVariable: [
|
|
750
|
+
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
751
|
+
],
|
|
752
|
+
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
753
|
+
updateRepoVariable: [
|
|
754
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
755
|
+
]
|
|
756
|
+
},
|
|
757
|
+
activity: {
|
|
758
|
+
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
759
|
+
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
760
|
+
deleteThreadSubscription: [
|
|
761
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
762
|
+
],
|
|
763
|
+
getFeeds: ["GET /feeds"],
|
|
764
|
+
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
765
|
+
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
766
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
767
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
768
|
+
],
|
|
769
|
+
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
770
|
+
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
771
|
+
listOrgEventsForAuthenticatedUser: [
|
|
772
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
773
|
+
],
|
|
774
|
+
listPublicEvents: ["GET /events"],
|
|
775
|
+
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
776
|
+
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
777
|
+
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
778
|
+
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
779
|
+
listReceivedPublicEventsForUser: [
|
|
780
|
+
"GET /users/{username}/received_events/public"
|
|
781
|
+
],
|
|
782
|
+
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
783
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
784
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
785
|
+
],
|
|
786
|
+
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
787
|
+
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
788
|
+
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
789
|
+
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
|
790
|
+
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
|
791
|
+
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
|
792
|
+
markNotificationsAsRead: ["PUT /notifications"],
|
|
793
|
+
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
794
|
+
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
|
795
|
+
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
796
|
+
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
797
|
+
setThreadSubscription: [
|
|
798
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
799
|
+
],
|
|
800
|
+
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
801
|
+
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
802
|
+
},
|
|
803
|
+
apps: {
|
|
804
|
+
addRepoToInstallation: [
|
|
805
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
806
|
+
{},
|
|
807
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
808
|
+
],
|
|
809
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
810
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
811
|
+
],
|
|
812
|
+
checkToken: ["POST /applications/{client_id}/token"],
|
|
813
|
+
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
814
|
+
createInstallationAccessToken: [
|
|
815
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
816
|
+
],
|
|
817
|
+
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
818
|
+
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
819
|
+
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
820
|
+
getAuthenticated: ["GET /app"],
|
|
821
|
+
getBySlug: ["GET /apps/{app_slug}"],
|
|
822
|
+
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
823
|
+
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
824
|
+
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
825
|
+
getSubscriptionPlanForAccount: [
|
|
826
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
827
|
+
],
|
|
828
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
829
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
830
|
+
],
|
|
831
|
+
getUserInstallation: ["GET /users/{username}/installation"],
|
|
832
|
+
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
833
|
+
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
834
|
+
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
835
|
+
listAccountsForPlanStubbed: [
|
|
836
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
837
|
+
],
|
|
838
|
+
listInstallationReposForAuthenticatedUser: [
|
|
839
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
840
|
+
],
|
|
841
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
842
|
+
"GET /app/installation-requests"
|
|
843
|
+
],
|
|
844
|
+
listInstallations: ["GET /app/installations"],
|
|
845
|
+
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
846
|
+
listPlans: ["GET /marketplace_listing/plans"],
|
|
847
|
+
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
848
|
+
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
849
|
+
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
850
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
851
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
852
|
+
],
|
|
853
|
+
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
854
|
+
redeliverWebhookDelivery: [
|
|
855
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
856
|
+
],
|
|
857
|
+
removeRepoFromInstallation: [
|
|
858
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
859
|
+
{},
|
|
860
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
861
|
+
],
|
|
862
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
863
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
864
|
+
],
|
|
865
|
+
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
866
|
+
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
867
|
+
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
868
|
+
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
869
|
+
unsuspendInstallation: [
|
|
870
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
871
|
+
],
|
|
872
|
+
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
873
|
+
},
|
|
874
|
+
billing: {
|
|
875
|
+
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
876
|
+
getGithubActionsBillingUser: [
|
|
877
|
+
"GET /users/{username}/settings/billing/actions"
|
|
878
|
+
],
|
|
879
|
+
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
880
|
+
getGithubPackagesBillingUser: [
|
|
881
|
+
"GET /users/{username}/settings/billing/packages"
|
|
882
|
+
],
|
|
883
|
+
getSharedStorageBillingOrg: [
|
|
884
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
885
|
+
],
|
|
886
|
+
getSharedStorageBillingUser: [
|
|
887
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
888
|
+
]
|
|
889
|
+
},
|
|
890
|
+
checks: {
|
|
891
|
+
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
892
|
+
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
893
|
+
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
894
|
+
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
895
|
+
listAnnotations: [
|
|
896
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
897
|
+
],
|
|
898
|
+
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
899
|
+
listForSuite: [
|
|
900
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
901
|
+
],
|
|
902
|
+
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
903
|
+
rerequestRun: [
|
|
904
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
905
|
+
],
|
|
906
|
+
rerequestSuite: [
|
|
907
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
908
|
+
],
|
|
909
|
+
setSuitesPreferences: [
|
|
910
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
911
|
+
],
|
|
912
|
+
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
913
|
+
},
|
|
914
|
+
codeScanning: {
|
|
915
|
+
deleteAnalysis: [
|
|
916
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
917
|
+
],
|
|
918
|
+
getAlert: [
|
|
919
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
920
|
+
{},
|
|
921
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
922
|
+
],
|
|
923
|
+
getAnalysis: [
|
|
924
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
925
|
+
],
|
|
926
|
+
getCodeqlDatabase: [
|
|
927
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
928
|
+
],
|
|
929
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
930
|
+
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
931
|
+
listAlertInstances: [
|
|
932
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
933
|
+
],
|
|
934
|
+
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
935
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
936
|
+
listAlertsInstances: [
|
|
937
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
938
|
+
{},
|
|
939
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
940
|
+
],
|
|
941
|
+
listCodeqlDatabases: [
|
|
942
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
943
|
+
],
|
|
944
|
+
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
945
|
+
updateAlert: [
|
|
946
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
947
|
+
],
|
|
948
|
+
updateDefaultSetup: [
|
|
949
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
950
|
+
],
|
|
951
|
+
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
952
|
+
},
|
|
953
|
+
codesOfConduct: {
|
|
954
|
+
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
|
955
|
+
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
956
|
+
},
|
|
957
|
+
codespaces: {
|
|
958
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
959
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
960
|
+
],
|
|
961
|
+
addSelectedRepoToOrgSecret: [
|
|
962
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
963
|
+
],
|
|
964
|
+
checkPermissionsForDevcontainer: [
|
|
965
|
+
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
|
966
|
+
],
|
|
967
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
968
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
969
|
+
],
|
|
970
|
+
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
971
|
+
createOrUpdateOrgSecret: [
|
|
972
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
973
|
+
],
|
|
974
|
+
createOrUpdateRepoSecret: [
|
|
975
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
976
|
+
],
|
|
977
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
978
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
979
|
+
],
|
|
980
|
+
createWithPrForAuthenticatedUser: [
|
|
981
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
982
|
+
],
|
|
983
|
+
createWithRepoForAuthenticatedUser: [
|
|
984
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
985
|
+
],
|
|
986
|
+
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
987
|
+
deleteFromOrganization: [
|
|
988
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
989
|
+
],
|
|
990
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
991
|
+
deleteRepoSecret: [
|
|
992
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
993
|
+
],
|
|
994
|
+
deleteSecretForAuthenticatedUser: [
|
|
995
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
996
|
+
],
|
|
997
|
+
exportForAuthenticatedUser: [
|
|
998
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
999
|
+
],
|
|
1000
|
+
getCodespacesForUserInOrg: [
|
|
1001
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
1002
|
+
],
|
|
1003
|
+
getExportDetailsForAuthenticatedUser: [
|
|
1004
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
1005
|
+
],
|
|
1006
|
+
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
1007
|
+
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
1008
|
+
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
1009
|
+
getPublicKeyForAuthenticatedUser: [
|
|
1010
|
+
"GET /user/codespaces/secrets/public-key"
|
|
1011
|
+
],
|
|
1012
|
+
getRepoPublicKey: [
|
|
1013
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
1014
|
+
],
|
|
1015
|
+
getRepoSecret: [
|
|
1016
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
1017
|
+
],
|
|
1018
|
+
getSecretForAuthenticatedUser: [
|
|
1019
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
1020
|
+
],
|
|
1021
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
1022
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
1023
|
+
],
|
|
1024
|
+
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
1025
|
+
listInOrganization: [
|
|
1026
|
+
"GET /orgs/{org}/codespaces",
|
|
1027
|
+
{},
|
|
1028
|
+
{ renamedParameters: { org_id: "org" } }
|
|
1029
|
+
],
|
|
1030
|
+
listInRepositoryForAuthenticatedUser: [
|
|
1031
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
1032
|
+
],
|
|
1033
|
+
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
1034
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
1035
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
1036
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
1037
|
+
],
|
|
1038
|
+
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
1039
|
+
listSelectedReposForOrgSecret: [
|
|
1040
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
1041
|
+
],
|
|
1042
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
1043
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
1044
|
+
],
|
|
1045
|
+
publishForAuthenticatedUser: [
|
|
1046
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
1047
|
+
],
|
|
1048
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
1049
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
1050
|
+
],
|
|
1051
|
+
removeSelectedRepoFromOrgSecret: [
|
|
1052
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
1053
|
+
],
|
|
1054
|
+
repoMachinesForAuthenticatedUser: [
|
|
1055
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
1056
|
+
],
|
|
1057
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
1058
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
1059
|
+
],
|
|
1060
|
+
setSelectedReposForOrgSecret: [
|
|
1061
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
1062
|
+
],
|
|
1063
|
+
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
1064
|
+
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
1065
|
+
stopInOrganization: [
|
|
1066
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
1067
|
+
],
|
|
1068
|
+
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
1069
|
+
},
|
|
1070
|
+
copilot: {
|
|
1071
|
+
addCopilotSeatsForTeams: [
|
|
1072
|
+
"POST /orgs/{org}/copilot/billing/selected_teams"
|
|
1073
|
+
],
|
|
1074
|
+
addCopilotSeatsForUsers: [
|
|
1075
|
+
"POST /orgs/{org}/copilot/billing/selected_users"
|
|
1076
|
+
],
|
|
1077
|
+
cancelCopilotSeatAssignmentForTeams: [
|
|
1078
|
+
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
|
1079
|
+
],
|
|
1080
|
+
cancelCopilotSeatAssignmentForUsers: [
|
|
1081
|
+
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
|
1082
|
+
],
|
|
1083
|
+
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
|
1084
|
+
getCopilotSeatDetailsForUser: [
|
|
1085
|
+
"GET /orgs/{org}/members/{username}/copilot"
|
|
1086
|
+
],
|
|
1087
|
+
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
1088
|
+
usageMetricsForEnterprise: ["GET /enterprises/{enterprise}/copilot/usage"],
|
|
1089
|
+
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
1090
|
+
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
1091
|
+
},
|
|
1092
|
+
dependabot: {
|
|
1093
|
+
addSelectedRepoToOrgSecret: [
|
|
1094
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
1095
|
+
],
|
|
1096
|
+
createOrUpdateOrgSecret: [
|
|
1097
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
1098
|
+
],
|
|
1099
|
+
createOrUpdateRepoSecret: [
|
|
1100
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
1101
|
+
],
|
|
1102
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
1103
|
+
deleteRepoSecret: [
|
|
1104
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
1105
|
+
],
|
|
1106
|
+
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
1107
|
+
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
1108
|
+
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
1109
|
+
getRepoPublicKey: [
|
|
1110
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
1111
|
+
],
|
|
1112
|
+
getRepoSecret: [
|
|
1113
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
1114
|
+
],
|
|
1115
|
+
listAlertsForEnterprise: [
|
|
1116
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
1117
|
+
],
|
|
1118
|
+
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
1119
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
1120
|
+
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
1121
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
1122
|
+
listSelectedReposForOrgSecret: [
|
|
1123
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
1124
|
+
],
|
|
1125
|
+
removeSelectedRepoFromOrgSecret: [
|
|
1126
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
1127
|
+
],
|
|
1128
|
+
setSelectedReposForOrgSecret: [
|
|
1129
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
1130
|
+
],
|
|
1131
|
+
updateAlert: [
|
|
1132
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
1133
|
+
]
|
|
1134
|
+
},
|
|
1135
|
+
dependencyGraph: {
|
|
1136
|
+
createRepositorySnapshot: [
|
|
1137
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
1138
|
+
],
|
|
1139
|
+
diffRange: [
|
|
1140
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
1141
|
+
],
|
|
1142
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
1143
|
+
},
|
|
1144
|
+
emojis: { get: ["GET /emojis"] },
|
|
1145
|
+
gists: {
|
|
1146
|
+
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
1147
|
+
create: ["POST /gists"],
|
|
1148
|
+
createComment: ["POST /gists/{gist_id}/comments"],
|
|
1149
|
+
delete: ["DELETE /gists/{gist_id}"],
|
|
1150
|
+
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
|
1151
|
+
fork: ["POST /gists/{gist_id}/forks"],
|
|
1152
|
+
get: ["GET /gists/{gist_id}"],
|
|
1153
|
+
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
|
1154
|
+
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
|
1155
|
+
list: ["GET /gists"],
|
|
1156
|
+
listComments: ["GET /gists/{gist_id}/comments"],
|
|
1157
|
+
listCommits: ["GET /gists/{gist_id}/commits"],
|
|
1158
|
+
listForUser: ["GET /users/{username}/gists"],
|
|
1159
|
+
listForks: ["GET /gists/{gist_id}/forks"],
|
|
1160
|
+
listPublic: ["GET /gists/public"],
|
|
1161
|
+
listStarred: ["GET /gists/starred"],
|
|
1162
|
+
star: ["PUT /gists/{gist_id}/star"],
|
|
1163
|
+
unstar: ["DELETE /gists/{gist_id}/star"],
|
|
1164
|
+
update: ["PATCH /gists/{gist_id}"],
|
|
1165
|
+
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
|
1166
|
+
},
|
|
1167
|
+
git: {
|
|
1168
|
+
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
|
1169
|
+
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
|
1170
|
+
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
|
1171
|
+
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
|
1172
|
+
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
|
1173
|
+
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
|
1174
|
+
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
|
1175
|
+
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
|
1176
|
+
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
|
1177
|
+
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
|
1178
|
+
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
|
1179
|
+
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
|
1180
|
+
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
|
1181
|
+
},
|
|
1182
|
+
gitignore: {
|
|
1183
|
+
getAllTemplates: ["GET /gitignore/templates"],
|
|
1184
|
+
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
1185
|
+
},
|
|
1186
|
+
interactions: {
|
|
1187
|
+
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
1188
|
+
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
1189
|
+
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
1190
|
+
getRestrictionsForYourPublicRepos: [
|
|
1191
|
+
"GET /user/interaction-limits",
|
|
1192
|
+
{},
|
|
1193
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
1194
|
+
],
|
|
1195
|
+
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
1196
|
+
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
1197
|
+
removeRestrictionsForRepo: [
|
|
1198
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
1199
|
+
],
|
|
1200
|
+
removeRestrictionsForYourPublicRepos: [
|
|
1201
|
+
"DELETE /user/interaction-limits",
|
|
1202
|
+
{},
|
|
1203
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
1204
|
+
],
|
|
1205
|
+
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
1206
|
+
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
1207
|
+
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
1208
|
+
setRestrictionsForYourPublicRepos: [
|
|
1209
|
+
"PUT /user/interaction-limits",
|
|
1210
|
+
{},
|
|
1211
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
issues: {
|
|
1215
|
+
addAssignees: [
|
|
1216
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
1217
|
+
],
|
|
1218
|
+
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
1219
|
+
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
1220
|
+
checkUserCanBeAssignedToIssue: [
|
|
1221
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
1222
|
+
],
|
|
1223
|
+
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
1224
|
+
createComment: [
|
|
1225
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
1226
|
+
],
|
|
1227
|
+
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
1228
|
+
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
1229
|
+
deleteComment: [
|
|
1230
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
1231
|
+
],
|
|
1232
|
+
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
1233
|
+
deleteMilestone: [
|
|
1234
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
1235
|
+
],
|
|
1236
|
+
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
1237
|
+
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
1238
|
+
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
1239
|
+
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
1240
|
+
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
1241
|
+
list: ["GET /issues"],
|
|
1242
|
+
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
1243
|
+
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
1244
|
+
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
1245
|
+
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
1246
|
+
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
1247
|
+
listEventsForTimeline: [
|
|
1248
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
1249
|
+
],
|
|
1250
|
+
listForAuthenticatedUser: ["GET /user/issues"],
|
|
1251
|
+
listForOrg: ["GET /orgs/{org}/issues"],
|
|
1252
|
+
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
1253
|
+
listLabelsForMilestone: [
|
|
1254
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
1255
|
+
],
|
|
1256
|
+
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
1257
|
+
listLabelsOnIssue: [
|
|
1258
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
1259
|
+
],
|
|
1260
|
+
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
1261
|
+
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
1262
|
+
removeAllLabels: [
|
|
1263
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
1264
|
+
],
|
|
1265
|
+
removeAssignees: [
|
|
1266
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
1267
|
+
],
|
|
1268
|
+
removeLabel: [
|
|
1269
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
1270
|
+
],
|
|
1271
|
+
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
1272
|
+
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
1273
|
+
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
1274
|
+
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
1275
|
+
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
1276
|
+
updateMilestone: [
|
|
1277
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
licenses: {
|
|
1281
|
+
get: ["GET /licenses/{license}"],
|
|
1282
|
+
getAllCommonlyUsed: ["GET /licenses"],
|
|
1283
|
+
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
|
1284
|
+
},
|
|
1285
|
+
markdown: {
|
|
1286
|
+
render: ["POST /markdown"],
|
|
1287
|
+
renderRaw: [
|
|
1288
|
+
"POST /markdown/raw",
|
|
1289
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
meta: {
|
|
1293
|
+
get: ["GET /meta"],
|
|
1294
|
+
getAllVersions: ["GET /versions"],
|
|
1295
|
+
getOctocat: ["GET /octocat"],
|
|
1296
|
+
getZen: ["GET /zen"],
|
|
1297
|
+
root: ["GET /"]
|
|
1298
|
+
},
|
|
1299
|
+
migrations: {
|
|
1300
|
+
deleteArchiveForAuthenticatedUser: [
|
|
1301
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
1302
|
+
],
|
|
1303
|
+
deleteArchiveForOrg: [
|
|
1304
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
1305
|
+
],
|
|
1306
|
+
downloadArchiveForOrg: [
|
|
1307
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
1308
|
+
],
|
|
1309
|
+
getArchiveForAuthenticatedUser: [
|
|
1310
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
1311
|
+
],
|
|
1312
|
+
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
|
1313
|
+
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
1314
|
+
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
1315
|
+
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
1316
|
+
listReposForAuthenticatedUser: [
|
|
1317
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
1318
|
+
],
|
|
1319
|
+
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
1320
|
+
listReposForUser: [
|
|
1321
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
1322
|
+
{},
|
|
1323
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
1324
|
+
],
|
|
1325
|
+
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
1326
|
+
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
1327
|
+
unlockRepoForAuthenticatedUser: [
|
|
1328
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
1329
|
+
],
|
|
1330
|
+
unlockRepoForOrg: [
|
|
1331
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
1332
|
+
]
|
|
1333
|
+
},
|
|
1334
|
+
oidc: {
|
|
1335
|
+
getOidcCustomSubTemplateForOrg: [
|
|
1336
|
+
"GET /orgs/{org}/actions/oidc/customization/sub"
|
|
1337
|
+
],
|
|
1338
|
+
updateOidcCustomSubTemplateForOrg: [
|
|
1339
|
+
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
orgs: {
|
|
1343
|
+
addSecurityManagerTeam: [
|
|
1344
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
|
1345
|
+
],
|
|
1346
|
+
assignTeamToOrgRole: [
|
|
1347
|
+
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
1348
|
+
],
|
|
1349
|
+
assignUserToOrgRole: [
|
|
1350
|
+
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
1351
|
+
],
|
|
1352
|
+
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
1353
|
+
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
1354
|
+
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
1355
|
+
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
1356
|
+
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
1357
|
+
convertMemberToOutsideCollaborator: [
|
|
1358
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
1359
|
+
],
|
|
1360
|
+
createCustomOrganizationRole: ["POST /orgs/{org}/organization-roles"],
|
|
1361
|
+
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
1362
|
+
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
1363
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
1364
|
+
"PATCH /orgs/{org}/properties/values"
|
|
1365
|
+
],
|
|
1366
|
+
createOrUpdateCustomProperty: [
|
|
1367
|
+
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
1368
|
+
],
|
|
1369
|
+
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
1370
|
+
delete: ["DELETE /orgs/{org}"],
|
|
1371
|
+
deleteCustomOrganizationRole: [
|
|
1372
|
+
"DELETE /orgs/{org}/organization-roles/{role_id}"
|
|
1373
|
+
],
|
|
1374
|
+
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
1375
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
1376
|
+
"POST /orgs/{org}/{security_product}/{enablement}"
|
|
1377
|
+
],
|
|
1378
|
+
get: ["GET /orgs/{org}"],
|
|
1379
|
+
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
1380
|
+
getCustomProperty: [
|
|
1381
|
+
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
1382
|
+
],
|
|
1383
|
+
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
1384
|
+
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
1385
|
+
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
1386
|
+
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
1387
|
+
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
1388
|
+
getWebhookDelivery: [
|
|
1389
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
1390
|
+
],
|
|
1391
|
+
list: ["GET /organizations"],
|
|
1392
|
+
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
1393
|
+
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
1394
|
+
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
1395
|
+
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
1396
|
+
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
1397
|
+
listForUser: ["GET /users/{username}/orgs"],
|
|
1398
|
+
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
1399
|
+
listMembers: ["GET /orgs/{org}/members"],
|
|
1400
|
+
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
1401
|
+
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
1402
|
+
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
|
1403
|
+
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
|
1404
|
+
listOrganizationFineGrainedPermissions: [
|
|
1405
|
+
"GET /orgs/{org}/organization-fine-grained-permissions"
|
|
1406
|
+
],
|
|
1407
|
+
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
1408
|
+
listPatGrantRepositories: [
|
|
1409
|
+
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
1410
|
+
],
|
|
1411
|
+
listPatGrantRequestRepositories: [
|
|
1412
|
+
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
1413
|
+
],
|
|
1414
|
+
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
|
1415
|
+
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
|
1416
|
+
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
1417
|
+
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
1418
|
+
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
|
1419
|
+
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
1420
|
+
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
1421
|
+
patchCustomOrganizationRole: [
|
|
1422
|
+
"PATCH /orgs/{org}/organization-roles/{role_id}"
|
|
1423
|
+
],
|
|
1424
|
+
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
1425
|
+
redeliverWebhookDelivery: [
|
|
1426
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
1427
|
+
],
|
|
1428
|
+
removeCustomProperty: [
|
|
1429
|
+
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
1430
|
+
],
|
|
1431
|
+
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
1432
|
+
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
1433
|
+
removeOutsideCollaborator: [
|
|
1434
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
1435
|
+
],
|
|
1436
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
1437
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
1438
|
+
],
|
|
1439
|
+
removeSecurityManagerTeam: [
|
|
1440
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
|
1441
|
+
],
|
|
1442
|
+
reviewPatGrantRequest: [
|
|
1443
|
+
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
1444
|
+
],
|
|
1445
|
+
reviewPatGrantRequestsInBulk: [
|
|
1446
|
+
"POST /orgs/{org}/personal-access-token-requests"
|
|
1447
|
+
],
|
|
1448
|
+
revokeAllOrgRolesTeam: [
|
|
1449
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
|
1450
|
+
],
|
|
1451
|
+
revokeAllOrgRolesUser: [
|
|
1452
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
|
1453
|
+
],
|
|
1454
|
+
revokeOrgRoleTeam: [
|
|
1455
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
1456
|
+
],
|
|
1457
|
+
revokeOrgRoleUser: [
|
|
1458
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
1459
|
+
],
|
|
1460
|
+
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
1461
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
1462
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
1463
|
+
],
|
|
1464
|
+
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
1465
|
+
update: ["PATCH /orgs/{org}"],
|
|
1466
|
+
updateMembershipForAuthenticatedUser: [
|
|
1467
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
1468
|
+
],
|
|
1469
|
+
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
|
1470
|
+
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
|
1471
|
+
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
1472
|
+
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
1473
|
+
},
|
|
1474
|
+
packages: {
|
|
1475
|
+
deletePackageForAuthenticatedUser: [
|
|
1476
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
1477
|
+
],
|
|
1478
|
+
deletePackageForOrg: [
|
|
1479
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
1480
|
+
],
|
|
1481
|
+
deletePackageForUser: [
|
|
1482
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
1483
|
+
],
|
|
1484
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
1485
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1486
|
+
],
|
|
1487
|
+
deletePackageVersionForOrg: [
|
|
1488
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1489
|
+
],
|
|
1490
|
+
deletePackageVersionForUser: [
|
|
1491
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1492
|
+
],
|
|
1493
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
1494
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
1495
|
+
{},
|
|
1496
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
1497
|
+
],
|
|
1498
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
1499
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
1500
|
+
{},
|
|
1501
|
+
{
|
|
1502
|
+
renamed: [
|
|
1503
|
+
"packages",
|
|
1504
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
1505
|
+
]
|
|
1506
|
+
}
|
|
1507
|
+
],
|
|
1508
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
1509
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
1510
|
+
],
|
|
1511
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
1512
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
1513
|
+
],
|
|
1514
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
1515
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
1516
|
+
],
|
|
1517
|
+
getPackageForAuthenticatedUser: [
|
|
1518
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
1519
|
+
],
|
|
1520
|
+
getPackageForOrganization: [
|
|
1521
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
1522
|
+
],
|
|
1523
|
+
getPackageForUser: [
|
|
1524
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
1525
|
+
],
|
|
1526
|
+
getPackageVersionForAuthenticatedUser: [
|
|
1527
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1528
|
+
],
|
|
1529
|
+
getPackageVersionForOrganization: [
|
|
1530
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1531
|
+
],
|
|
1532
|
+
getPackageVersionForUser: [
|
|
1533
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
1534
|
+
],
|
|
1535
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
1536
|
+
"GET /user/docker/conflicts"
|
|
1537
|
+
],
|
|
1538
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
1539
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
1540
|
+
],
|
|
1541
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
1542
|
+
"GET /users/{username}/docker/conflicts"
|
|
1543
|
+
],
|
|
1544
|
+
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
1545
|
+
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
1546
|
+
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
1547
|
+
restorePackageForAuthenticatedUser: [
|
|
1548
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
1549
|
+
],
|
|
1550
|
+
restorePackageForOrg: [
|
|
1551
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
1552
|
+
],
|
|
1553
|
+
restorePackageForUser: [
|
|
1554
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
1555
|
+
],
|
|
1556
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
1557
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1558
|
+
],
|
|
1559
|
+
restorePackageVersionForOrg: [
|
|
1560
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1561
|
+
],
|
|
1562
|
+
restorePackageVersionForUser: [
|
|
1563
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
1564
|
+
]
|
|
1565
|
+
},
|
|
1566
|
+
projects: {
|
|
1567
|
+
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
1568
|
+
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
1569
|
+
createColumn: ["POST /projects/{project_id}/columns"],
|
|
1570
|
+
createForAuthenticatedUser: ["POST /user/projects"],
|
|
1571
|
+
createForOrg: ["POST /orgs/{org}/projects"],
|
|
1572
|
+
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
1573
|
+
delete: ["DELETE /projects/{project_id}"],
|
|
1574
|
+
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
1575
|
+
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
1576
|
+
get: ["GET /projects/{project_id}"],
|
|
1577
|
+
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
1578
|
+
getColumn: ["GET /projects/columns/{column_id}"],
|
|
1579
|
+
getPermissionForUser: [
|
|
1580
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
1581
|
+
],
|
|
1582
|
+
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
1583
|
+
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
1584
|
+
listColumns: ["GET /projects/{project_id}/columns"],
|
|
1585
|
+
listForOrg: ["GET /orgs/{org}/projects"],
|
|
1586
|
+
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
1587
|
+
listForUser: ["GET /users/{username}/projects"],
|
|
1588
|
+
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
1589
|
+
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
1590
|
+
removeCollaborator: [
|
|
1591
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
1592
|
+
],
|
|
1593
|
+
update: ["PATCH /projects/{project_id}"],
|
|
1594
|
+
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
1595
|
+
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
1596
|
+
},
|
|
1597
|
+
pulls: {
|
|
1598
|
+
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
1599
|
+
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
1600
|
+
createReplyForReviewComment: [
|
|
1601
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
1602
|
+
],
|
|
1603
|
+
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
1604
|
+
createReviewComment: [
|
|
1605
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
1606
|
+
],
|
|
1607
|
+
deletePendingReview: [
|
|
1608
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
1609
|
+
],
|
|
1610
|
+
deleteReviewComment: [
|
|
1611
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
1612
|
+
],
|
|
1613
|
+
dismissReview: [
|
|
1614
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
1615
|
+
],
|
|
1616
|
+
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
1617
|
+
getReview: [
|
|
1618
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
1619
|
+
],
|
|
1620
|
+
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
1621
|
+
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
1622
|
+
listCommentsForReview: [
|
|
1623
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
1624
|
+
],
|
|
1625
|
+
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
1626
|
+
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
1627
|
+
listRequestedReviewers: [
|
|
1628
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
1629
|
+
],
|
|
1630
|
+
listReviewComments: [
|
|
1631
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
1632
|
+
],
|
|
1633
|
+
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
1634
|
+
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
1635
|
+
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
1636
|
+
removeRequestedReviewers: [
|
|
1637
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
1638
|
+
],
|
|
1639
|
+
requestReviewers: [
|
|
1640
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
1641
|
+
],
|
|
1642
|
+
submitReview: [
|
|
1643
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
1644
|
+
],
|
|
1645
|
+
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
1646
|
+
updateBranch: [
|
|
1647
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
1648
|
+
],
|
|
1649
|
+
updateReview: [
|
|
1650
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
1651
|
+
],
|
|
1652
|
+
updateReviewComment: [
|
|
1653
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
1654
|
+
]
|
|
1655
|
+
},
|
|
1656
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
1657
|
+
reactions: {
|
|
1658
|
+
createForCommitComment: [
|
|
1659
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
1660
|
+
],
|
|
1661
|
+
createForIssue: [
|
|
1662
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
1663
|
+
],
|
|
1664
|
+
createForIssueComment: [
|
|
1665
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
1666
|
+
],
|
|
1667
|
+
createForPullRequestReviewComment: [
|
|
1668
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
1669
|
+
],
|
|
1670
|
+
createForRelease: [
|
|
1671
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
1672
|
+
],
|
|
1673
|
+
createForTeamDiscussionCommentInOrg: [
|
|
1674
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
1675
|
+
],
|
|
1676
|
+
createForTeamDiscussionInOrg: [
|
|
1677
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
1678
|
+
],
|
|
1679
|
+
deleteForCommitComment: [
|
|
1680
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
1681
|
+
],
|
|
1682
|
+
deleteForIssue: [
|
|
1683
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
1684
|
+
],
|
|
1685
|
+
deleteForIssueComment: [
|
|
1686
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
1687
|
+
],
|
|
1688
|
+
deleteForPullRequestComment: [
|
|
1689
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
1690
|
+
],
|
|
1691
|
+
deleteForRelease: [
|
|
1692
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
1693
|
+
],
|
|
1694
|
+
deleteForTeamDiscussion: [
|
|
1695
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
1696
|
+
],
|
|
1697
|
+
deleteForTeamDiscussionComment: [
|
|
1698
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
1699
|
+
],
|
|
1700
|
+
listForCommitComment: [
|
|
1701
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
1702
|
+
],
|
|
1703
|
+
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
1704
|
+
listForIssueComment: [
|
|
1705
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
1706
|
+
],
|
|
1707
|
+
listForPullRequestReviewComment: [
|
|
1708
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
1709
|
+
],
|
|
1710
|
+
listForRelease: [
|
|
1711
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
1712
|
+
],
|
|
1713
|
+
listForTeamDiscussionCommentInOrg: [
|
|
1714
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
1715
|
+
],
|
|
1716
|
+
listForTeamDiscussionInOrg: [
|
|
1717
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
repos: {
|
|
1721
|
+
acceptInvitation: [
|
|
1722
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
1723
|
+
{},
|
|
1724
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
1725
|
+
],
|
|
1726
|
+
acceptInvitationForAuthenticatedUser: [
|
|
1727
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
1728
|
+
],
|
|
1729
|
+
addAppAccessRestrictions: [
|
|
1730
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
1731
|
+
{},
|
|
1732
|
+
{ mapToData: "apps" }
|
|
1733
|
+
],
|
|
1734
|
+
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
1735
|
+
addStatusCheckContexts: [
|
|
1736
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
1737
|
+
{},
|
|
1738
|
+
{ mapToData: "contexts" }
|
|
1739
|
+
],
|
|
1740
|
+
addTeamAccessRestrictions: [
|
|
1741
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
1742
|
+
{},
|
|
1743
|
+
{ mapToData: "teams" }
|
|
1744
|
+
],
|
|
1745
|
+
addUserAccessRestrictions: [
|
|
1746
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
1747
|
+
{},
|
|
1748
|
+
{ mapToData: "users" }
|
|
1749
|
+
],
|
|
1750
|
+
cancelPagesDeployment: [
|
|
1751
|
+
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
|
1752
|
+
],
|
|
1753
|
+
checkAutomatedSecurityFixes: [
|
|
1754
|
+
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
1755
|
+
],
|
|
1756
|
+
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
1757
|
+
checkPrivateVulnerabilityReporting: [
|
|
1758
|
+
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
1759
|
+
],
|
|
1760
|
+
checkVulnerabilityAlerts: [
|
|
1761
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
1762
|
+
],
|
|
1763
|
+
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
1764
|
+
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
1765
|
+
compareCommitsWithBasehead: [
|
|
1766
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
1767
|
+
],
|
|
1768
|
+
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
1769
|
+
createCommitComment: [
|
|
1770
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
1771
|
+
],
|
|
1772
|
+
createCommitSignatureProtection: [
|
|
1773
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
1774
|
+
],
|
|
1775
|
+
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
1776
|
+
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
1777
|
+
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
1778
|
+
createDeploymentBranchPolicy: [
|
|
1779
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
1780
|
+
],
|
|
1781
|
+
createDeploymentProtectionRule: [
|
|
1782
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
1783
|
+
],
|
|
1784
|
+
createDeploymentStatus: [
|
|
1785
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
1786
|
+
],
|
|
1787
|
+
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
1788
|
+
createForAuthenticatedUser: ["POST /user/repos"],
|
|
1789
|
+
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
1790
|
+
createInOrg: ["POST /orgs/{org}/repos"],
|
|
1791
|
+
createOrUpdateCustomPropertiesValues: [
|
|
1792
|
+
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
1793
|
+
],
|
|
1794
|
+
createOrUpdateEnvironment: [
|
|
1795
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
1796
|
+
],
|
|
1797
|
+
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
1798
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
1799
|
+
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
|
1800
|
+
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
1801
|
+
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
1802
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
1803
|
+
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
|
1804
|
+
createUsingTemplate: [
|
|
1805
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
1806
|
+
],
|
|
1807
|
+
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
1808
|
+
declineInvitation: [
|
|
1809
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
1810
|
+
{},
|
|
1811
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
1812
|
+
],
|
|
1813
|
+
declineInvitationForAuthenticatedUser: [
|
|
1814
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
1815
|
+
],
|
|
1816
|
+
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
1817
|
+
deleteAccessRestrictions: [
|
|
1818
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
1819
|
+
],
|
|
1820
|
+
deleteAdminBranchProtection: [
|
|
1821
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
1822
|
+
],
|
|
1823
|
+
deleteAnEnvironment: [
|
|
1824
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
1825
|
+
],
|
|
1826
|
+
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
1827
|
+
deleteBranchProtection: [
|
|
1828
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
1829
|
+
],
|
|
1830
|
+
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
1831
|
+
deleteCommitSignatureProtection: [
|
|
1832
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
1833
|
+
],
|
|
1834
|
+
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
1835
|
+
deleteDeployment: [
|
|
1836
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
1837
|
+
],
|
|
1838
|
+
deleteDeploymentBranchPolicy: [
|
|
1839
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
1840
|
+
],
|
|
1841
|
+
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
1842
|
+
deleteInvitation: [
|
|
1843
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
1844
|
+
],
|
|
1845
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
1846
|
+
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
1847
|
+
deletePullRequestReviewProtection: [
|
|
1848
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
1849
|
+
],
|
|
1850
|
+
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
1851
|
+
deleteReleaseAsset: [
|
|
1852
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
1853
|
+
],
|
|
1854
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
1855
|
+
deleteTagProtection: [
|
|
1856
|
+
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
|
1857
|
+
],
|
|
1858
|
+
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
1859
|
+
disableAutomatedSecurityFixes: [
|
|
1860
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
1861
|
+
],
|
|
1862
|
+
disableDeploymentProtectionRule: [
|
|
1863
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
1864
|
+
],
|
|
1865
|
+
disablePrivateVulnerabilityReporting: [
|
|
1866
|
+
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
1867
|
+
],
|
|
1868
|
+
disableVulnerabilityAlerts: [
|
|
1869
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
1870
|
+
],
|
|
1871
|
+
downloadArchive: [
|
|
1872
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
1873
|
+
{},
|
|
1874
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
1875
|
+
],
|
|
1876
|
+
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
1877
|
+
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
1878
|
+
enableAutomatedSecurityFixes: [
|
|
1879
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
1880
|
+
],
|
|
1881
|
+
enablePrivateVulnerabilityReporting: [
|
|
1882
|
+
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
1883
|
+
],
|
|
1884
|
+
enableVulnerabilityAlerts: [
|
|
1885
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
1886
|
+
],
|
|
1887
|
+
generateReleaseNotes: [
|
|
1888
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
1889
|
+
],
|
|
1890
|
+
get: ["GET /repos/{owner}/{repo}"],
|
|
1891
|
+
getAccessRestrictions: [
|
|
1892
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
1893
|
+
],
|
|
1894
|
+
getAdminBranchProtection: [
|
|
1895
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
1896
|
+
],
|
|
1897
|
+
getAllDeploymentProtectionRules: [
|
|
1898
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
1899
|
+
],
|
|
1900
|
+
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
1901
|
+
getAllStatusCheckContexts: [
|
|
1902
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
1903
|
+
],
|
|
1904
|
+
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
1905
|
+
getAppsWithAccessToProtectedBranch: [
|
|
1906
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
1907
|
+
],
|
|
1908
|
+
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
1909
|
+
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
1910
|
+
getBranchProtection: [
|
|
1911
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
1912
|
+
],
|
|
1913
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
1914
|
+
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
1915
|
+
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
1916
|
+
getCollaboratorPermissionLevel: [
|
|
1917
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
1918
|
+
],
|
|
1919
|
+
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
1920
|
+
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
1921
|
+
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
1922
|
+
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
1923
|
+
getCommitSignatureProtection: [
|
|
1924
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
1925
|
+
],
|
|
1926
|
+
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
1927
|
+
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
1928
|
+
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
1929
|
+
getCustomDeploymentProtectionRule: [
|
|
1930
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
1931
|
+
],
|
|
1932
|
+
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
1933
|
+
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
1934
|
+
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
1935
|
+
getDeploymentBranchPolicy: [
|
|
1936
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
1937
|
+
],
|
|
1938
|
+
getDeploymentStatus: [
|
|
1939
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
1940
|
+
],
|
|
1941
|
+
getEnvironment: [
|
|
1942
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
1943
|
+
],
|
|
1944
|
+
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
1945
|
+
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
1946
|
+
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
|
1947
|
+
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
|
1948
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
1949
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
1950
|
+
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
1951
|
+
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
1952
|
+
getPagesDeployment: [
|
|
1953
|
+
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
|
1954
|
+
],
|
|
1955
|
+
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
1956
|
+
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
1957
|
+
getPullRequestReviewProtection: [
|
|
1958
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
1959
|
+
],
|
|
1960
|
+
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
1961
|
+
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
1962
|
+
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
1963
|
+
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
1964
|
+
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
1965
|
+
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
1966
|
+
getRepoRuleSuite: [
|
|
1967
|
+
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
|
1968
|
+
],
|
|
1969
|
+
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
1970
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
1971
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
1972
|
+
getStatusChecksProtection: [
|
|
1973
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
1974
|
+
],
|
|
1975
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
1976
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
1977
|
+
],
|
|
1978
|
+
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
1979
|
+
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
1980
|
+
getUsersWithAccessToProtectedBranch: [
|
|
1981
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
1982
|
+
],
|
|
1983
|
+
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
1984
|
+
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
1985
|
+
getWebhookConfigForRepo: [
|
|
1986
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
1987
|
+
],
|
|
1988
|
+
getWebhookDelivery: [
|
|
1989
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
1990
|
+
],
|
|
1991
|
+
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
|
1992
|
+
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
1993
|
+
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
1994
|
+
listBranchesForHeadCommit: [
|
|
1995
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
1996
|
+
],
|
|
1997
|
+
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
1998
|
+
listCommentsForCommit: [
|
|
1999
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
2000
|
+
],
|
|
2001
|
+
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
2002
|
+
listCommitStatusesForRef: [
|
|
2003
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
2004
|
+
],
|
|
2005
|
+
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
2006
|
+
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
2007
|
+
listCustomDeploymentRuleIntegrations: [
|
|
2008
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
2009
|
+
],
|
|
2010
|
+
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
2011
|
+
listDeploymentBranchPolicies: [
|
|
2012
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
2013
|
+
],
|
|
2014
|
+
listDeploymentStatuses: [
|
|
2015
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
2016
|
+
],
|
|
2017
|
+
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
2018
|
+
listForAuthenticatedUser: ["GET /user/repos"],
|
|
2019
|
+
listForOrg: ["GET /orgs/{org}/repos"],
|
|
2020
|
+
listForUser: ["GET /users/{username}/repos"],
|
|
2021
|
+
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
|
2022
|
+
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
|
2023
|
+
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
|
2024
|
+
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
2025
|
+
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
2026
|
+
listPublic: ["GET /repositories"],
|
|
2027
|
+
listPullRequestsAssociatedWithCommit: [
|
|
2028
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
2029
|
+
],
|
|
2030
|
+
listReleaseAssets: [
|
|
2031
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
2032
|
+
],
|
|
2033
|
+
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
2034
|
+
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
|
2035
|
+
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
2036
|
+
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
2037
|
+
listWebhookDeliveries: [
|
|
2038
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
2039
|
+
],
|
|
2040
|
+
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
2041
|
+
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
2042
|
+
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
2043
|
+
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
2044
|
+
redeliverWebhookDelivery: [
|
|
2045
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
2046
|
+
],
|
|
2047
|
+
removeAppAccessRestrictions: [
|
|
2048
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
2049
|
+
{},
|
|
2050
|
+
{ mapToData: "apps" }
|
|
2051
|
+
],
|
|
2052
|
+
removeCollaborator: [
|
|
2053
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
2054
|
+
],
|
|
2055
|
+
removeStatusCheckContexts: [
|
|
2056
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
2057
|
+
{},
|
|
2058
|
+
{ mapToData: "contexts" }
|
|
2059
|
+
],
|
|
2060
|
+
removeStatusCheckProtection: [
|
|
2061
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
2062
|
+
],
|
|
2063
|
+
removeTeamAccessRestrictions: [
|
|
2064
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
2065
|
+
{},
|
|
2066
|
+
{ mapToData: "teams" }
|
|
2067
|
+
],
|
|
2068
|
+
removeUserAccessRestrictions: [
|
|
2069
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
2070
|
+
{},
|
|
2071
|
+
{ mapToData: "users" }
|
|
2072
|
+
],
|
|
2073
|
+
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
2074
|
+
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
2075
|
+
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
2076
|
+
setAdminBranchProtection: [
|
|
2077
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
2078
|
+
],
|
|
2079
|
+
setAppAccessRestrictions: [
|
|
2080
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
2081
|
+
{},
|
|
2082
|
+
{ mapToData: "apps" }
|
|
2083
|
+
],
|
|
2084
|
+
setStatusCheckContexts: [
|
|
2085
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
2086
|
+
{},
|
|
2087
|
+
{ mapToData: "contexts" }
|
|
2088
|
+
],
|
|
2089
|
+
setTeamAccessRestrictions: [
|
|
2090
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
2091
|
+
{},
|
|
2092
|
+
{ mapToData: "teams" }
|
|
2093
|
+
],
|
|
2094
|
+
setUserAccessRestrictions: [
|
|
2095
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
2096
|
+
{},
|
|
2097
|
+
{ mapToData: "users" }
|
|
2098
|
+
],
|
|
2099
|
+
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
2100
|
+
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
2101
|
+
update: ["PATCH /repos/{owner}/{repo}"],
|
|
2102
|
+
updateBranchProtection: [
|
|
2103
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
2104
|
+
],
|
|
2105
|
+
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
2106
|
+
updateDeploymentBranchPolicy: [
|
|
2107
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
2108
|
+
],
|
|
2109
|
+
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
2110
|
+
updateInvitation: [
|
|
2111
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
2112
|
+
],
|
|
2113
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
2114
|
+
updatePullRequestReviewProtection: [
|
|
2115
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
2116
|
+
],
|
|
2117
|
+
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
2118
|
+
updateReleaseAsset: [
|
|
2119
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
2120
|
+
],
|
|
2121
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
2122
|
+
updateStatusCheckPotection: [
|
|
2123
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
2124
|
+
{},
|
|
2125
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
2126
|
+
],
|
|
2127
|
+
updateStatusCheckProtection: [
|
|
2128
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
2129
|
+
],
|
|
2130
|
+
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
2131
|
+
updateWebhookConfigForRepo: [
|
|
2132
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
2133
|
+
],
|
|
2134
|
+
uploadReleaseAsset: [
|
|
2135
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
2136
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
2137
|
+
]
|
|
2138
|
+
},
|
|
2139
|
+
search: {
|
|
2140
|
+
code: ["GET /search/code"],
|
|
2141
|
+
commits: ["GET /search/commits"],
|
|
2142
|
+
issuesAndPullRequests: ["GET /search/issues"],
|
|
2143
|
+
labels: ["GET /search/labels"],
|
|
2144
|
+
repos: ["GET /search/repositories"],
|
|
2145
|
+
topics: ["GET /search/topics"],
|
|
2146
|
+
users: ["GET /search/users"]
|
|
2147
|
+
},
|
|
2148
|
+
secretScanning: {
|
|
2149
|
+
getAlert: [
|
|
2150
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
2151
|
+
],
|
|
2152
|
+
listAlertsForEnterprise: [
|
|
2153
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
2154
|
+
],
|
|
2155
|
+
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
2156
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
2157
|
+
listLocationsForAlert: [
|
|
2158
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
2159
|
+
],
|
|
2160
|
+
updateAlert: [
|
|
2161
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
2162
|
+
]
|
|
2163
|
+
},
|
|
2164
|
+
securityAdvisories: {
|
|
2165
|
+
createFork: [
|
|
2166
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
2167
|
+
],
|
|
2168
|
+
createPrivateVulnerabilityReport: [
|
|
2169
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
2170
|
+
],
|
|
2171
|
+
createRepositoryAdvisory: [
|
|
2172
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
2173
|
+
],
|
|
2174
|
+
createRepositoryAdvisoryCveRequest: [
|
|
2175
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
2176
|
+
],
|
|
2177
|
+
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
|
2178
|
+
getRepositoryAdvisory: [
|
|
2179
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
2180
|
+
],
|
|
2181
|
+
listGlobalAdvisories: ["GET /advisories"],
|
|
2182
|
+
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
|
2183
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
2184
|
+
updateRepositoryAdvisory: [
|
|
2185
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
2186
|
+
]
|
|
2187
|
+
},
|
|
2188
|
+
teams: {
|
|
2189
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
2190
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
2191
|
+
],
|
|
2192
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
2193
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
2194
|
+
],
|
|
2195
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
2196
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
2197
|
+
],
|
|
2198
|
+
checkPermissionsForProjectInOrg: [
|
|
2199
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
2200
|
+
],
|
|
2201
|
+
checkPermissionsForRepoInOrg: [
|
|
2202
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
2203
|
+
],
|
|
2204
|
+
create: ["POST /orgs/{org}/teams"],
|
|
2205
|
+
createDiscussionCommentInOrg: [
|
|
2206
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
2207
|
+
],
|
|
2208
|
+
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
2209
|
+
deleteDiscussionCommentInOrg: [
|
|
2210
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
2211
|
+
],
|
|
2212
|
+
deleteDiscussionInOrg: [
|
|
2213
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
2214
|
+
],
|
|
2215
|
+
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
2216
|
+
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
2217
|
+
getDiscussionCommentInOrg: [
|
|
2218
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
2219
|
+
],
|
|
2220
|
+
getDiscussionInOrg: [
|
|
2221
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
2222
|
+
],
|
|
2223
|
+
getMembershipForUserInOrg: [
|
|
2224
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
2225
|
+
],
|
|
2226
|
+
list: ["GET /orgs/{org}/teams"],
|
|
2227
|
+
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
2228
|
+
listDiscussionCommentsInOrg: [
|
|
2229
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
2230
|
+
],
|
|
2231
|
+
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
2232
|
+
listForAuthenticatedUser: ["GET /user/teams"],
|
|
2233
|
+
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
2234
|
+
listPendingInvitationsInOrg: [
|
|
2235
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
2236
|
+
],
|
|
2237
|
+
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
2238
|
+
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
2239
|
+
removeMembershipForUserInOrg: [
|
|
2240
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
2241
|
+
],
|
|
2242
|
+
removeProjectInOrg: [
|
|
2243
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
2244
|
+
],
|
|
2245
|
+
removeRepoInOrg: [
|
|
2246
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
2247
|
+
],
|
|
2248
|
+
updateDiscussionCommentInOrg: [
|
|
2249
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
2250
|
+
],
|
|
2251
|
+
updateDiscussionInOrg: [
|
|
2252
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
2253
|
+
],
|
|
2254
|
+
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
2255
|
+
},
|
|
2256
|
+
users: {
|
|
2257
|
+
addEmailForAuthenticated: [
|
|
2258
|
+
"POST /user/emails",
|
|
2259
|
+
{},
|
|
2260
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
2261
|
+
],
|
|
2262
|
+
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
2263
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
2264
|
+
block: ["PUT /user/blocks/{username}"],
|
|
2265
|
+
checkBlocked: ["GET /user/blocks/{username}"],
|
|
2266
|
+
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
2267
|
+
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
2268
|
+
createGpgKeyForAuthenticated: [
|
|
2269
|
+
"POST /user/gpg_keys",
|
|
2270
|
+
{},
|
|
2271
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
2272
|
+
],
|
|
2273
|
+
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
2274
|
+
createPublicSshKeyForAuthenticated: [
|
|
2275
|
+
"POST /user/keys",
|
|
2276
|
+
{},
|
|
2277
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
2278
|
+
],
|
|
2279
|
+
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
2280
|
+
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
2281
|
+
deleteEmailForAuthenticated: [
|
|
2282
|
+
"DELETE /user/emails",
|
|
2283
|
+
{},
|
|
2284
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
2285
|
+
],
|
|
2286
|
+
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
2287
|
+
deleteGpgKeyForAuthenticated: [
|
|
2288
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
2289
|
+
{},
|
|
2290
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
2291
|
+
],
|
|
2292
|
+
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
2293
|
+
deletePublicSshKeyForAuthenticated: [
|
|
2294
|
+
"DELETE /user/keys/{key_id}",
|
|
2295
|
+
{},
|
|
2296
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
2297
|
+
],
|
|
2298
|
+
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
2299
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
2300
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
2301
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
2302
|
+
],
|
|
2303
|
+
follow: ["PUT /user/following/{username}"],
|
|
2304
|
+
getAuthenticated: ["GET /user"],
|
|
2305
|
+
getByUsername: ["GET /users/{username}"],
|
|
2306
|
+
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
2307
|
+
getGpgKeyForAuthenticated: [
|
|
2308
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
2309
|
+
{},
|
|
2310
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
2311
|
+
],
|
|
2312
|
+
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
2313
|
+
getPublicSshKeyForAuthenticated: [
|
|
2314
|
+
"GET /user/keys/{key_id}",
|
|
2315
|
+
{},
|
|
2316
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
2317
|
+
],
|
|
2318
|
+
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
2319
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
2320
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
2321
|
+
],
|
|
2322
|
+
list: ["GET /users"],
|
|
2323
|
+
listBlockedByAuthenticated: [
|
|
2324
|
+
"GET /user/blocks",
|
|
2325
|
+
{},
|
|
2326
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
2327
|
+
],
|
|
2328
|
+
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
2329
|
+
listEmailsForAuthenticated: [
|
|
2330
|
+
"GET /user/emails",
|
|
2331
|
+
{},
|
|
2332
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
2333
|
+
],
|
|
2334
|
+
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
2335
|
+
listFollowedByAuthenticated: [
|
|
2336
|
+
"GET /user/following",
|
|
2337
|
+
{},
|
|
2338
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
2339
|
+
],
|
|
2340
|
+
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
2341
|
+
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
2342
|
+
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
2343
|
+
listFollowingForUser: ["GET /users/{username}/following"],
|
|
2344
|
+
listGpgKeysForAuthenticated: [
|
|
2345
|
+
"GET /user/gpg_keys",
|
|
2346
|
+
{},
|
|
2347
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
2348
|
+
],
|
|
2349
|
+
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
2350
|
+
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
2351
|
+
listPublicEmailsForAuthenticated: [
|
|
2352
|
+
"GET /user/public_emails",
|
|
2353
|
+
{},
|
|
2354
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
2355
|
+
],
|
|
2356
|
+
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
2357
|
+
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
2358
|
+
listPublicSshKeysForAuthenticated: [
|
|
2359
|
+
"GET /user/keys",
|
|
2360
|
+
{},
|
|
2361
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
2362
|
+
],
|
|
2363
|
+
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
2364
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
2365
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
2366
|
+
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
2367
|
+
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
2368
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
2369
|
+
"PATCH /user/email/visibility",
|
|
2370
|
+
{},
|
|
2371
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
2372
|
+
],
|
|
2373
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
2374
|
+
"PATCH /user/email/visibility"
|
|
2375
|
+
],
|
|
2376
|
+
unblock: ["DELETE /user/blocks/{username}"],
|
|
2377
|
+
unfollow: ["DELETE /user/following/{username}"],
|
|
2378
|
+
updateAuthenticated: ["PATCH /user"]
|
|
2379
|
+
}
|
|
2380
|
+
};
|
|
2381
|
+
var endpoints_default = Endpoints;
|
|
2382
|
+
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
2383
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
2384
|
+
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
2385
|
+
const [route, defaults, decorations] = endpoint2;
|
|
2386
|
+
const [method, url] = route.split(/ /);
|
|
2387
|
+
const endpointDefaults = Object.assign(
|
|
2388
|
+
{
|
|
2389
|
+
method,
|
|
2390
|
+
url
|
|
2391
|
+
},
|
|
2392
|
+
defaults
|
|
2393
|
+
);
|
|
2394
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
2395
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
2396
|
+
}
|
|
2397
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
2398
|
+
scope,
|
|
2399
|
+
methodName,
|
|
2400
|
+
endpointDefaults,
|
|
2401
|
+
decorations
|
|
2402
|
+
});
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
var handler = {
|
|
2406
|
+
has({ scope }, methodName) {
|
|
2407
|
+
return endpointMethodsMap.get(scope).has(methodName);
|
|
2408
|
+
},
|
|
2409
|
+
getOwnPropertyDescriptor(target, methodName) {
|
|
2410
|
+
return {
|
|
2411
|
+
value: this.get(target, methodName),
|
|
2412
|
+
// ensures method is in the cache
|
|
2413
|
+
configurable: true,
|
|
2414
|
+
writable: true,
|
|
2415
|
+
enumerable: true
|
|
2416
|
+
};
|
|
2417
|
+
},
|
|
2418
|
+
defineProperty(target, methodName, descriptor) {
|
|
2419
|
+
Object.defineProperty(target.cache, methodName, descriptor);
|
|
2420
|
+
return true;
|
|
2421
|
+
},
|
|
2422
|
+
deleteProperty(target, methodName) {
|
|
2423
|
+
delete target.cache[methodName];
|
|
2424
|
+
return true;
|
|
2425
|
+
},
|
|
2426
|
+
ownKeys({ scope }) {
|
|
2427
|
+
return [...endpointMethodsMap.get(scope).keys()];
|
|
2428
|
+
},
|
|
2429
|
+
set(target, methodName, value) {
|
|
2430
|
+
return target.cache[methodName] = value;
|
|
2431
|
+
},
|
|
2432
|
+
get({ octokit, scope, cache }, methodName) {
|
|
2433
|
+
if (cache[methodName]) {
|
|
2434
|
+
return cache[methodName];
|
|
2435
|
+
}
|
|
2436
|
+
const method = endpointMethodsMap.get(scope).get(methodName);
|
|
2437
|
+
if (!method) {
|
|
2438
|
+
return void 0;
|
|
2439
|
+
}
|
|
2440
|
+
const { endpointDefaults, decorations } = method;
|
|
2441
|
+
if (decorations) {
|
|
2442
|
+
cache[methodName] = decorate(
|
|
2443
|
+
octokit,
|
|
2444
|
+
scope,
|
|
2445
|
+
methodName,
|
|
2446
|
+
endpointDefaults,
|
|
2447
|
+
decorations
|
|
2448
|
+
);
|
|
2449
|
+
} else {
|
|
2450
|
+
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
|
2451
|
+
}
|
|
2452
|
+
return cache[methodName];
|
|
2453
|
+
}
|
|
2454
|
+
};
|
|
2455
|
+
function endpointsToMethods(octokit) {
|
|
2456
|
+
const newMethods = {};
|
|
2457
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
2458
|
+
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
|
2459
|
+
}
|
|
2460
|
+
return newMethods;
|
|
2461
|
+
}
|
|
2462
|
+
function decorate(octokit, scope, methodName, defaults, decorations) {
|
|
2463
|
+
const requestWithDefaults = octokit.request.defaults(defaults);
|
|
2464
|
+
function withDecorations(...args) {
|
|
2465
|
+
let options = requestWithDefaults.endpoint.merge(...args);
|
|
2466
|
+
if (decorations.mapToData) {
|
|
2467
|
+
options = Object.assign({}, options, {
|
|
2468
|
+
data: options[decorations.mapToData],
|
|
2469
|
+
[decorations.mapToData]: void 0
|
|
2470
|
+
});
|
|
2471
|
+
return requestWithDefaults(options);
|
|
2472
|
+
}
|
|
2473
|
+
if (decorations.renamed) {
|
|
2474
|
+
const [newScope, newMethodName] = decorations.renamed;
|
|
2475
|
+
octokit.log.warn(
|
|
2476
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
2477
|
+
);
|
|
2478
|
+
}
|
|
2479
|
+
if (decorations.deprecated) {
|
|
2480
|
+
octokit.log.warn(decorations.deprecated);
|
|
2481
|
+
}
|
|
2482
|
+
if (decorations.renamedParameters) {
|
|
2483
|
+
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
2484
|
+
for (const [name, alias] of Object.entries(
|
|
2485
|
+
decorations.renamedParameters
|
|
2486
|
+
)) {
|
|
2487
|
+
if (name in options2) {
|
|
2488
|
+
octokit.log.warn(
|
|
2489
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
2490
|
+
);
|
|
2491
|
+
if (!(alias in options2)) {
|
|
2492
|
+
options2[alias] = options2[name];
|
|
2493
|
+
}
|
|
2494
|
+
delete options2[name];
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
return requestWithDefaults(options2);
|
|
2498
|
+
}
|
|
2499
|
+
return requestWithDefaults(...args);
|
|
2500
|
+
}
|
|
2501
|
+
return Object.assign(withDecorations, requestWithDefaults);
|
|
2502
|
+
}
|
|
2503
|
+
function restEndpointMethods(octokit) {
|
|
2504
|
+
const api = endpointsToMethods(octokit);
|
|
2505
|
+
return {
|
|
2506
|
+
rest: api
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
restEndpointMethods.VERSION = VERSION7;
|
|
2510
|
+
function legacyRestEndpointMethods2(octokit) {
|
|
2511
|
+
const api = endpointsToMethods(octokit);
|
|
2512
|
+
return {
|
|
2513
|
+
...api,
|
|
2514
|
+
rest: api
|
|
2515
|
+
};
|
|
2516
|
+
}
|
|
2517
|
+
legacyRestEndpointMethods2.VERSION = VERSION7;
|
|
2518
|
+
}
|
|
2519
|
+
});
|
|
2520
|
+
|
|
30
2521
|
// dist/index.js
|
|
31
2522
|
var dist_exports = {};
|
|
32
2523
|
__export(dist_exports, {
|
|
@@ -5449,7 +7940,987 @@ function getBinaryName(name) {
|
|
|
5449
7940
|
var import_node_child_process6 = require("node:child_process");
|
|
5450
7941
|
var import_node_fs4 = require("node:fs");
|
|
5451
7942
|
var import_node_path6 = require("node:path");
|
|
5452
|
-
|
|
7943
|
+
|
|
7944
|
+
// ../node_modules/@octokit/rest/node_modules/universal-user-agent/index.js
|
|
7945
|
+
function getUserAgent() {
|
|
7946
|
+
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
7947
|
+
return navigator.userAgent;
|
|
7948
|
+
}
|
|
7949
|
+
if (typeof process === "object" && process.version !== void 0) {
|
|
7950
|
+
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
|
7951
|
+
}
|
|
7952
|
+
return "<environment undetectable>";
|
|
7953
|
+
}
|
|
7954
|
+
|
|
7955
|
+
// ../node_modules/@octokit/rest/node_modules/before-after-hook/lib/register.js
|
|
7956
|
+
function register(state, name, method, options) {
|
|
7957
|
+
if (typeof method !== "function") {
|
|
7958
|
+
throw new Error("method for before hook must be a function");
|
|
7959
|
+
}
|
|
7960
|
+
if (!options) {
|
|
7961
|
+
options = {};
|
|
7962
|
+
}
|
|
7963
|
+
if (Array.isArray(name)) {
|
|
7964
|
+
return name.reverse().reduce((callback, name2) => {
|
|
7965
|
+
return register.bind(null, state, name2, callback, options);
|
|
7966
|
+
}, method)();
|
|
7967
|
+
}
|
|
7968
|
+
return Promise.resolve().then(() => {
|
|
7969
|
+
if (!state.registry[name]) {
|
|
7970
|
+
return method(options);
|
|
7971
|
+
}
|
|
7972
|
+
return state.registry[name].reduce((method2, registered) => {
|
|
7973
|
+
return registered.hook.bind(null, method2, options);
|
|
7974
|
+
}, method)();
|
|
7975
|
+
});
|
|
7976
|
+
}
|
|
7977
|
+
|
|
7978
|
+
// ../node_modules/@octokit/rest/node_modules/before-after-hook/lib/add.js
|
|
7979
|
+
function addHook(state, kind, name, hook2) {
|
|
7980
|
+
const orig = hook2;
|
|
7981
|
+
if (!state.registry[name]) {
|
|
7982
|
+
state.registry[name] = [];
|
|
7983
|
+
}
|
|
7984
|
+
if (kind === "before") {
|
|
7985
|
+
hook2 = (method, options) => {
|
|
7986
|
+
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
7987
|
+
};
|
|
7988
|
+
}
|
|
7989
|
+
if (kind === "after") {
|
|
7990
|
+
hook2 = (method, options) => {
|
|
7991
|
+
let result;
|
|
7992
|
+
return Promise.resolve().then(method.bind(null, options)).then((result_) => {
|
|
7993
|
+
result = result_;
|
|
7994
|
+
return orig(result, options);
|
|
7995
|
+
}).then(() => {
|
|
7996
|
+
return result;
|
|
7997
|
+
});
|
|
7998
|
+
};
|
|
7999
|
+
}
|
|
8000
|
+
if (kind === "error") {
|
|
8001
|
+
hook2 = (method, options) => {
|
|
8002
|
+
return Promise.resolve().then(method.bind(null, options)).catch((error) => {
|
|
8003
|
+
return orig(error, options);
|
|
8004
|
+
});
|
|
8005
|
+
};
|
|
8006
|
+
}
|
|
8007
|
+
state.registry[name].push({
|
|
8008
|
+
hook: hook2,
|
|
8009
|
+
orig
|
|
8010
|
+
});
|
|
8011
|
+
}
|
|
8012
|
+
|
|
8013
|
+
// ../node_modules/@octokit/rest/node_modules/before-after-hook/lib/remove.js
|
|
8014
|
+
function removeHook(state, name, method) {
|
|
8015
|
+
if (!state.registry[name]) {
|
|
8016
|
+
return;
|
|
8017
|
+
}
|
|
8018
|
+
const index = state.registry[name].map((registered) => {
|
|
8019
|
+
return registered.orig;
|
|
8020
|
+
}).indexOf(method);
|
|
8021
|
+
if (index === -1) {
|
|
8022
|
+
return;
|
|
8023
|
+
}
|
|
8024
|
+
state.registry[name].splice(index, 1);
|
|
8025
|
+
}
|
|
8026
|
+
|
|
8027
|
+
// ../node_modules/@octokit/rest/node_modules/before-after-hook/index.js
|
|
8028
|
+
var bind = Function.bind;
|
|
8029
|
+
var bindable = bind.bind(bind);
|
|
8030
|
+
function bindApi(hook2, state, name) {
|
|
8031
|
+
const removeHookRef = bindable(removeHook, null).apply(
|
|
8032
|
+
null,
|
|
8033
|
+
name ? [state, name] : [state]
|
|
8034
|
+
);
|
|
8035
|
+
hook2.api = { remove: removeHookRef };
|
|
8036
|
+
hook2.remove = removeHookRef;
|
|
8037
|
+
["before", "error", "after", "wrap"].forEach((kind) => {
|
|
8038
|
+
const args = name ? [state, kind, name] : [state, kind];
|
|
8039
|
+
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
8040
|
+
});
|
|
8041
|
+
}
|
|
8042
|
+
function Singular() {
|
|
8043
|
+
const singularHookName = Symbol("Singular");
|
|
8044
|
+
const singularHookState = {
|
|
8045
|
+
registry: {}
|
|
8046
|
+
};
|
|
8047
|
+
const singularHook = register.bind(null, singularHookState, singularHookName);
|
|
8048
|
+
bindApi(singularHook, singularHookState, singularHookName);
|
|
8049
|
+
return singularHook;
|
|
8050
|
+
}
|
|
8051
|
+
function Collection() {
|
|
8052
|
+
const state = {
|
|
8053
|
+
registry: {}
|
|
8054
|
+
};
|
|
8055
|
+
const hook2 = register.bind(null, state);
|
|
8056
|
+
bindApi(hook2, state);
|
|
8057
|
+
return hook2;
|
|
8058
|
+
}
|
|
8059
|
+
var before_after_hook_default = { Singular, Collection };
|
|
8060
|
+
|
|
8061
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
8062
|
+
var VERSION = "0.0.0-development";
|
|
8063
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
8064
|
+
var DEFAULTS = {
|
|
8065
|
+
method: "GET",
|
|
8066
|
+
baseUrl: "https://api.github.com",
|
|
8067
|
+
headers: {
|
|
8068
|
+
accept: "application/vnd.github.v3+json",
|
|
8069
|
+
"user-agent": userAgent
|
|
8070
|
+
},
|
|
8071
|
+
mediaType: {
|
|
8072
|
+
format: ""
|
|
8073
|
+
}
|
|
8074
|
+
};
|
|
8075
|
+
function lowercaseKeys(object) {
|
|
8076
|
+
if (!object) {
|
|
8077
|
+
return {};
|
|
8078
|
+
}
|
|
8079
|
+
return Object.keys(object).reduce((newObj, key) => {
|
|
8080
|
+
newObj[key.toLowerCase()] = object[key];
|
|
8081
|
+
return newObj;
|
|
8082
|
+
}, {});
|
|
8083
|
+
}
|
|
8084
|
+
function isPlainObject2(value) {
|
|
8085
|
+
if (typeof value !== "object" || value === null)
|
|
8086
|
+
return false;
|
|
8087
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
8088
|
+
return false;
|
|
8089
|
+
const proto = Object.getPrototypeOf(value);
|
|
8090
|
+
if (proto === null)
|
|
8091
|
+
return true;
|
|
8092
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
8093
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
8094
|
+
}
|
|
8095
|
+
function mergeDeep(defaults, options) {
|
|
8096
|
+
const result = Object.assign({}, defaults);
|
|
8097
|
+
Object.keys(options).forEach((key) => {
|
|
8098
|
+
if (isPlainObject2(options[key])) {
|
|
8099
|
+
if (!(key in defaults))
|
|
8100
|
+
Object.assign(result, { [key]: options[key] });
|
|
8101
|
+
else
|
|
8102
|
+
result[key] = mergeDeep(defaults[key], options[key]);
|
|
8103
|
+
} else {
|
|
8104
|
+
Object.assign(result, { [key]: options[key] });
|
|
8105
|
+
}
|
|
8106
|
+
});
|
|
8107
|
+
return result;
|
|
8108
|
+
}
|
|
8109
|
+
function removeUndefinedProperties(obj) {
|
|
8110
|
+
for (const key in obj) {
|
|
8111
|
+
if (obj[key] === void 0) {
|
|
8112
|
+
delete obj[key];
|
|
8113
|
+
}
|
|
8114
|
+
}
|
|
8115
|
+
return obj;
|
|
8116
|
+
}
|
|
8117
|
+
function merge2(defaults, route, options) {
|
|
8118
|
+
if (typeof route === "string") {
|
|
8119
|
+
let [method, url] = route.split(" ");
|
|
8120
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
8121
|
+
} else {
|
|
8122
|
+
options = Object.assign({}, route);
|
|
8123
|
+
}
|
|
8124
|
+
options.headers = lowercaseKeys(options.headers);
|
|
8125
|
+
removeUndefinedProperties(options);
|
|
8126
|
+
removeUndefinedProperties(options.headers);
|
|
8127
|
+
const mergedOptions = mergeDeep(defaults || {}, options);
|
|
8128
|
+
if (options.url === "/graphql") {
|
|
8129
|
+
if (defaults && defaults.mediaType.previews?.length) {
|
|
8130
|
+
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
|
8131
|
+
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
|
8132
|
+
).concat(mergedOptions.mediaType.previews);
|
|
8133
|
+
}
|
|
8134
|
+
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
|
8135
|
+
}
|
|
8136
|
+
return mergedOptions;
|
|
8137
|
+
}
|
|
8138
|
+
function addQueryParameters(url, parameters) {
|
|
8139
|
+
const separator = /\?/.test(url) ? "&" : "?";
|
|
8140
|
+
const names = Object.keys(parameters);
|
|
8141
|
+
if (names.length === 0) {
|
|
8142
|
+
return url;
|
|
8143
|
+
}
|
|
8144
|
+
return url + separator + names.map((name) => {
|
|
8145
|
+
if (name === "q") {
|
|
8146
|
+
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
8147
|
+
}
|
|
8148
|
+
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
8149
|
+
}).join("&");
|
|
8150
|
+
}
|
|
8151
|
+
var urlVariableRegex = /\{[^}]+\}/g;
|
|
8152
|
+
function removeNonChars(variableName) {
|
|
8153
|
+
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
|
8154
|
+
}
|
|
8155
|
+
function extractUrlVariableNames(url) {
|
|
8156
|
+
const matches = url.match(urlVariableRegex);
|
|
8157
|
+
if (!matches) {
|
|
8158
|
+
return [];
|
|
8159
|
+
}
|
|
8160
|
+
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
8161
|
+
}
|
|
8162
|
+
function omit2(object, keysToOmit) {
|
|
8163
|
+
const result = { __proto__: null };
|
|
8164
|
+
for (const key of Object.keys(object)) {
|
|
8165
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
8166
|
+
result[key] = object[key];
|
|
8167
|
+
}
|
|
8168
|
+
}
|
|
8169
|
+
return result;
|
|
8170
|
+
}
|
|
8171
|
+
function encodeReserved(str) {
|
|
8172
|
+
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
8173
|
+
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
8174
|
+
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
8175
|
+
}
|
|
8176
|
+
return part;
|
|
8177
|
+
}).join("");
|
|
8178
|
+
}
|
|
8179
|
+
function encodeUnreserved(str) {
|
|
8180
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
|
8181
|
+
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
8182
|
+
});
|
|
8183
|
+
}
|
|
8184
|
+
function encodeValue(operator, value, key) {
|
|
8185
|
+
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
|
8186
|
+
if (key) {
|
|
8187
|
+
return encodeUnreserved(key) + "=" + value;
|
|
8188
|
+
} else {
|
|
8189
|
+
return value;
|
|
8190
|
+
}
|
|
8191
|
+
}
|
|
8192
|
+
function isDefined(value) {
|
|
8193
|
+
return value !== void 0 && value !== null;
|
|
8194
|
+
}
|
|
8195
|
+
function isKeyOperator(operator) {
|
|
8196
|
+
return operator === ";" || operator === "&" || operator === "?";
|
|
8197
|
+
}
|
|
8198
|
+
function getValues(context, operator, key, modifier) {
|
|
8199
|
+
var value = context[key], result = [];
|
|
8200
|
+
if (isDefined(value) && value !== "") {
|
|
8201
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
8202
|
+
value = value.toString();
|
|
8203
|
+
if (modifier && modifier !== "*") {
|
|
8204
|
+
value = value.substring(0, parseInt(modifier, 10));
|
|
8205
|
+
}
|
|
8206
|
+
result.push(
|
|
8207
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
8208
|
+
);
|
|
8209
|
+
} else {
|
|
8210
|
+
if (modifier === "*") {
|
|
8211
|
+
if (Array.isArray(value)) {
|
|
8212
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
8213
|
+
result.push(
|
|
8214
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
8215
|
+
);
|
|
8216
|
+
});
|
|
8217
|
+
} else {
|
|
8218
|
+
Object.keys(value).forEach(function(k) {
|
|
8219
|
+
if (isDefined(value[k])) {
|
|
8220
|
+
result.push(encodeValue(operator, value[k], k));
|
|
8221
|
+
}
|
|
8222
|
+
});
|
|
8223
|
+
}
|
|
8224
|
+
} else {
|
|
8225
|
+
const tmp = [];
|
|
8226
|
+
if (Array.isArray(value)) {
|
|
8227
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
8228
|
+
tmp.push(encodeValue(operator, value2));
|
|
8229
|
+
});
|
|
8230
|
+
} else {
|
|
8231
|
+
Object.keys(value).forEach(function(k) {
|
|
8232
|
+
if (isDefined(value[k])) {
|
|
8233
|
+
tmp.push(encodeUnreserved(k));
|
|
8234
|
+
tmp.push(encodeValue(operator, value[k].toString()));
|
|
8235
|
+
}
|
|
8236
|
+
});
|
|
8237
|
+
}
|
|
8238
|
+
if (isKeyOperator(operator)) {
|
|
8239
|
+
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
|
8240
|
+
} else if (tmp.length !== 0) {
|
|
8241
|
+
result.push(tmp.join(","));
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
}
|
|
8245
|
+
} else {
|
|
8246
|
+
if (operator === ";") {
|
|
8247
|
+
if (isDefined(value)) {
|
|
8248
|
+
result.push(encodeUnreserved(key));
|
|
8249
|
+
}
|
|
8250
|
+
} else if (value === "" && (operator === "&" || operator === "?")) {
|
|
8251
|
+
result.push(encodeUnreserved(key) + "=");
|
|
8252
|
+
} else if (value === "") {
|
|
8253
|
+
result.push("");
|
|
8254
|
+
}
|
|
8255
|
+
}
|
|
8256
|
+
return result;
|
|
8257
|
+
}
|
|
8258
|
+
function parseUrl(template) {
|
|
8259
|
+
return {
|
|
8260
|
+
expand: expand.bind(null, template)
|
|
8261
|
+
};
|
|
8262
|
+
}
|
|
8263
|
+
function expand(template, context) {
|
|
8264
|
+
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
8265
|
+
template = template.replace(
|
|
8266
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
8267
|
+
function(_, expression, literal) {
|
|
8268
|
+
if (expression) {
|
|
8269
|
+
let operator = "";
|
|
8270
|
+
const values = [];
|
|
8271
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
8272
|
+
operator = expression.charAt(0);
|
|
8273
|
+
expression = expression.substr(1);
|
|
8274
|
+
}
|
|
8275
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
8276
|
+
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
8277
|
+
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
|
8278
|
+
});
|
|
8279
|
+
if (operator && operator !== "+") {
|
|
8280
|
+
var separator = ",";
|
|
8281
|
+
if (operator === "?") {
|
|
8282
|
+
separator = "&";
|
|
8283
|
+
} else if (operator !== "#") {
|
|
8284
|
+
separator = operator;
|
|
8285
|
+
}
|
|
8286
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
8287
|
+
} else {
|
|
8288
|
+
return values.join(",");
|
|
8289
|
+
}
|
|
8290
|
+
} else {
|
|
8291
|
+
return encodeReserved(literal);
|
|
8292
|
+
}
|
|
8293
|
+
}
|
|
8294
|
+
);
|
|
8295
|
+
if (template === "/") {
|
|
8296
|
+
return template;
|
|
8297
|
+
} else {
|
|
8298
|
+
return template.replace(/\/$/, "");
|
|
8299
|
+
}
|
|
8300
|
+
}
|
|
8301
|
+
function parse4(options) {
|
|
8302
|
+
let method = options.method.toUpperCase();
|
|
8303
|
+
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
8304
|
+
let headers = Object.assign({}, options.headers);
|
|
8305
|
+
let body;
|
|
8306
|
+
let parameters = omit2(options, [
|
|
8307
|
+
"method",
|
|
8308
|
+
"baseUrl",
|
|
8309
|
+
"url",
|
|
8310
|
+
"headers",
|
|
8311
|
+
"request",
|
|
8312
|
+
"mediaType"
|
|
8313
|
+
]);
|
|
8314
|
+
const urlVariableNames = extractUrlVariableNames(url);
|
|
8315
|
+
url = parseUrl(url).expand(parameters);
|
|
8316
|
+
if (!/^http/.test(url)) {
|
|
8317
|
+
url = options.baseUrl + url;
|
|
8318
|
+
}
|
|
8319
|
+
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
8320
|
+
const remainingParameters = omit2(parameters, omittedParameters);
|
|
8321
|
+
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
8322
|
+
if (!isBinaryRequest) {
|
|
8323
|
+
if (options.mediaType.format) {
|
|
8324
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
8325
|
+
(format) => format.replace(
|
|
8326
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
8327
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
8328
|
+
)
|
|
8329
|
+
).join(",");
|
|
8330
|
+
}
|
|
8331
|
+
if (url.endsWith("/graphql")) {
|
|
8332
|
+
if (options.mediaType.previews?.length) {
|
|
8333
|
+
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
8334
|
+
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
8335
|
+
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
8336
|
+
return `application/vnd.github.${preview}-preview${format}`;
|
|
8337
|
+
}).join(",");
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
}
|
|
8341
|
+
if (["GET", "HEAD"].includes(method)) {
|
|
8342
|
+
url = addQueryParameters(url, remainingParameters);
|
|
8343
|
+
} else {
|
|
8344
|
+
if ("data" in remainingParameters) {
|
|
8345
|
+
body = remainingParameters.data;
|
|
8346
|
+
} else {
|
|
8347
|
+
if (Object.keys(remainingParameters).length) {
|
|
8348
|
+
body = remainingParameters;
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
}
|
|
8352
|
+
if (!headers["content-type"] && typeof body !== "undefined") {
|
|
8353
|
+
headers["content-type"] = "application/json; charset=utf-8";
|
|
8354
|
+
}
|
|
8355
|
+
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
8356
|
+
body = "";
|
|
8357
|
+
}
|
|
8358
|
+
return Object.assign(
|
|
8359
|
+
{ method, url, headers },
|
|
8360
|
+
typeof body !== "undefined" ? { body } : null,
|
|
8361
|
+
options.request ? { request: options.request } : null
|
|
8362
|
+
);
|
|
8363
|
+
}
|
|
8364
|
+
function endpointWithDefaults(defaults, route, options) {
|
|
8365
|
+
return parse4(merge2(defaults, route, options));
|
|
8366
|
+
}
|
|
8367
|
+
function withDefaults(oldDefaults, newDefaults) {
|
|
8368
|
+
const DEFAULTS2 = merge2(oldDefaults, newDefaults);
|
|
8369
|
+
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
8370
|
+
return Object.assign(endpoint2, {
|
|
8371
|
+
DEFAULTS: DEFAULTS2,
|
|
8372
|
+
defaults: withDefaults.bind(null, DEFAULTS2),
|
|
8373
|
+
merge: merge2.bind(null, DEFAULTS2),
|
|
8374
|
+
parse: parse4
|
|
8375
|
+
});
|
|
8376
|
+
}
|
|
8377
|
+
var endpoint = withDefaults(null, DEFAULTS);
|
|
8378
|
+
|
|
8379
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js
|
|
8380
|
+
var RequestError = class extends Error {
|
|
8381
|
+
name;
|
|
8382
|
+
/**
|
|
8383
|
+
* http status code
|
|
8384
|
+
*/
|
|
8385
|
+
status;
|
|
8386
|
+
/**
|
|
8387
|
+
* Request options that lead to the error.
|
|
8388
|
+
*/
|
|
8389
|
+
request;
|
|
8390
|
+
/**
|
|
8391
|
+
* Response object if a response was received
|
|
8392
|
+
*/
|
|
8393
|
+
response;
|
|
8394
|
+
constructor(message, statusCode, options) {
|
|
8395
|
+
super(message);
|
|
8396
|
+
if (Error.captureStackTrace) {
|
|
8397
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8398
|
+
}
|
|
8399
|
+
this.name = "HttpError";
|
|
8400
|
+
this.status = statusCode;
|
|
8401
|
+
if ("response" in options) {
|
|
8402
|
+
this.response = options.response;
|
|
8403
|
+
}
|
|
8404
|
+
const requestCopy = Object.assign({}, options.request);
|
|
8405
|
+
if (options.request.headers.authorization) {
|
|
8406
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
8407
|
+
authorization: options.request.headers.authorization.replace(
|
|
8408
|
+
/ .*$/,
|
|
8409
|
+
" [REDACTED]"
|
|
8410
|
+
)
|
|
8411
|
+
});
|
|
8412
|
+
}
|
|
8413
|
+
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
8414
|
+
this.request = requestCopy;
|
|
8415
|
+
}
|
|
8416
|
+
};
|
|
8417
|
+
|
|
8418
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/request/dist-bundle/index.js
|
|
8419
|
+
var VERSION2 = "0.0.0-development";
|
|
8420
|
+
function isPlainObject3(value) {
|
|
8421
|
+
if (typeof value !== "object" || value === null)
|
|
8422
|
+
return false;
|
|
8423
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
8424
|
+
return false;
|
|
8425
|
+
const proto = Object.getPrototypeOf(value);
|
|
8426
|
+
if (proto === null)
|
|
8427
|
+
return true;
|
|
8428
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
8429
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
8430
|
+
}
|
|
8431
|
+
function getBufferResponse(response) {
|
|
8432
|
+
return response.arrayBuffer();
|
|
8433
|
+
}
|
|
8434
|
+
function fetchWrapper(requestOptions) {
|
|
8435
|
+
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
8436
|
+
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
8437
|
+
if (isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
8438
|
+
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
8439
|
+
}
|
|
8440
|
+
let headers = {};
|
|
8441
|
+
let status;
|
|
8442
|
+
let url;
|
|
8443
|
+
let { fetch: fetch2 } = globalThis;
|
|
8444
|
+
if (requestOptions.request?.fetch) {
|
|
8445
|
+
fetch2 = requestOptions.request.fetch;
|
|
8446
|
+
}
|
|
8447
|
+
if (!fetch2) {
|
|
8448
|
+
throw new Error(
|
|
8449
|
+
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
|
8450
|
+
);
|
|
8451
|
+
}
|
|
8452
|
+
return fetch2(requestOptions.url, {
|
|
8453
|
+
method: requestOptions.method,
|
|
8454
|
+
body: requestOptions.body,
|
|
8455
|
+
redirect: requestOptions.request?.redirect,
|
|
8456
|
+
// Header values must be `string`
|
|
8457
|
+
headers: Object.fromEntries(
|
|
8458
|
+
Object.entries(requestOptions.headers).map(([name, value]) => [
|
|
8459
|
+
name,
|
|
8460
|
+
String(value)
|
|
8461
|
+
])
|
|
8462
|
+
),
|
|
8463
|
+
signal: requestOptions.request?.signal,
|
|
8464
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
8465
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
8466
|
+
...requestOptions.body && { duplex: "half" }
|
|
8467
|
+
}).then(async (response) => {
|
|
8468
|
+
url = response.url;
|
|
8469
|
+
status = response.status;
|
|
8470
|
+
for (const keyAndValue of response.headers) {
|
|
8471
|
+
headers[keyAndValue[0]] = keyAndValue[1];
|
|
8472
|
+
}
|
|
8473
|
+
if ("deprecation" in headers) {
|
|
8474
|
+
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
|
|
8475
|
+
const deprecationLink = matches && matches.pop();
|
|
8476
|
+
log.warn(
|
|
8477
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
8478
|
+
);
|
|
8479
|
+
}
|
|
8480
|
+
if (status === 204 || status === 205) {
|
|
8481
|
+
return;
|
|
8482
|
+
}
|
|
8483
|
+
if (requestOptions.method === "HEAD") {
|
|
8484
|
+
if (status < 400) {
|
|
8485
|
+
return;
|
|
8486
|
+
}
|
|
8487
|
+
throw new RequestError(response.statusText, status, {
|
|
8488
|
+
response: {
|
|
8489
|
+
url,
|
|
8490
|
+
status,
|
|
8491
|
+
headers,
|
|
8492
|
+
data: void 0
|
|
8493
|
+
},
|
|
8494
|
+
request: requestOptions
|
|
8495
|
+
});
|
|
8496
|
+
}
|
|
8497
|
+
if (status === 304) {
|
|
8498
|
+
throw new RequestError("Not modified", status, {
|
|
8499
|
+
response: {
|
|
8500
|
+
url,
|
|
8501
|
+
status,
|
|
8502
|
+
headers,
|
|
8503
|
+
data: await getResponseData(response)
|
|
8504
|
+
},
|
|
8505
|
+
request: requestOptions
|
|
8506
|
+
});
|
|
8507
|
+
}
|
|
8508
|
+
if (status >= 400) {
|
|
8509
|
+
const data = await getResponseData(response);
|
|
8510
|
+
const error = new RequestError(toErrorMessage(data), status, {
|
|
8511
|
+
response: {
|
|
8512
|
+
url,
|
|
8513
|
+
status,
|
|
8514
|
+
headers,
|
|
8515
|
+
data
|
|
8516
|
+
},
|
|
8517
|
+
request: requestOptions
|
|
8518
|
+
});
|
|
8519
|
+
throw error;
|
|
8520
|
+
}
|
|
8521
|
+
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
|
8522
|
+
}).then((data) => {
|
|
8523
|
+
return {
|
|
8524
|
+
status,
|
|
8525
|
+
url,
|
|
8526
|
+
headers,
|
|
8527
|
+
data
|
|
8528
|
+
};
|
|
8529
|
+
}).catch((error) => {
|
|
8530
|
+
if (error instanceof RequestError)
|
|
8531
|
+
throw error;
|
|
8532
|
+
else if (error.name === "AbortError")
|
|
8533
|
+
throw error;
|
|
8534
|
+
let message = error.message;
|
|
8535
|
+
if (error.name === "TypeError" && "cause" in error) {
|
|
8536
|
+
if (error.cause instanceof Error) {
|
|
8537
|
+
message = error.cause.message;
|
|
8538
|
+
} else if (typeof error.cause === "string") {
|
|
8539
|
+
message = error.cause;
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
throw new RequestError(message, 500, {
|
|
8543
|
+
request: requestOptions
|
|
8544
|
+
});
|
|
8545
|
+
});
|
|
8546
|
+
}
|
|
8547
|
+
async function getResponseData(response) {
|
|
8548
|
+
const contentType = response.headers.get("content-type");
|
|
8549
|
+
if (/application\/json/.test(contentType)) {
|
|
8550
|
+
return response.json().catch(() => response.text()).catch(() => "");
|
|
8551
|
+
}
|
|
8552
|
+
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
|
8553
|
+
return response.text();
|
|
8554
|
+
}
|
|
8555
|
+
return getBufferResponse(response);
|
|
8556
|
+
}
|
|
8557
|
+
function toErrorMessage(data) {
|
|
8558
|
+
if (typeof data === "string")
|
|
8559
|
+
return data;
|
|
8560
|
+
let suffix;
|
|
8561
|
+
if ("documentation_url" in data) {
|
|
8562
|
+
suffix = ` - ${data.documentation_url}`;
|
|
8563
|
+
} else {
|
|
8564
|
+
suffix = "";
|
|
8565
|
+
}
|
|
8566
|
+
if ("message" in data) {
|
|
8567
|
+
if (Array.isArray(data.errors)) {
|
|
8568
|
+
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
|
8569
|
+
}
|
|
8570
|
+
return `${data.message}${suffix}`;
|
|
8571
|
+
}
|
|
8572
|
+
return `Unknown error: ${JSON.stringify(data)}`;
|
|
8573
|
+
}
|
|
8574
|
+
function withDefaults2(oldEndpoint, newDefaults) {
|
|
8575
|
+
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
8576
|
+
const newApi = function(route, parameters) {
|
|
8577
|
+
const endpointOptions = endpoint2.merge(route, parameters);
|
|
8578
|
+
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
8579
|
+
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
8580
|
+
}
|
|
8581
|
+
const request2 = (route2, parameters2) => {
|
|
8582
|
+
return fetchWrapper(
|
|
8583
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
8584
|
+
);
|
|
8585
|
+
};
|
|
8586
|
+
Object.assign(request2, {
|
|
8587
|
+
endpoint: endpoint2,
|
|
8588
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
8589
|
+
});
|
|
8590
|
+
return endpointOptions.request.hook(request2, endpointOptions);
|
|
8591
|
+
};
|
|
8592
|
+
return Object.assign(newApi, {
|
|
8593
|
+
endpoint: endpoint2,
|
|
8594
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
8595
|
+
});
|
|
8596
|
+
}
|
|
8597
|
+
var request = withDefaults2(endpoint, {
|
|
8598
|
+
headers: {
|
|
8599
|
+
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
8600
|
+
}
|
|
8601
|
+
});
|
|
8602
|
+
|
|
8603
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/graphql/dist-bundle/index.js
|
|
8604
|
+
var VERSION3 = "0.0.0-development";
|
|
8605
|
+
function _buildMessageForResponseErrors(data) {
|
|
8606
|
+
return `Request failed due to following response errors:
|
|
8607
|
+
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
8608
|
+
}
|
|
8609
|
+
var GraphqlResponseError = class extends Error {
|
|
8610
|
+
constructor(request2, headers, response) {
|
|
8611
|
+
super(_buildMessageForResponseErrors(response));
|
|
8612
|
+
this.request = request2;
|
|
8613
|
+
this.headers = headers;
|
|
8614
|
+
this.response = response;
|
|
8615
|
+
this.errors = response.errors;
|
|
8616
|
+
this.data = response.data;
|
|
8617
|
+
if (Error.captureStackTrace) {
|
|
8618
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8619
|
+
}
|
|
8620
|
+
}
|
|
8621
|
+
name = "GraphqlResponseError";
|
|
8622
|
+
errors;
|
|
8623
|
+
data;
|
|
8624
|
+
};
|
|
8625
|
+
var NON_VARIABLE_OPTIONS = [
|
|
8626
|
+
"method",
|
|
8627
|
+
"baseUrl",
|
|
8628
|
+
"url",
|
|
8629
|
+
"headers",
|
|
8630
|
+
"request",
|
|
8631
|
+
"query",
|
|
8632
|
+
"mediaType"
|
|
8633
|
+
];
|
|
8634
|
+
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
8635
|
+
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
8636
|
+
function graphql(request2, query, options) {
|
|
8637
|
+
if (options) {
|
|
8638
|
+
if (typeof query === "string" && "query" in options) {
|
|
8639
|
+
return Promise.reject(
|
|
8640
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
8641
|
+
);
|
|
8642
|
+
}
|
|
8643
|
+
for (const key in options) {
|
|
8644
|
+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
|
8645
|
+
continue;
|
|
8646
|
+
return Promise.reject(
|
|
8647
|
+
new Error(
|
|
8648
|
+
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
|
8649
|
+
)
|
|
8650
|
+
);
|
|
8651
|
+
}
|
|
8652
|
+
}
|
|
8653
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
8654
|
+
const requestOptions = Object.keys(
|
|
8655
|
+
parsedOptions
|
|
8656
|
+
).reduce((result, key) => {
|
|
8657
|
+
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
8658
|
+
result[key] = parsedOptions[key];
|
|
8659
|
+
return result;
|
|
8660
|
+
}
|
|
8661
|
+
if (!result.variables) {
|
|
8662
|
+
result.variables = {};
|
|
8663
|
+
}
|
|
8664
|
+
result.variables[key] = parsedOptions[key];
|
|
8665
|
+
return result;
|
|
8666
|
+
}, {});
|
|
8667
|
+
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
|
8668
|
+
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
8669
|
+
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
|
8670
|
+
}
|
|
8671
|
+
return request2(requestOptions).then((response) => {
|
|
8672
|
+
if (response.data.errors) {
|
|
8673
|
+
const headers = {};
|
|
8674
|
+
for (const key of Object.keys(response.headers)) {
|
|
8675
|
+
headers[key] = response.headers[key];
|
|
8676
|
+
}
|
|
8677
|
+
throw new GraphqlResponseError(
|
|
8678
|
+
requestOptions,
|
|
8679
|
+
headers,
|
|
8680
|
+
response.data
|
|
8681
|
+
);
|
|
8682
|
+
}
|
|
8683
|
+
return response.data.data;
|
|
8684
|
+
});
|
|
8685
|
+
}
|
|
8686
|
+
function withDefaults3(request2, newDefaults) {
|
|
8687
|
+
const newRequest = request2.defaults(newDefaults);
|
|
8688
|
+
const newApi = (query, options) => {
|
|
8689
|
+
return graphql(newRequest, query, options);
|
|
8690
|
+
};
|
|
8691
|
+
return Object.assign(newApi, {
|
|
8692
|
+
defaults: withDefaults3.bind(null, newRequest),
|
|
8693
|
+
endpoint: newRequest.endpoint
|
|
8694
|
+
});
|
|
8695
|
+
}
|
|
8696
|
+
var graphql2 = withDefaults3(request, {
|
|
8697
|
+
headers: {
|
|
8698
|
+
"user-agent": `octokit-graphql.js/${VERSION3} ${getUserAgent()}`
|
|
8699
|
+
},
|
|
8700
|
+
method: "POST",
|
|
8701
|
+
url: "/graphql"
|
|
8702
|
+
});
|
|
8703
|
+
function withCustomRequest(customRequest) {
|
|
8704
|
+
return withDefaults3(customRequest, {
|
|
8705
|
+
method: "POST",
|
|
8706
|
+
url: "/graphql"
|
|
8707
|
+
});
|
|
8708
|
+
}
|
|
8709
|
+
|
|
8710
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/auth-token/dist-bundle/index.js
|
|
8711
|
+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
8712
|
+
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
8713
|
+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
8714
|
+
async function auth(token) {
|
|
8715
|
+
const isApp = token.split(/\./).length === 3;
|
|
8716
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
8717
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
8718
|
+
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
8719
|
+
return {
|
|
8720
|
+
type: "token",
|
|
8721
|
+
token,
|
|
8722
|
+
tokenType
|
|
8723
|
+
};
|
|
8724
|
+
}
|
|
8725
|
+
function withAuthorizationPrefix(token) {
|
|
8726
|
+
if (token.split(/\./).length === 3) {
|
|
8727
|
+
return `bearer ${token}`;
|
|
8728
|
+
}
|
|
8729
|
+
return `token ${token}`;
|
|
8730
|
+
}
|
|
8731
|
+
async function hook(token, request2, route, parameters) {
|
|
8732
|
+
const endpoint2 = request2.endpoint.merge(
|
|
8733
|
+
route,
|
|
8734
|
+
parameters
|
|
8735
|
+
);
|
|
8736
|
+
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
8737
|
+
return request2(endpoint2);
|
|
8738
|
+
}
|
|
8739
|
+
var createTokenAuth = function createTokenAuth2(token) {
|
|
8740
|
+
if (!token) {
|
|
8741
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
8742
|
+
}
|
|
8743
|
+
if (typeof token !== "string") {
|
|
8744
|
+
throw new Error(
|
|
8745
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
8746
|
+
);
|
|
8747
|
+
}
|
|
8748
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
8749
|
+
return Object.assign(auth.bind(null, token), {
|
|
8750
|
+
hook: hook.bind(null, token)
|
|
8751
|
+
});
|
|
8752
|
+
};
|
|
8753
|
+
|
|
8754
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/core/dist-src/version.js
|
|
8755
|
+
var VERSION4 = "6.1.2";
|
|
8756
|
+
|
|
8757
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/core/dist-src/index.js
|
|
8758
|
+
var noop = () => {
|
|
8759
|
+
};
|
|
8760
|
+
var consoleWarn = console.warn.bind(console);
|
|
8761
|
+
var consoleError = console.error.bind(console);
|
|
8762
|
+
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
8763
|
+
var Octokit = class {
|
|
8764
|
+
static VERSION = VERSION4;
|
|
8765
|
+
static defaults(defaults) {
|
|
8766
|
+
const OctokitWithDefaults = class extends this {
|
|
8767
|
+
constructor(...args) {
|
|
8768
|
+
const options = args[0] || {};
|
|
8769
|
+
if (typeof defaults === "function") {
|
|
8770
|
+
super(defaults(options));
|
|
8771
|
+
return;
|
|
8772
|
+
}
|
|
8773
|
+
super(
|
|
8774
|
+
Object.assign(
|
|
8775
|
+
{},
|
|
8776
|
+
defaults,
|
|
8777
|
+
options,
|
|
8778
|
+
options.userAgent && defaults.userAgent ? {
|
|
8779
|
+
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
8780
|
+
} : null
|
|
8781
|
+
)
|
|
8782
|
+
);
|
|
8783
|
+
}
|
|
8784
|
+
};
|
|
8785
|
+
return OctokitWithDefaults;
|
|
8786
|
+
}
|
|
8787
|
+
static plugins = [];
|
|
8788
|
+
/**
|
|
8789
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
8790
|
+
*
|
|
8791
|
+
* @example
|
|
8792
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
8793
|
+
*/
|
|
8794
|
+
static plugin(...newPlugins) {
|
|
8795
|
+
const currentPlugins = this.plugins;
|
|
8796
|
+
const NewOctokit = class extends this {
|
|
8797
|
+
static plugins = currentPlugins.concat(
|
|
8798
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
8799
|
+
);
|
|
8800
|
+
};
|
|
8801
|
+
return NewOctokit;
|
|
8802
|
+
}
|
|
8803
|
+
constructor(options = {}) {
|
|
8804
|
+
const hook2 = new before_after_hook_default.Collection();
|
|
8805
|
+
const requestDefaults = {
|
|
8806
|
+
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
8807
|
+
headers: {},
|
|
8808
|
+
request: Object.assign({}, options.request, {
|
|
8809
|
+
// @ts-ignore internal usage only, no need to type
|
|
8810
|
+
hook: hook2.bind(null, "request")
|
|
8811
|
+
}),
|
|
8812
|
+
mediaType: {
|
|
8813
|
+
previews: [],
|
|
8814
|
+
format: ""
|
|
8815
|
+
}
|
|
8816
|
+
};
|
|
8817
|
+
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
|
8818
|
+
if (options.baseUrl) {
|
|
8819
|
+
requestDefaults.baseUrl = options.baseUrl;
|
|
8820
|
+
}
|
|
8821
|
+
if (options.previews) {
|
|
8822
|
+
requestDefaults.mediaType.previews = options.previews;
|
|
8823
|
+
}
|
|
8824
|
+
if (options.timeZone) {
|
|
8825
|
+
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
8826
|
+
}
|
|
8827
|
+
this.request = request.defaults(requestDefaults);
|
|
8828
|
+
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
8829
|
+
this.log = Object.assign(
|
|
8830
|
+
{
|
|
8831
|
+
debug: noop,
|
|
8832
|
+
info: noop,
|
|
8833
|
+
warn: consoleWarn,
|
|
8834
|
+
error: consoleError
|
|
8835
|
+
},
|
|
8836
|
+
options.log
|
|
8837
|
+
);
|
|
8838
|
+
this.hook = hook2;
|
|
8839
|
+
if (!options.authStrategy) {
|
|
8840
|
+
if (!options.auth) {
|
|
8841
|
+
this.auth = async () => ({
|
|
8842
|
+
type: "unauthenticated"
|
|
8843
|
+
});
|
|
8844
|
+
} else {
|
|
8845
|
+
const auth2 = createTokenAuth(options.auth);
|
|
8846
|
+
hook2.wrap("request", auth2.hook);
|
|
8847
|
+
this.auth = auth2;
|
|
8848
|
+
}
|
|
8849
|
+
} else {
|
|
8850
|
+
const { authStrategy, ...otherOptions } = options;
|
|
8851
|
+
const auth2 = authStrategy(
|
|
8852
|
+
Object.assign(
|
|
8853
|
+
{
|
|
8854
|
+
request: this.request,
|
|
8855
|
+
log: this.log,
|
|
8856
|
+
// we pass the current octokit instance as well as its constructor options
|
|
8857
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
8858
|
+
// that shares the same internal state as the current one. The original
|
|
8859
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
8860
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
8861
|
+
octokit: this,
|
|
8862
|
+
octokitOptions: otherOptions
|
|
8863
|
+
},
|
|
8864
|
+
options.auth
|
|
8865
|
+
)
|
|
8866
|
+
);
|
|
8867
|
+
hook2.wrap("request", auth2.hook);
|
|
8868
|
+
this.auth = auth2;
|
|
8869
|
+
}
|
|
8870
|
+
const classConstructor = this.constructor;
|
|
8871
|
+
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
8872
|
+
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
8873
|
+
}
|
|
8874
|
+
}
|
|
8875
|
+
// assigned during constructor
|
|
8876
|
+
request;
|
|
8877
|
+
graphql;
|
|
8878
|
+
log;
|
|
8879
|
+
hook;
|
|
8880
|
+
// TODO: type `octokit.auth` based on passed options.authStrategy
|
|
8881
|
+
auth;
|
|
8882
|
+
};
|
|
8883
|
+
|
|
8884
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log/dist-src/version.js
|
|
8885
|
+
var VERSION5 = "5.3.0";
|
|
8886
|
+
|
|
8887
|
+
// ../node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log/dist-src/index.js
|
|
8888
|
+
function requestLog(octokit) {
|
|
8889
|
+
octokit.hook.wrap("request", (request2, options) => {
|
|
8890
|
+
octokit.log.debug("request", options);
|
|
8891
|
+
const start = Date.now();
|
|
8892
|
+
const requestOptions = octokit.request.endpoint.parse(options);
|
|
8893
|
+
const path2 = requestOptions.url.replace(options.baseUrl, "");
|
|
8894
|
+
return request2(options).then((response) => {
|
|
8895
|
+
const requestId = response.headers["x-github-request-id"];
|
|
8896
|
+
octokit.log.info(
|
|
8897
|
+
`${requestOptions.method} ${path2} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
8898
|
+
);
|
|
8899
|
+
return response;
|
|
8900
|
+
}).catch((error) => {
|
|
8901
|
+
const requestId = error.response.headers["x-github-request-id"] || "UNKNOWN";
|
|
8902
|
+
octokit.log.error(
|
|
8903
|
+
`${requestOptions.method} ${path2} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
8904
|
+
);
|
|
8905
|
+
throw error;
|
|
8906
|
+
});
|
|
8907
|
+
});
|
|
8908
|
+
}
|
|
8909
|
+
requestLog.VERSION = VERSION5;
|
|
8910
|
+
|
|
8911
|
+
// ../node_modules/@octokit/rest/dist-src/index.js
|
|
8912
|
+
var import_plugin_paginate_rest = __toESM(require_dist_node(), 1);
|
|
8913
|
+
var import_plugin_rest_endpoint_methods = __toESM(require_dist_node2(), 1);
|
|
8914
|
+
|
|
8915
|
+
// ../node_modules/@octokit/rest/dist-src/version.js
|
|
8916
|
+
var VERSION6 = "21.0.0";
|
|
8917
|
+
|
|
8918
|
+
// ../node_modules/@octokit/rest/dist-src/index.js
|
|
8919
|
+
var Octokit2 = Octokit.plugin(requestLog, import_plugin_rest_endpoint_methods.legacyRestEndpointMethods, import_plugin_paginate_rest.paginateRest).defaults(
|
|
8920
|
+
{
|
|
8921
|
+
userAgent: `octokit-rest.js/${VERSION6}`
|
|
8922
|
+
}
|
|
8923
|
+
);
|
|
5453
8924
|
|
|
5454
8925
|
// dist/def/pre-publish.js
|
|
5455
8926
|
var import_clipanion4 = require("clipanion");
|
|
@@ -5620,7 +9091,7 @@ async function prePublish(userOptions) {
|
|
|
5620
9091
|
}
|
|
5621
9092
|
debug7(`Github repository: ${GITHUB_REPOSITORY}`);
|
|
5622
9093
|
const [owner2, repo2] = GITHUB_REPOSITORY.split("/");
|
|
5623
|
-
const octokit2 = new
|
|
9094
|
+
const octokit2 = new Octokit2({
|
|
5624
9095
|
auth: process.env.GITHUB_TOKEN
|
|
5625
9096
|
});
|
|
5626
9097
|
let pkgInfo2;
|