@cloudsnorkel/cdk-github-runners 0.10.4 → 0.10.6
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/.gitattributes +1 -1
- package/.jsii +164 -125
- package/API.md +42 -7
- package/README.md +1 -1
- package/SETUP_GITHUB.md +16 -12
- package/TESTING.md +61 -0
- package/assets/{delete-runner.lambda → delete-failed-runner.lambda}/index.js +3972 -1334
- package/assets/idle-runner-repear.lambda/index.js +3994 -1339
- package/assets/image-builders/aws-image-builder/versioner.lambda/index.js +45 -1
- package/assets/setup.lambda/index.html +13 -13
- package/assets/setup.lambda/index.js +2057 -724
- package/assets/status.lambda/index.js +2236 -788
- package/assets/token-retriever.lambda/index.js +3962 -1333
- package/lib/access.d.ts +4 -2
- package/lib/access.js +7 -5
- package/lib/delete-failed-runner-function.d.ts +13 -0
- package/lib/delete-failed-runner-function.js +23 -0
- package/lib/delete-failed-runner.lambda.js +51 -0
- package/lib/idle-runner-repear.lambda.js +43 -10
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/deprecated/common.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/common.js +10 -10
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/components.js +1 -1
- package/lib/image-builders/static.js +1 -1
- package/lib/lambda-github.d.ts +8 -4
- package/lib/lambda-github.js +23 -2
- package/lib/lambda-helpers.d.ts +5 -1
- package/lib/lambda-helpers.js +1 -1
- package/lib/providers/codebuild.js +7 -5
- package/lib/providers/common.d.ts +4 -1
- package/lib/providers/common.js +5 -6
- package/lib/providers/ec2.d.ts +1 -0
- package/lib/providers/ec2.js +16 -11
- package/lib/providers/ecs.js +12 -5
- package/lib/providers/fargate.js +6 -3
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.d.ts +1 -1
- package/lib/runner.js +26 -25
- package/lib/secrets.d.ts +2 -2
- package/lib/secrets.js +2 -2
- package/lib/setup.lambda.js +2 -2
- package/lib/status.lambda.js +4 -4
- package/lib/token-retriever.lambda.js +2 -2
- package/lib/utils.d.ts +19 -1
- package/lib/utils.js +48 -2
- package/lib/webhook.js +2 -2
- package/package.json +16 -15
- package/lib/delete-runner-function.d.ts +0 -13
- package/lib/delete-runner-function.js +0 -23
- package/lib/delete-runner.lambda.js +0 -41
- /package/lib/{delete-runner.lambda.d.ts → delete-failed-runner.lambda.d.ts} +0 -0
|
@@ -46,6 +46,7 @@ var require_dist_node = __commonJS({
|
|
|
46
46
|
// node_modules/before-after-hook/lib/register.js
|
|
47
47
|
var require_register = __commonJS({
|
|
48
48
|
"node_modules/before-after-hook/lib/register.js"(exports2, module2) {
|
|
49
|
+
"use strict";
|
|
49
50
|
module2.exports = register;
|
|
50
51
|
function register(state, name, method, options) {
|
|
51
52
|
if (typeof method !== "function") {
|
|
@@ -74,6 +75,7 @@ var require_register = __commonJS({
|
|
|
74
75
|
// node_modules/before-after-hook/lib/add.js
|
|
75
76
|
var require_add = __commonJS({
|
|
76
77
|
"node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
78
|
+
"use strict";
|
|
77
79
|
module2.exports = addHook;
|
|
78
80
|
function addHook(state, kind, name, hook) {
|
|
79
81
|
var orig = hook;
|
|
@@ -114,6 +116,7 @@ var require_add = __commonJS({
|
|
|
114
116
|
// node_modules/before-after-hook/lib/remove.js
|
|
115
117
|
var require_remove = __commonJS({
|
|
116
118
|
"node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
|
|
119
|
+
"use strict";
|
|
117
120
|
module2.exports = removeHook;
|
|
118
121
|
function removeHook(state, name, method) {
|
|
119
122
|
if (!state.registry[name]) {
|
|
@@ -133,6 +136,7 @@ var require_remove = __commonJS({
|
|
|
133
136
|
// node_modules/before-after-hook/index.js
|
|
134
137
|
var require_before_after_hook = __commonJS({
|
|
135
138
|
"node_modules/before-after-hook/index.js"(exports2, module2) {
|
|
139
|
+
"use strict";
|
|
136
140
|
var register = require_register();
|
|
137
141
|
var addHook = require_add();
|
|
138
142
|
var removeHook = require_remove();
|
|
@@ -215,11 +219,30 @@ var require_is_plain_object = __commonJS({
|
|
|
215
219
|
|
|
216
220
|
// node_modules/@octokit/endpoint/dist-node/index.js
|
|
217
221
|
var require_dist_node2 = __commonJS({
|
|
218
|
-
"node_modules/@octokit/endpoint/dist-node/index.js"(exports2) {
|
|
222
|
+
"node_modules/@octokit/endpoint/dist-node/index.js"(exports2, module2) {
|
|
219
223
|
"use strict";
|
|
220
|
-
Object.defineProperty
|
|
221
|
-
var
|
|
222
|
-
var
|
|
224
|
+
var __defProp2 = Object.defineProperty;
|
|
225
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
226
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
227
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
228
|
+
var __export = (target, all) => {
|
|
229
|
+
for (var name in all)
|
|
230
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
231
|
+
};
|
|
232
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
233
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
234
|
+
for (let key of __getOwnPropNames2(from))
|
|
235
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
236
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
237
|
+
}
|
|
238
|
+
return to;
|
|
239
|
+
};
|
|
240
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
241
|
+
var dist_src_exports = {};
|
|
242
|
+
__export(dist_src_exports, {
|
|
243
|
+
endpoint: () => endpoint
|
|
244
|
+
});
|
|
245
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
223
246
|
function lowercaseKeys(object) {
|
|
224
247
|
if (!object) {
|
|
225
248
|
return {};
|
|
@@ -229,20 +252,17 @@ var require_dist_node2 = __commonJS({
|
|
|
229
252
|
return newObj;
|
|
230
253
|
}, {});
|
|
231
254
|
}
|
|
255
|
+
var import_is_plain_object = require_is_plain_object();
|
|
232
256
|
function mergeDeep(defaults, options) {
|
|
233
257
|
const result = Object.assign({}, defaults);
|
|
234
258
|
Object.keys(options).forEach((key) => {
|
|
235
|
-
if (
|
|
259
|
+
if ((0, import_is_plain_object.isPlainObject)(options[key])) {
|
|
236
260
|
if (!(key in defaults))
|
|
237
|
-
Object.assign(result, {
|
|
238
|
-
[key]: options[key]
|
|
239
|
-
});
|
|
261
|
+
Object.assign(result, { [key]: options[key] });
|
|
240
262
|
else
|
|
241
263
|
result[key] = mergeDeep(defaults[key], options[key]);
|
|
242
264
|
} else {
|
|
243
|
-
Object.assign(result, {
|
|
244
|
-
[key]: options[key]
|
|
245
|
-
});
|
|
265
|
+
Object.assign(result, { [key]: options[key] });
|
|
246
266
|
}
|
|
247
267
|
});
|
|
248
268
|
return result;
|
|
@@ -258,12 +278,7 @@ var require_dist_node2 = __commonJS({
|
|
|
258
278
|
function merge(defaults, route, options) {
|
|
259
279
|
if (typeof route === "string") {
|
|
260
280
|
let [method, url] = route.split(" ");
|
|
261
|
-
options = Object.assign(url ? {
|
|
262
|
-
method,
|
|
263
|
-
url
|
|
264
|
-
} : {
|
|
265
|
-
url: method
|
|
266
|
-
}, options);
|
|
281
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
267
282
|
} else {
|
|
268
283
|
options = Object.assign({}, route);
|
|
269
284
|
}
|
|
@@ -274,7 +289,9 @@ var require_dist_node2 = __commonJS({
|
|
|
274
289
|
if (defaults && defaults.mediaType.previews.length) {
|
|
275
290
|
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter((preview) => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
|
|
276
291
|
}
|
|
277
|
-
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
|
|
292
|
+
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
|
|
293
|
+
(preview) => preview.replace(/-preview/, "")
|
|
294
|
+
);
|
|
278
295
|
return mergedOptions;
|
|
279
296
|
}
|
|
280
297
|
function addQueryParameters(url, parameters) {
|
|
@@ -342,12 +359,16 @@ var require_dist_node2 = __commonJS({
|
|
|
342
359
|
if (modifier && modifier !== "*") {
|
|
343
360
|
value = value.substring(0, parseInt(modifier, 10));
|
|
344
361
|
}
|
|
345
|
-
result.push(
|
|
362
|
+
result.push(
|
|
363
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
364
|
+
);
|
|
346
365
|
} else {
|
|
347
366
|
if (modifier === "*") {
|
|
348
367
|
if (Array.isArray(value)) {
|
|
349
368
|
value.filter(isDefined).forEach(function(value2) {
|
|
350
|
-
result.push(
|
|
369
|
+
result.push(
|
|
370
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
371
|
+
);
|
|
351
372
|
});
|
|
352
373
|
} else {
|
|
353
374
|
Object.keys(value).forEach(function(k) {
|
|
@@ -397,40 +418,50 @@ var require_dist_node2 = __commonJS({
|
|
|
397
418
|
}
|
|
398
419
|
function expand(template, context) {
|
|
399
420
|
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
400
|
-
return template.replace(
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
if (operator
|
|
415
|
-
separator = "
|
|
416
|
-
|
|
417
|
-
|
|
421
|
+
return template.replace(
|
|
422
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
423
|
+
function(_, expression, literal) {
|
|
424
|
+
if (expression) {
|
|
425
|
+
let operator = "";
|
|
426
|
+
const values = [];
|
|
427
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
428
|
+
operator = expression.charAt(0);
|
|
429
|
+
expression = expression.substr(1);
|
|
430
|
+
}
|
|
431
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
432
|
+
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
433
|
+
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
|
434
|
+
});
|
|
435
|
+
if (operator && operator !== "+") {
|
|
436
|
+
var separator = ",";
|
|
437
|
+
if (operator === "?") {
|
|
438
|
+
separator = "&";
|
|
439
|
+
} else if (operator !== "#") {
|
|
440
|
+
separator = operator;
|
|
441
|
+
}
|
|
442
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
443
|
+
} else {
|
|
444
|
+
return values.join(",");
|
|
418
445
|
}
|
|
419
|
-
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
420
446
|
} else {
|
|
421
|
-
return
|
|
447
|
+
return encodeReserved(literal);
|
|
422
448
|
}
|
|
423
|
-
} else {
|
|
424
|
-
return encodeReserved(literal);
|
|
425
449
|
}
|
|
426
|
-
|
|
450
|
+
);
|
|
427
451
|
}
|
|
428
452
|
function parse(options) {
|
|
429
453
|
let method = options.method.toUpperCase();
|
|
430
454
|
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
431
455
|
let headers = Object.assign({}, options.headers);
|
|
432
456
|
let body;
|
|
433
|
-
let parameters = omit(options, [
|
|
457
|
+
let parameters = omit(options, [
|
|
458
|
+
"method",
|
|
459
|
+
"baseUrl",
|
|
460
|
+
"url",
|
|
461
|
+
"headers",
|
|
462
|
+
"request",
|
|
463
|
+
"mediaType"
|
|
464
|
+
]);
|
|
434
465
|
const urlVariableNames = extractUrlVariableNames(url);
|
|
435
466
|
url = parseUrl(url).expand(parameters);
|
|
436
467
|
if (!/^http/.test(url)) {
|
|
@@ -441,7 +472,12 @@ var require_dist_node2 = __commonJS({
|
|
|
441
472
|
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
442
473
|
if (!isBinaryRequest) {
|
|
443
474
|
if (options.mediaType.format) {
|
|
444
|
-
headers.accept = headers.accept.split(/,/).map(
|
|
475
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
476
|
+
(preview) => preview.replace(
|
|
477
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
478
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
479
|
+
)
|
|
480
|
+
).join(",");
|
|
445
481
|
}
|
|
446
482
|
if (options.mediaType.previews.length) {
|
|
447
483
|
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
@@ -468,15 +504,11 @@ var require_dist_node2 = __commonJS({
|
|
|
468
504
|
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
469
505
|
body = "";
|
|
470
506
|
}
|
|
471
|
-
return Object.assign(
|
|
472
|
-
method,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
body
|
|
477
|
-
} : null, options.request ? {
|
|
478
|
-
request: options.request
|
|
479
|
-
} : null);
|
|
507
|
+
return Object.assign(
|
|
508
|
+
{ method, url, headers },
|
|
509
|
+
typeof body !== "undefined" ? { body } : null,
|
|
510
|
+
options.request ? { request: options.request } : null
|
|
511
|
+
);
|
|
480
512
|
}
|
|
481
513
|
function endpointWithDefaults(defaults, route, options) {
|
|
482
514
|
return parse(merge(defaults, route, options));
|
|
@@ -491,8 +523,9 @@ var require_dist_node2 = __commonJS({
|
|
|
491
523
|
parse
|
|
492
524
|
});
|
|
493
525
|
}
|
|
494
|
-
var
|
|
495
|
-
var
|
|
526
|
+
var import_universal_user_agent = require_dist_node();
|
|
527
|
+
var VERSION = "7.0.6";
|
|
528
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
|
496
529
|
var DEFAULTS = {
|
|
497
530
|
method: "GET",
|
|
498
531
|
baseUrl: "https://api.github.com",
|
|
@@ -506,7 +539,6 @@ var require_dist_node2 = __commonJS({
|
|
|
506
539
|
}
|
|
507
540
|
};
|
|
508
541
|
var endpoint = withDefaults(null, DEFAULTS);
|
|
509
|
-
exports2.endpoint = endpoint;
|
|
510
542
|
}
|
|
511
543
|
});
|
|
512
544
|
|
|
@@ -7263,6 +7295,7 @@ var require_dist_node3 = __commonJS({
|
|
|
7263
7295
|
// node_modules/wrappy/wrappy.js
|
|
7264
7296
|
var require_wrappy = __commonJS({
|
|
7265
7297
|
"node_modules/wrappy/wrappy.js"(exports2, module2) {
|
|
7298
|
+
"use strict";
|
|
7266
7299
|
module2.exports = wrappy;
|
|
7267
7300
|
function wrappy(fn, cb) {
|
|
7268
7301
|
if (fn && cb)
|
|
@@ -7294,6 +7327,7 @@ var require_wrappy = __commonJS({
|
|
|
7294
7327
|
// node_modules/once/once.js
|
|
7295
7328
|
var require_once = __commonJS({
|
|
7296
7329
|
"node_modules/once/once.js"(exports2, module2) {
|
|
7330
|
+
"use strict";
|
|
7297
7331
|
var wrappy = require_wrappy();
|
|
7298
7332
|
module2.exports = wrappy(once);
|
|
7299
7333
|
module2.exports.strict = wrappy(onceStrict);
|
|
@@ -7392,42 +7426,76 @@ var require_dist_node4 = __commonJS({
|
|
|
7392
7426
|
|
|
7393
7427
|
// node_modules/@octokit/request/dist-node/index.js
|
|
7394
7428
|
var require_dist_node5 = __commonJS({
|
|
7395
|
-
"node_modules/@octokit/request/dist-node/index.js"(exports2) {
|
|
7429
|
+
"node_modules/@octokit/request/dist-node/index.js"(exports2, module2) {
|
|
7396
7430
|
"use strict";
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
var
|
|
7402
|
-
var
|
|
7403
|
-
var
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7431
|
+
var __create2 = Object.create;
|
|
7432
|
+
var __defProp2 = Object.defineProperty;
|
|
7433
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7434
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7435
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
7436
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7437
|
+
var __export = (target, all) => {
|
|
7438
|
+
for (var name in all)
|
|
7439
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7440
|
+
};
|
|
7441
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7442
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7443
|
+
for (let key of __getOwnPropNames2(from))
|
|
7444
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7445
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7446
|
+
}
|
|
7447
|
+
return to;
|
|
7448
|
+
};
|
|
7449
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7450
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
7451
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
7452
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7453
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7454
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
7455
|
+
mod
|
|
7456
|
+
));
|
|
7457
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7458
|
+
var dist_src_exports = {};
|
|
7459
|
+
__export(dist_src_exports, {
|
|
7460
|
+
request: () => request
|
|
7461
|
+
});
|
|
7462
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7463
|
+
var import_endpoint = require_dist_node2();
|
|
7464
|
+
var import_universal_user_agent = require_dist_node();
|
|
7465
|
+
var VERSION = "6.2.5";
|
|
7466
|
+
var import_is_plain_object = require_is_plain_object();
|
|
7467
|
+
var import_node_fetch = __toESM2(require_lib3());
|
|
7468
|
+
var import_request_error = require_dist_node4();
|
|
7407
7469
|
function getBufferResponse(response2) {
|
|
7408
7470
|
return response2.arrayBuffer();
|
|
7409
7471
|
}
|
|
7410
7472
|
function fetchWrapper(requestOptions) {
|
|
7411
7473
|
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
7412
|
-
if (
|
|
7474
|
+
if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
7413
7475
|
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
7414
7476
|
}
|
|
7415
7477
|
let headers = {};
|
|
7416
7478
|
let status;
|
|
7417
7479
|
let url;
|
|
7418
7480
|
const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch || /* istanbul ignore next */
|
|
7419
|
-
|
|
7420
|
-
return fetch(
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7481
|
+
import_node_fetch.default;
|
|
7482
|
+
return fetch(
|
|
7483
|
+
requestOptions.url,
|
|
7484
|
+
Object.assign(
|
|
7485
|
+
{
|
|
7486
|
+
method: requestOptions.method,
|
|
7487
|
+
body: requestOptions.body,
|
|
7488
|
+
headers: requestOptions.headers,
|
|
7489
|
+
redirect: requestOptions.redirect,
|
|
7490
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
7491
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
7492
|
+
...requestOptions.body && { duplex: "half" }
|
|
7493
|
+
},
|
|
7494
|
+
// `requestOptions.request.agent` type is incompatible
|
|
7495
|
+
// see https://github.com/octokit/types.ts/pull/264
|
|
7496
|
+
requestOptions.request
|
|
7497
|
+
)
|
|
7498
|
+
).then(async (response2) => {
|
|
7431
7499
|
url = response2.url;
|
|
7432
7500
|
status = response2.status;
|
|
7433
7501
|
for (const keyAndValue of response2.headers) {
|
|
@@ -7436,7 +7504,9 @@ var require_dist_node5 = __commonJS({
|
|
|
7436
7504
|
if ("deprecation" in headers) {
|
|
7437
7505
|
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
|
|
7438
7506
|
const deprecationLink = matches && matches.pop();
|
|
7439
|
-
log.warn(
|
|
7507
|
+
log.warn(
|
|
7508
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
7509
|
+
);
|
|
7440
7510
|
}
|
|
7441
7511
|
if (status === 204 || status === 205) {
|
|
7442
7512
|
return;
|
|
@@ -7445,7 +7515,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7445
7515
|
if (status < 400) {
|
|
7446
7516
|
return;
|
|
7447
7517
|
}
|
|
7448
|
-
throw new
|
|
7518
|
+
throw new import_request_error.RequestError(response2.statusText, status, {
|
|
7449
7519
|
response: {
|
|
7450
7520
|
url,
|
|
7451
7521
|
status,
|
|
@@ -7456,7 +7526,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7456
7526
|
});
|
|
7457
7527
|
}
|
|
7458
7528
|
if (status === 304) {
|
|
7459
|
-
throw new
|
|
7529
|
+
throw new import_request_error.RequestError("Not modified", status, {
|
|
7460
7530
|
response: {
|
|
7461
7531
|
url,
|
|
7462
7532
|
status,
|
|
@@ -7468,7 +7538,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7468
7538
|
}
|
|
7469
7539
|
if (status >= 400) {
|
|
7470
7540
|
const data = await getResponseData(response2);
|
|
7471
|
-
const error = new
|
|
7541
|
+
const error = new import_request_error.RequestError(toErrorMessage(data), status, {
|
|
7472
7542
|
response: {
|
|
7473
7543
|
url,
|
|
7474
7544
|
status,
|
|
@@ -7488,11 +7558,11 @@ var require_dist_node5 = __commonJS({
|
|
|
7488
7558
|
data
|
|
7489
7559
|
};
|
|
7490
7560
|
}).catch((error) => {
|
|
7491
|
-
if (error instanceof
|
|
7561
|
+
if (error instanceof import_request_error.RequestError)
|
|
7492
7562
|
throw error;
|
|
7493
7563
|
else if (error.name === "AbortError")
|
|
7494
7564
|
throw error;
|
|
7495
|
-
throw new
|
|
7565
|
+
throw new import_request_error.RequestError(error.message, 500, {
|
|
7496
7566
|
request: requestOptions
|
|
7497
7567
|
});
|
|
7498
7568
|
});
|
|
@@ -7526,7 +7596,9 @@ var require_dist_node5 = __commonJS({
|
|
|
7526
7596
|
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
7527
7597
|
}
|
|
7528
7598
|
const request2 = (route2, parameters2) => {
|
|
7529
|
-
return fetchWrapper(
|
|
7599
|
+
return fetchWrapper(
|
|
7600
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
7601
|
+
);
|
|
7530
7602
|
};
|
|
7531
7603
|
Object.assign(request2, {
|
|
7532
7604
|
endpoint: endpoint2,
|
|
@@ -7539,23 +7611,45 @@ var require_dist_node5 = __commonJS({
|
|
|
7539
7611
|
defaults: withDefaults.bind(null, endpoint2)
|
|
7540
7612
|
});
|
|
7541
7613
|
}
|
|
7542
|
-
var request = withDefaults(
|
|
7614
|
+
var request = withDefaults(import_endpoint.endpoint, {
|
|
7543
7615
|
headers: {
|
|
7544
|
-
"user-agent": `octokit-request.js/${VERSION} ${
|
|
7616
|
+
"user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7545
7617
|
}
|
|
7546
7618
|
});
|
|
7547
|
-
exports2.request = request;
|
|
7548
7619
|
}
|
|
7549
7620
|
});
|
|
7550
7621
|
|
|
7551
7622
|
// node_modules/@octokit/graphql/dist-node/index.js
|
|
7552
7623
|
var require_dist_node6 = __commonJS({
|
|
7553
|
-
"node_modules/@octokit/graphql/dist-node/index.js"(exports2) {
|
|
7624
|
+
"node_modules/@octokit/graphql/dist-node/index.js"(exports2, module2) {
|
|
7554
7625
|
"use strict";
|
|
7555
|
-
Object.defineProperty
|
|
7556
|
-
var
|
|
7557
|
-
var
|
|
7558
|
-
var
|
|
7626
|
+
var __defProp2 = Object.defineProperty;
|
|
7627
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7628
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7629
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7630
|
+
var __export = (target, all) => {
|
|
7631
|
+
for (var name in all)
|
|
7632
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7633
|
+
};
|
|
7634
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7635
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7636
|
+
for (let key of __getOwnPropNames2(from))
|
|
7637
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7638
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7639
|
+
}
|
|
7640
|
+
return to;
|
|
7641
|
+
};
|
|
7642
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7643
|
+
var dist_src_exports = {};
|
|
7644
|
+
__export(dist_src_exports, {
|
|
7645
|
+
GraphqlResponseError: () => GraphqlResponseError,
|
|
7646
|
+
graphql: () => graphql2,
|
|
7647
|
+
withCustomRequest: () => withCustomRequest
|
|
7648
|
+
});
|
|
7649
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7650
|
+
var import_request = require_dist_node5();
|
|
7651
|
+
var import_universal_user_agent = require_dist_node();
|
|
7652
|
+
var VERSION = "5.0.6";
|
|
7559
7653
|
function _buildMessageForResponseErrors(data) {
|
|
7560
7654
|
return `Request failed due to following response errors:
|
|
7561
7655
|
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
@@ -7574,24 +7668,36 @@ var require_dist_node6 = __commonJS({
|
|
|
7574
7668
|
}
|
|
7575
7669
|
}
|
|
7576
7670
|
};
|
|
7577
|
-
var NON_VARIABLE_OPTIONS = [
|
|
7671
|
+
var NON_VARIABLE_OPTIONS = [
|
|
7672
|
+
"method",
|
|
7673
|
+
"baseUrl",
|
|
7674
|
+
"url",
|
|
7675
|
+
"headers",
|
|
7676
|
+
"request",
|
|
7677
|
+
"query",
|
|
7678
|
+
"mediaType"
|
|
7679
|
+
];
|
|
7578
7680
|
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
7579
7681
|
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
7580
7682
|
function graphql(request2, query, options) {
|
|
7581
7683
|
if (options) {
|
|
7582
7684
|
if (typeof query === "string" && "query" in options) {
|
|
7583
|
-
return Promise.reject(
|
|
7685
|
+
return Promise.reject(
|
|
7686
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
7687
|
+
);
|
|
7584
7688
|
}
|
|
7585
7689
|
for (const key in options) {
|
|
7586
7690
|
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
|
7587
7691
|
continue;
|
|
7588
|
-
return Promise.reject(
|
|
7692
|
+
return Promise.reject(
|
|
7693
|
+
new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)
|
|
7694
|
+
);
|
|
7589
7695
|
}
|
|
7590
7696
|
}
|
|
7591
|
-
const parsedOptions = typeof query === "string" ? Object.assign({
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7697
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
7698
|
+
const requestOptions = Object.keys(
|
|
7699
|
+
parsedOptions
|
|
7700
|
+
).reduce((result, key) => {
|
|
7595
7701
|
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
7596
7702
|
result[key] = parsedOptions[key];
|
|
7597
7703
|
return result;
|
|
@@ -7612,7 +7718,11 @@ var require_dist_node6 = __commonJS({
|
|
|
7612
7718
|
for (const key of Object.keys(response2.headers)) {
|
|
7613
7719
|
headers[key] = response2.headers[key];
|
|
7614
7720
|
}
|
|
7615
|
-
throw new GraphqlResponseError(
|
|
7721
|
+
throw new GraphqlResponseError(
|
|
7722
|
+
requestOptions,
|
|
7723
|
+
headers,
|
|
7724
|
+
response2.data
|
|
7725
|
+
);
|
|
7616
7726
|
}
|
|
7617
7727
|
return response2.data.data;
|
|
7618
7728
|
});
|
|
@@ -7627,9 +7737,9 @@ var require_dist_node6 = __commonJS({
|
|
|
7627
7737
|
endpoint: newRequest.endpoint
|
|
7628
7738
|
});
|
|
7629
7739
|
}
|
|
7630
|
-
var
|
|
7740
|
+
var graphql2 = withDefaults(import_request.request, {
|
|
7631
7741
|
headers: {
|
|
7632
|
-
"user-agent": `octokit-graphql.js/${VERSION} ${
|
|
7742
|
+
"user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7633
7743
|
},
|
|
7634
7744
|
method: "POST",
|
|
7635
7745
|
url: "/graphql"
|
|
@@ -7640,17 +7750,35 @@ var require_dist_node6 = __commonJS({
|
|
|
7640
7750
|
url: "/graphql"
|
|
7641
7751
|
});
|
|
7642
7752
|
}
|
|
7643
|
-
exports2.GraphqlResponseError = GraphqlResponseError;
|
|
7644
|
-
exports2.graphql = graphql$1;
|
|
7645
|
-
exports2.withCustomRequest = withCustomRequest;
|
|
7646
7753
|
}
|
|
7647
7754
|
});
|
|
7648
7755
|
|
|
7649
7756
|
// node_modules/@octokit/auth-token/dist-node/index.js
|
|
7650
7757
|
var require_dist_node7 = __commonJS({
|
|
7651
|
-
"node_modules/@octokit/auth-token/dist-node/index.js"(exports2) {
|
|
7758
|
+
"node_modules/@octokit/auth-token/dist-node/index.js"(exports2, module2) {
|
|
7652
7759
|
"use strict";
|
|
7653
|
-
Object.defineProperty
|
|
7760
|
+
var __defProp2 = Object.defineProperty;
|
|
7761
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7762
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7763
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7764
|
+
var __export = (target, all) => {
|
|
7765
|
+
for (var name in all)
|
|
7766
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7767
|
+
};
|
|
7768
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7769
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7770
|
+
for (let key of __getOwnPropNames2(from))
|
|
7771
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7772
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7773
|
+
}
|
|
7774
|
+
return to;
|
|
7775
|
+
};
|
|
7776
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7777
|
+
var dist_src_exports = {};
|
|
7778
|
+
__export(dist_src_exports, {
|
|
7779
|
+
createTokenAuth: () => createTokenAuth
|
|
7780
|
+
});
|
|
7781
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7654
7782
|
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
7655
7783
|
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
7656
7784
|
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
@@ -7672,7 +7800,10 @@ var require_dist_node7 = __commonJS({
|
|
|
7672
7800
|
return `token ${token}`;
|
|
7673
7801
|
}
|
|
7674
7802
|
async function hook(token, request, route, parameters) {
|
|
7675
|
-
const endpoint = request.endpoint.merge(
|
|
7803
|
+
const endpoint = request.endpoint.merge(
|
|
7804
|
+
route,
|
|
7805
|
+
parameters
|
|
7806
|
+
);
|
|
7676
7807
|
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
|
7677
7808
|
return request(endpoint);
|
|
7678
7809
|
}
|
|
@@ -7681,33 +7812,92 @@ var require_dist_node7 = __commonJS({
|
|
|
7681
7812
|
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
7682
7813
|
}
|
|
7683
7814
|
if (typeof token !== "string") {
|
|
7684
|
-
throw new Error(
|
|
7815
|
+
throw new Error(
|
|
7816
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
7817
|
+
);
|
|
7685
7818
|
}
|
|
7686
7819
|
token = token.replace(/^(token|bearer) +/i, "");
|
|
7687
7820
|
return Object.assign(auth.bind(null, token), {
|
|
7688
7821
|
hook: hook.bind(null, token)
|
|
7689
7822
|
});
|
|
7690
7823
|
};
|
|
7691
|
-
exports2.createTokenAuth = createTokenAuth;
|
|
7692
7824
|
}
|
|
7693
7825
|
});
|
|
7694
7826
|
|
|
7695
7827
|
// node_modules/@octokit/core/dist-node/index.js
|
|
7696
7828
|
var require_dist_node8 = __commonJS({
|
|
7697
|
-
"node_modules/@octokit/core/dist-node/index.js"(exports2) {
|
|
7829
|
+
"node_modules/@octokit/core/dist-node/index.js"(exports2, module2) {
|
|
7698
7830
|
"use strict";
|
|
7699
|
-
Object.defineProperty
|
|
7700
|
-
var
|
|
7701
|
-
var
|
|
7702
|
-
var
|
|
7703
|
-
var
|
|
7704
|
-
|
|
7705
|
-
|
|
7831
|
+
var __defProp2 = Object.defineProperty;
|
|
7832
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7833
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7834
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7835
|
+
var __export = (target, all) => {
|
|
7836
|
+
for (var name in all)
|
|
7837
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7838
|
+
};
|
|
7839
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7840
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7841
|
+
for (let key of __getOwnPropNames2(from))
|
|
7842
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7843
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7844
|
+
}
|
|
7845
|
+
return to;
|
|
7846
|
+
};
|
|
7847
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7848
|
+
var dist_src_exports = {};
|
|
7849
|
+
__export(dist_src_exports, {
|
|
7850
|
+
Octokit: () => Octokit2
|
|
7851
|
+
});
|
|
7852
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7853
|
+
var import_universal_user_agent = require_dist_node();
|
|
7854
|
+
var import_before_after_hook = require_before_after_hook();
|
|
7855
|
+
var import_request = require_dist_node5();
|
|
7856
|
+
var import_graphql = require_dist_node6();
|
|
7857
|
+
var import_auth_token = require_dist_node7();
|
|
7858
|
+
var VERSION = "4.2.1";
|
|
7706
7859
|
var Octokit2 = class {
|
|
7860
|
+
static defaults(defaults) {
|
|
7861
|
+
const OctokitWithDefaults = class extends this {
|
|
7862
|
+
constructor(...args) {
|
|
7863
|
+
const options = args[0] || {};
|
|
7864
|
+
if (typeof defaults === "function") {
|
|
7865
|
+
super(defaults(options));
|
|
7866
|
+
return;
|
|
7867
|
+
}
|
|
7868
|
+
super(
|
|
7869
|
+
Object.assign(
|
|
7870
|
+
{},
|
|
7871
|
+
defaults,
|
|
7872
|
+
options,
|
|
7873
|
+
options.userAgent && defaults.userAgent ? {
|
|
7874
|
+
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
7875
|
+
} : null
|
|
7876
|
+
)
|
|
7877
|
+
);
|
|
7878
|
+
}
|
|
7879
|
+
};
|
|
7880
|
+
return OctokitWithDefaults;
|
|
7881
|
+
}
|
|
7882
|
+
/**
|
|
7883
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
7884
|
+
*
|
|
7885
|
+
* @example
|
|
7886
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
7887
|
+
*/
|
|
7888
|
+
static plugin(...newPlugins) {
|
|
7889
|
+
var _a;
|
|
7890
|
+
const currentPlugins = this.plugins;
|
|
7891
|
+
const NewOctokit = (_a = class extends this {
|
|
7892
|
+
}, _a.plugins = currentPlugins.concat(
|
|
7893
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
7894
|
+
), _a);
|
|
7895
|
+
return NewOctokit;
|
|
7896
|
+
}
|
|
7707
7897
|
constructor(options = {}) {
|
|
7708
|
-
const hook = new
|
|
7898
|
+
const hook = new import_before_after_hook.Collection();
|
|
7709
7899
|
const requestDefaults = {
|
|
7710
|
-
baseUrl:
|
|
7900
|
+
baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
|
|
7711
7901
|
headers: {},
|
|
7712
7902
|
request: Object.assign({}, options.request, {
|
|
7713
7903
|
// @ts-ignore internal usage only, no need to type
|
|
@@ -7718,7 +7908,10 @@ var require_dist_node8 = __commonJS({
|
|
|
7718
7908
|
format: ""
|
|
7719
7909
|
}
|
|
7720
7910
|
};
|
|
7721
|
-
requestDefaults.headers["user-agent"] = [
|
|
7911
|
+
requestDefaults.headers["user-agent"] = [
|
|
7912
|
+
options.userAgent,
|
|
7913
|
+
`octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7914
|
+
].filter(Boolean).join(" ");
|
|
7722
7915
|
if (options.baseUrl) {
|
|
7723
7916
|
requestDefaults.baseUrl = options.baseUrl;
|
|
7724
7917
|
}
|
|
@@ -7728,16 +7921,19 @@ var require_dist_node8 = __commonJS({
|
|
|
7728
7921
|
if (options.timeZone) {
|
|
7729
7922
|
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
7730
7923
|
}
|
|
7731
|
-
this.request =
|
|
7732
|
-
this.graphql =
|
|
7733
|
-
this.log = Object.assign(
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7924
|
+
this.request = import_request.request.defaults(requestDefaults);
|
|
7925
|
+
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
|
|
7926
|
+
this.log = Object.assign(
|
|
7927
|
+
{
|
|
7928
|
+
debug: () => {
|
|
7929
|
+
},
|
|
7930
|
+
info: () => {
|
|
7931
|
+
},
|
|
7932
|
+
warn: console.warn.bind(console),
|
|
7933
|
+
error: console.error.bind(console)
|
|
7737
7934
|
},
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
}, options.log);
|
|
7935
|
+
options.log
|
|
7936
|
+
);
|
|
7741
7937
|
this.hook = hook;
|
|
7742
7938
|
if (!options.authStrategy) {
|
|
7743
7939
|
if (!options.auth) {
|
|
@@ -7745,26 +7941,28 @@ var require_dist_node8 = __commonJS({
|
|
|
7745
7941
|
type: "unauthenticated"
|
|
7746
7942
|
});
|
|
7747
7943
|
} else {
|
|
7748
|
-
const auth =
|
|
7944
|
+
const auth = (0, import_auth_token.createTokenAuth)(options.auth);
|
|
7749
7945
|
hook.wrap("request", auth.hook);
|
|
7750
7946
|
this.auth = auth;
|
|
7751
7947
|
}
|
|
7752
7948
|
} else {
|
|
7753
|
-
const {
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7949
|
+
const { authStrategy, ...otherOptions } = options;
|
|
7950
|
+
const auth = authStrategy(
|
|
7951
|
+
Object.assign(
|
|
7952
|
+
{
|
|
7953
|
+
request: this.request,
|
|
7954
|
+
log: this.log,
|
|
7955
|
+
// we pass the current octokit instance as well as its constructor options
|
|
7956
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
7957
|
+
// that shares the same internal state as the current one. The original
|
|
7958
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
7959
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
7960
|
+
octokit: this,
|
|
7961
|
+
octokitOptions: otherOptions
|
|
7962
|
+
},
|
|
7963
|
+
options.auth
|
|
7964
|
+
)
|
|
7965
|
+
);
|
|
7768
7966
|
hook.wrap("request", auth.hook);
|
|
7769
7967
|
this.auth = auth;
|
|
7770
7968
|
}
|
|
@@ -7773,38 +7971,9 @@ var require_dist_node8 = __commonJS({
|
|
|
7773
7971
|
Object.assign(this, plugin(this, options));
|
|
7774
7972
|
});
|
|
7775
7973
|
}
|
|
7776
|
-
static defaults(defaults) {
|
|
7777
|
-
const OctokitWithDefaults = class extends this {
|
|
7778
|
-
constructor(...args) {
|
|
7779
|
-
const options = args[0] || {};
|
|
7780
|
-
if (typeof defaults === "function") {
|
|
7781
|
-
super(defaults(options));
|
|
7782
|
-
return;
|
|
7783
|
-
}
|
|
7784
|
-
super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? {
|
|
7785
|
-
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
7786
|
-
} : null));
|
|
7787
|
-
}
|
|
7788
|
-
};
|
|
7789
|
-
return OctokitWithDefaults;
|
|
7790
|
-
}
|
|
7791
|
-
/**
|
|
7792
|
-
* Attach a plugin (or many) to your Octokit instance.
|
|
7793
|
-
*
|
|
7794
|
-
* @example
|
|
7795
|
-
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
7796
|
-
*/
|
|
7797
|
-
static plugin(...newPlugins) {
|
|
7798
|
-
var _a;
|
|
7799
|
-
const currentPlugins = this.plugins;
|
|
7800
|
-
const NewOctokit = (_a = class extends this {
|
|
7801
|
-
}, _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))), _a);
|
|
7802
|
-
return NewOctokit;
|
|
7803
|
-
}
|
|
7804
7974
|
};
|
|
7805
7975
|
Octokit2.VERSION = VERSION;
|
|
7806
7976
|
Octokit2.plugins = [];
|
|
7807
|
-
exports2.Octokit = Octokit2;
|
|
7808
7977
|
}
|
|
7809
7978
|
});
|
|
7810
7979
|
|
|
@@ -7836,10 +8005,34 @@ var require_dist_node9 = __commonJS({
|
|
|
7836
8005
|
|
|
7837
8006
|
// node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
|
|
7838
8007
|
var require_dist_node10 = __commonJS({
|
|
7839
|
-
"node_modules/@octokit/plugin-paginate-rest/dist-node/index.js"(exports2) {
|
|
8008
|
+
"node_modules/@octokit/plugin-paginate-rest/dist-node/index.js"(exports2, module2) {
|
|
7840
8009
|
"use strict";
|
|
7841
|
-
Object.defineProperty
|
|
7842
|
-
var
|
|
8010
|
+
var __defProp2 = Object.defineProperty;
|
|
8011
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8012
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8013
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8014
|
+
var __export = (target, all) => {
|
|
8015
|
+
for (var name in all)
|
|
8016
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8017
|
+
};
|
|
8018
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
8019
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8020
|
+
for (let key of __getOwnPropNames2(from))
|
|
8021
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8022
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8023
|
+
}
|
|
8024
|
+
return to;
|
|
8025
|
+
};
|
|
8026
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8027
|
+
var dist_src_exports = {};
|
|
8028
|
+
__export(dist_src_exports, {
|
|
8029
|
+
composePaginateRest: () => composePaginateRest,
|
|
8030
|
+
isPaginatingEndpoint: () => isPaginatingEndpoint,
|
|
8031
|
+
paginateRest: () => paginateRest,
|
|
8032
|
+
paginatingEndpoints: () => paginatingEndpoints
|
|
8033
|
+
});
|
|
8034
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
8035
|
+
var VERSION = "6.1.2";
|
|
7843
8036
|
function normalizePaginatedListResponse(response2) {
|
|
7844
8037
|
if (!response2.data) {
|
|
7845
8038
|
return {
|
|
@@ -7878,20 +8071,14 @@ var require_dist_node10 = __commonJS({
|
|
|
7878
8071
|
[Symbol.asyncIterator]: () => ({
|
|
7879
8072
|
async next() {
|
|
7880
8073
|
if (!url)
|
|
7881
|
-
return {
|
|
7882
|
-
done: true
|
|
7883
|
-
};
|
|
8074
|
+
return { done: true };
|
|
7884
8075
|
try {
|
|
7885
|
-
const response2 = await requestMethod({
|
|
7886
|
-
method,
|
|
7887
|
-
url,
|
|
7888
|
-
headers
|
|
7889
|
-
});
|
|
8076
|
+
const response2 = await requestMethod({ method, url, headers });
|
|
7890
8077
|
const normalizedResponse = normalizePaginatedListResponse(response2);
|
|
7891
|
-
url = ((normalizedResponse.headers.link || "").match(
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
};
|
|
8078
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
8079
|
+
/<([^>]+)>;\s*rel="next"/
|
|
8080
|
+
) || [])[1];
|
|
8081
|
+
return { value: normalizedResponse };
|
|
7895
8082
|
} catch (error) {
|
|
7896
8083
|
if (error.status !== 409)
|
|
7897
8084
|
throw error;
|
|
@@ -7913,7 +8100,12 @@ var require_dist_node10 = __commonJS({
|
|
|
7913
8100
|
mapFn = parameters;
|
|
7914
8101
|
parameters = void 0;
|
|
7915
8102
|
}
|
|
7916
|
-
return gather(
|
|
8103
|
+
return gather(
|
|
8104
|
+
octokit,
|
|
8105
|
+
[],
|
|
8106
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
8107
|
+
mapFn
|
|
8108
|
+
);
|
|
7917
8109
|
}
|
|
7918
8110
|
function gather(octokit, results, iterator2, mapFn) {
|
|
7919
8111
|
return iterator2.next().then((result) => {
|
|
@@ -7924,7 +8116,9 @@ var require_dist_node10 = __commonJS({
|
|
|
7924
8116
|
function done() {
|
|
7925
8117
|
earlyExit = true;
|
|
7926
8118
|
}
|
|
7927
|
-
results = results.concat(
|
|
8119
|
+
results = results.concat(
|
|
8120
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
8121
|
+
);
|
|
7928
8122
|
if (earlyExit) {
|
|
7929
8123
|
return results;
|
|
7930
8124
|
}
|
|
@@ -7934,7 +8128,230 @@ var require_dist_node10 = __commonJS({
|
|
|
7934
8128
|
var composePaginateRest = Object.assign(paginate, {
|
|
7935
8129
|
iterator
|
|
7936
8130
|
});
|
|
7937
|
-
var paginatingEndpoints = [
|
|
8131
|
+
var paginatingEndpoints = [
|
|
8132
|
+
"GET /app/hook/deliveries",
|
|
8133
|
+
"GET /app/installation-requests",
|
|
8134
|
+
"GET /app/installations",
|
|
8135
|
+
"GET /enterprises/{enterprise}/dependabot/alerts",
|
|
8136
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
|
8137
|
+
"GET /events",
|
|
8138
|
+
"GET /gists",
|
|
8139
|
+
"GET /gists/public",
|
|
8140
|
+
"GET /gists/starred",
|
|
8141
|
+
"GET /gists/{gist_id}/comments",
|
|
8142
|
+
"GET /gists/{gist_id}/commits",
|
|
8143
|
+
"GET /gists/{gist_id}/forks",
|
|
8144
|
+
"GET /installation/repositories",
|
|
8145
|
+
"GET /issues",
|
|
8146
|
+
"GET /licenses",
|
|
8147
|
+
"GET /marketplace_listing/plans",
|
|
8148
|
+
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
|
8149
|
+
"GET /marketplace_listing/stubbed/plans",
|
|
8150
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
|
8151
|
+
"GET /networks/{owner}/{repo}/events",
|
|
8152
|
+
"GET /notifications",
|
|
8153
|
+
"GET /organizations",
|
|
8154
|
+
"GET /organizations/{org}/personal-access-token-requests",
|
|
8155
|
+
"GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
|
8156
|
+
"GET /organizations/{org}/personal-access-tokens",
|
|
8157
|
+
"GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories",
|
|
8158
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
|
8159
|
+
"GET /orgs/{org}/actions/permissions/repositories",
|
|
8160
|
+
"GET /orgs/{org}/actions/required_workflows",
|
|
8161
|
+
"GET /orgs/{org}/actions/runners",
|
|
8162
|
+
"GET /orgs/{org}/actions/secrets",
|
|
8163
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
|
8164
|
+
"GET /orgs/{org}/actions/variables",
|
|
8165
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
|
8166
|
+
"GET /orgs/{org}/blocks",
|
|
8167
|
+
"GET /orgs/{org}/code-scanning/alerts",
|
|
8168
|
+
"GET /orgs/{org}/codespaces",
|
|
8169
|
+
"GET /orgs/{org}/codespaces/secrets",
|
|
8170
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
|
8171
|
+
"GET /orgs/{org}/dependabot/alerts",
|
|
8172
|
+
"GET /orgs/{org}/dependabot/secrets",
|
|
8173
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
|
8174
|
+
"GET /orgs/{org}/events",
|
|
8175
|
+
"GET /orgs/{org}/failed_invitations",
|
|
8176
|
+
"GET /orgs/{org}/hooks",
|
|
8177
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
|
8178
|
+
"GET /orgs/{org}/installations",
|
|
8179
|
+
"GET /orgs/{org}/invitations",
|
|
8180
|
+
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
|
8181
|
+
"GET /orgs/{org}/issues",
|
|
8182
|
+
"GET /orgs/{org}/members",
|
|
8183
|
+
"GET /orgs/{org}/members/{username}/codespaces",
|
|
8184
|
+
"GET /orgs/{org}/migrations",
|
|
8185
|
+
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
|
8186
|
+
"GET /orgs/{org}/outside_collaborators",
|
|
8187
|
+
"GET /orgs/{org}/packages",
|
|
8188
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
8189
|
+
"GET /orgs/{org}/projects",
|
|
8190
|
+
"GET /orgs/{org}/public_members",
|
|
8191
|
+
"GET /orgs/{org}/repos",
|
|
8192
|
+
"GET /orgs/{org}/secret-scanning/alerts",
|
|
8193
|
+
"GET /orgs/{org}/teams",
|
|
8194
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
|
8195
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
|
8196
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
8197
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
|
8198
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
|
8199
|
+
"GET /orgs/{org}/teams/{team_slug}/members",
|
|
8200
|
+
"GET /orgs/{org}/teams/{team_slug}/projects",
|
|
8201
|
+
"GET /orgs/{org}/teams/{team_slug}/repos",
|
|
8202
|
+
"GET /orgs/{org}/teams/{team_slug}/teams",
|
|
8203
|
+
"GET /projects/columns/{column_id}/cards",
|
|
8204
|
+
"GET /projects/{project_id}/collaborators",
|
|
8205
|
+
"GET /projects/{project_id}/columns",
|
|
8206
|
+
"GET /repos/{org}/{repo}/actions/required_workflows",
|
|
8207
|
+
"GET /repos/{owner}/{repo}/actions/artifacts",
|
|
8208
|
+
"GET /repos/{owner}/{repo}/actions/caches",
|
|
8209
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
|
8210
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
|
8211
|
+
"GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs",
|
|
8212
|
+
"GET /repos/{owner}/{repo}/actions/runners",
|
|
8213
|
+
"GET /repos/{owner}/{repo}/actions/runs",
|
|
8214
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
|
8215
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
|
8216
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
|
8217
|
+
"GET /repos/{owner}/{repo}/actions/secrets",
|
|
8218
|
+
"GET /repos/{owner}/{repo}/actions/variables",
|
|
8219
|
+
"GET /repos/{owner}/{repo}/actions/workflows",
|
|
8220
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
|
8221
|
+
"GET /repos/{owner}/{repo}/assignees",
|
|
8222
|
+
"GET /repos/{owner}/{repo}/branches",
|
|
8223
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
|
8224
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
|
8225
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
|
8226
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
8227
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
|
8228
|
+
"GET /repos/{owner}/{repo}/codespaces",
|
|
8229
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
|
8230
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
|
8231
|
+
"GET /repos/{owner}/{repo}/collaborators",
|
|
8232
|
+
"GET /repos/{owner}/{repo}/comments",
|
|
8233
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
|
8234
|
+
"GET /repos/{owner}/{repo}/commits",
|
|
8235
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
|
8236
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
|
8237
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
|
8238
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
|
8239
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
|
8240
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
|
8241
|
+
"GET /repos/{owner}/{repo}/contributors",
|
|
8242
|
+
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
|
8243
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
|
8244
|
+
"GET /repos/{owner}/{repo}/deployments",
|
|
8245
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
|
8246
|
+
"GET /repos/{owner}/{repo}/environments",
|
|
8247
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
|
8248
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
|
8249
|
+
"GET /repos/{owner}/{repo}/events",
|
|
8250
|
+
"GET /repos/{owner}/{repo}/forks",
|
|
8251
|
+
"GET /repos/{owner}/{repo}/hooks",
|
|
8252
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
|
8253
|
+
"GET /repos/{owner}/{repo}/invitations",
|
|
8254
|
+
"GET /repos/{owner}/{repo}/issues",
|
|
8255
|
+
"GET /repos/{owner}/{repo}/issues/comments",
|
|
8256
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
|
8257
|
+
"GET /repos/{owner}/{repo}/issues/events",
|
|
8258
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
8259
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
|
8260
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
8261
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
|
8262
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
|
8263
|
+
"GET /repos/{owner}/{repo}/keys",
|
|
8264
|
+
"GET /repos/{owner}/{repo}/labels",
|
|
8265
|
+
"GET /repos/{owner}/{repo}/milestones",
|
|
8266
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
|
8267
|
+
"GET /repos/{owner}/{repo}/notifications",
|
|
8268
|
+
"GET /repos/{owner}/{repo}/pages/builds",
|
|
8269
|
+
"GET /repos/{owner}/{repo}/projects",
|
|
8270
|
+
"GET /repos/{owner}/{repo}/pulls",
|
|
8271
|
+
"GET /repos/{owner}/{repo}/pulls/comments",
|
|
8272
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
|
8273
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
|
8274
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
|
8275
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
|
8276
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
|
8277
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
|
8278
|
+
"GET /repos/{owner}/{repo}/releases",
|
|
8279
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
|
8280
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
|
8281
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
|
8282
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
|
8283
|
+
"GET /repos/{owner}/{repo}/security-advisories",
|
|
8284
|
+
"GET /repos/{owner}/{repo}/stargazers",
|
|
8285
|
+
"GET /repos/{owner}/{repo}/subscribers",
|
|
8286
|
+
"GET /repos/{owner}/{repo}/tags",
|
|
8287
|
+
"GET /repos/{owner}/{repo}/teams",
|
|
8288
|
+
"GET /repos/{owner}/{repo}/topics",
|
|
8289
|
+
"GET /repositories",
|
|
8290
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets",
|
|
8291
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables",
|
|
8292
|
+
"GET /search/code",
|
|
8293
|
+
"GET /search/commits",
|
|
8294
|
+
"GET /search/issues",
|
|
8295
|
+
"GET /search/labels",
|
|
8296
|
+
"GET /search/repositories",
|
|
8297
|
+
"GET /search/topics",
|
|
8298
|
+
"GET /search/users",
|
|
8299
|
+
"GET /teams/{team_id}/discussions",
|
|
8300
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
|
8301
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
8302
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
|
8303
|
+
"GET /teams/{team_id}/invitations",
|
|
8304
|
+
"GET /teams/{team_id}/members",
|
|
8305
|
+
"GET /teams/{team_id}/projects",
|
|
8306
|
+
"GET /teams/{team_id}/repos",
|
|
8307
|
+
"GET /teams/{team_id}/teams",
|
|
8308
|
+
"GET /user/blocks",
|
|
8309
|
+
"GET /user/codespaces",
|
|
8310
|
+
"GET /user/codespaces/secrets",
|
|
8311
|
+
"GET /user/emails",
|
|
8312
|
+
"GET /user/followers",
|
|
8313
|
+
"GET /user/following",
|
|
8314
|
+
"GET /user/gpg_keys",
|
|
8315
|
+
"GET /user/installations",
|
|
8316
|
+
"GET /user/installations/{installation_id}/repositories",
|
|
8317
|
+
"GET /user/issues",
|
|
8318
|
+
"GET /user/keys",
|
|
8319
|
+
"GET /user/marketplace_purchases",
|
|
8320
|
+
"GET /user/marketplace_purchases/stubbed",
|
|
8321
|
+
"GET /user/memberships/orgs",
|
|
8322
|
+
"GET /user/migrations",
|
|
8323
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
8324
|
+
"GET /user/orgs",
|
|
8325
|
+
"GET /user/packages",
|
|
8326
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
8327
|
+
"GET /user/public_emails",
|
|
8328
|
+
"GET /user/repos",
|
|
8329
|
+
"GET /user/repository_invitations",
|
|
8330
|
+
"GET /user/social_accounts",
|
|
8331
|
+
"GET /user/ssh_signing_keys",
|
|
8332
|
+
"GET /user/starred",
|
|
8333
|
+
"GET /user/subscriptions",
|
|
8334
|
+
"GET /user/teams",
|
|
8335
|
+
"GET /users",
|
|
8336
|
+
"GET /users/{username}/events",
|
|
8337
|
+
"GET /users/{username}/events/orgs/{org}",
|
|
8338
|
+
"GET /users/{username}/events/public",
|
|
8339
|
+
"GET /users/{username}/followers",
|
|
8340
|
+
"GET /users/{username}/following",
|
|
8341
|
+
"GET /users/{username}/gists",
|
|
8342
|
+
"GET /users/{username}/gpg_keys",
|
|
8343
|
+
"GET /users/{username}/keys",
|
|
8344
|
+
"GET /users/{username}/orgs",
|
|
8345
|
+
"GET /users/{username}/packages",
|
|
8346
|
+
"GET /users/{username}/projects",
|
|
8347
|
+
"GET /users/{username}/received_events",
|
|
8348
|
+
"GET /users/{username}/received_events/public",
|
|
8349
|
+
"GET /users/{username}/repos",
|
|
8350
|
+
"GET /users/{username}/social_accounts",
|
|
8351
|
+
"GET /users/{username}/ssh_signing_keys",
|
|
8352
|
+
"GET /users/{username}/starred",
|
|
8353
|
+
"GET /users/{username}/subscriptions"
|
|
8354
|
+
];
|
|
7938
8355
|
function isPaginatingEndpoint(arg) {
|
|
7939
8356
|
if (typeof arg === "string") {
|
|
7940
8357
|
return paginatingEndpoints.includes(arg);
|
|
@@ -7950,172 +8367,405 @@ var require_dist_node10 = __commonJS({
|
|
|
7950
8367
|
};
|
|
7951
8368
|
}
|
|
7952
8369
|
paginateRest.VERSION = VERSION;
|
|
7953
|
-
exports2.composePaginateRest = composePaginateRest;
|
|
7954
|
-
exports2.isPaginatingEndpoint = isPaginatingEndpoint;
|
|
7955
|
-
exports2.paginateRest = paginateRest;
|
|
7956
|
-
exports2.paginatingEndpoints = paginatingEndpoints;
|
|
7957
8370
|
}
|
|
7958
8371
|
});
|
|
7959
8372
|
|
|
7960
8373
|
// node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js
|
|
7961
8374
|
var require_dist_node11 = __commonJS({
|
|
7962
|
-
"node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js"(exports2) {
|
|
8375
|
+
"node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js"(exports2, module2) {
|
|
7963
8376
|
"use strict";
|
|
7964
|
-
Object.defineProperty
|
|
8377
|
+
var __defProp2 = Object.defineProperty;
|
|
8378
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8379
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8380
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8381
|
+
var __export = (target, all) => {
|
|
8382
|
+
for (var name in all)
|
|
8383
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8384
|
+
};
|
|
8385
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
8386
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8387
|
+
for (let key of __getOwnPropNames2(from))
|
|
8388
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8389
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8390
|
+
}
|
|
8391
|
+
return to;
|
|
8392
|
+
};
|
|
8393
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8394
|
+
var dist_src_exports = {};
|
|
8395
|
+
__export(dist_src_exports, {
|
|
8396
|
+
legacyRestEndpointMethods: () => legacyRestEndpointMethods,
|
|
8397
|
+
restEndpointMethods: () => restEndpointMethods
|
|
8398
|
+
});
|
|
8399
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7965
8400
|
var Endpoints = {
|
|
7966
8401
|
actions: {
|
|
7967
|
-
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
8402
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
8403
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8404
|
+
],
|
|
8405
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
8406
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8407
|
+
],
|
|
8408
|
+
addSelectedRepoToOrgSecret: [
|
|
8409
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
8410
|
+
],
|
|
8411
|
+
addSelectedRepoToOrgVariable: [
|
|
8412
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
8413
|
+
],
|
|
8414
|
+
addSelectedRepoToRequiredWorkflow: [
|
|
8415
|
+
"PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
8416
|
+
],
|
|
8417
|
+
approveWorkflowRun: [
|
|
8418
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
8419
|
+
],
|
|
8420
|
+
cancelWorkflowRun: [
|
|
8421
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
8422
|
+
],
|
|
8423
|
+
createEnvironmentVariable: [
|
|
8424
|
+
"POST /repositories/{repository_id}/environments/{environment_name}/variables"
|
|
8425
|
+
],
|
|
8426
|
+
createOrUpdateEnvironmentSecret: [
|
|
8427
|
+
"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8428
|
+
],
|
|
7976
8429
|
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
7977
|
-
createOrUpdateRepoSecret: [
|
|
8430
|
+
createOrUpdateRepoSecret: [
|
|
8431
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8432
|
+
],
|
|
7978
8433
|
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
7979
|
-
createRegistrationTokenForOrg: [
|
|
7980
|
-
|
|
8434
|
+
createRegistrationTokenForOrg: [
|
|
8435
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
8436
|
+
],
|
|
8437
|
+
createRegistrationTokenForRepo: [
|
|
8438
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
8439
|
+
],
|
|
7981
8440
|
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
7982
|
-
createRemoveTokenForRepo: [
|
|
8441
|
+
createRemoveTokenForRepo: [
|
|
8442
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
8443
|
+
],
|
|
7983
8444
|
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
7984
8445
|
createRequiredWorkflow: ["POST /orgs/{org}/actions/required_workflows"],
|
|
7985
|
-
createWorkflowDispatch: [
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
8446
|
+
createWorkflowDispatch: [
|
|
8447
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
8448
|
+
],
|
|
8449
|
+
deleteActionsCacheById: [
|
|
8450
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
8451
|
+
],
|
|
8452
|
+
deleteActionsCacheByKey: [
|
|
8453
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
8454
|
+
],
|
|
8455
|
+
deleteArtifact: [
|
|
8456
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
8457
|
+
],
|
|
8458
|
+
deleteEnvironmentSecret: [
|
|
8459
|
+
"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8460
|
+
],
|
|
8461
|
+
deleteEnvironmentVariable: [
|
|
8462
|
+
"DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8463
|
+
],
|
|
7991
8464
|
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
7992
8465
|
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
7993
|
-
deleteRepoSecret: [
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
8466
|
+
deleteRepoSecret: [
|
|
8467
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8468
|
+
],
|
|
8469
|
+
deleteRepoVariable: [
|
|
8470
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
8471
|
+
],
|
|
8472
|
+
deleteRequiredWorkflow: [
|
|
8473
|
+
"DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8474
|
+
],
|
|
8475
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
8476
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
8477
|
+
],
|
|
8478
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
8479
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
8480
|
+
],
|
|
7998
8481
|
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
7999
|
-
deleteWorkflowRunLogs: [
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8482
|
+
deleteWorkflowRunLogs: [
|
|
8483
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
8484
|
+
],
|
|
8485
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
8486
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
8487
|
+
],
|
|
8488
|
+
disableWorkflow: [
|
|
8489
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
8490
|
+
],
|
|
8491
|
+
downloadArtifact: [
|
|
8492
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
8493
|
+
],
|
|
8494
|
+
downloadJobLogsForWorkflowRun: [
|
|
8495
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
8496
|
+
],
|
|
8497
|
+
downloadWorkflowRunAttemptLogs: [
|
|
8498
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
8499
|
+
],
|
|
8500
|
+
downloadWorkflowRunLogs: [
|
|
8501
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
8502
|
+
],
|
|
8503
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
8504
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
8505
|
+
],
|
|
8506
|
+
enableWorkflow: [
|
|
8507
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
8508
|
+
],
|
|
8509
|
+
generateRunnerJitconfigForOrg: [
|
|
8510
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
8511
|
+
],
|
|
8512
|
+
generateRunnerJitconfigForRepo: [
|
|
8513
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
8514
|
+
],
|
|
8008
8515
|
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
8009
8516
|
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
8010
|
-
getActionsCacheUsageByRepoForOrg: [
|
|
8517
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
8518
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
8519
|
+
],
|
|
8011
8520
|
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
8012
|
-
getAllowedActionsOrganization: [
|
|
8013
|
-
|
|
8521
|
+
getAllowedActionsOrganization: [
|
|
8522
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
8523
|
+
],
|
|
8524
|
+
getAllowedActionsRepository: [
|
|
8525
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
8526
|
+
],
|
|
8014
8527
|
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
8015
|
-
getEnvironmentPublicKey: [
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8528
|
+
getEnvironmentPublicKey: [
|
|
8529
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
|
8530
|
+
],
|
|
8531
|
+
getEnvironmentSecret: [
|
|
8532
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8533
|
+
],
|
|
8534
|
+
getEnvironmentVariable: [
|
|
8535
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8536
|
+
],
|
|
8537
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
8538
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
8539
|
+
],
|
|
8540
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
8541
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
8542
|
+
],
|
|
8543
|
+
getGithubActionsPermissionsOrganization: [
|
|
8544
|
+
"GET /orgs/{org}/actions/permissions"
|
|
8545
|
+
],
|
|
8546
|
+
getGithubActionsPermissionsRepository: [
|
|
8547
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
8548
|
+
],
|
|
8022
8549
|
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
8023
8550
|
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
8024
8551
|
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
8025
8552
|
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
8026
|
-
getPendingDeploymentsForRun: [
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8553
|
+
getPendingDeploymentsForRun: [
|
|
8554
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
8555
|
+
],
|
|
8556
|
+
getRepoPermissions: [
|
|
8557
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
8558
|
+
{},
|
|
8559
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
8560
|
+
],
|
|
8030
8561
|
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
8031
|
-
getRepoRequiredWorkflow: [
|
|
8032
|
-
|
|
8562
|
+
getRepoRequiredWorkflow: [
|
|
8563
|
+
"GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
|
|
8564
|
+
],
|
|
8565
|
+
getRepoRequiredWorkflowUsage: [
|
|
8566
|
+
"GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
|
|
8567
|
+
],
|
|
8033
8568
|
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
8034
8569
|
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
8035
|
-
getRequiredWorkflow: [
|
|
8036
|
-
|
|
8570
|
+
getRequiredWorkflow: [
|
|
8571
|
+
"GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8572
|
+
],
|
|
8573
|
+
getReviewsForRun: [
|
|
8574
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
8575
|
+
],
|
|
8037
8576
|
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
8038
|
-
getSelfHostedRunnerForRepo: [
|
|
8577
|
+
getSelfHostedRunnerForRepo: [
|
|
8578
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
8579
|
+
],
|
|
8039
8580
|
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
8040
|
-
getWorkflowAccessToRepository: [
|
|
8581
|
+
getWorkflowAccessToRepository: [
|
|
8582
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
8583
|
+
],
|
|
8041
8584
|
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
8042
|
-
getWorkflowRunAttempt: [
|
|
8043
|
-
|
|
8044
|
-
|
|
8585
|
+
getWorkflowRunAttempt: [
|
|
8586
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
8587
|
+
],
|
|
8588
|
+
getWorkflowRunUsage: [
|
|
8589
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
8590
|
+
],
|
|
8591
|
+
getWorkflowUsage: [
|
|
8592
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
8593
|
+
],
|
|
8045
8594
|
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
8046
|
-
listEnvironmentSecrets: [
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8595
|
+
listEnvironmentSecrets: [
|
|
8596
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets"
|
|
8597
|
+
],
|
|
8598
|
+
listEnvironmentVariables: [
|
|
8599
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables"
|
|
8600
|
+
],
|
|
8601
|
+
listJobsForWorkflowRun: [
|
|
8602
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
8603
|
+
],
|
|
8604
|
+
listJobsForWorkflowRunAttempt: [
|
|
8605
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
8606
|
+
],
|
|
8607
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
8608
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8609
|
+
],
|
|
8610
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
8611
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8612
|
+
],
|
|
8052
8613
|
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
8053
8614
|
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
8054
|
-
|
|
8615
|
+
listRepoOrganizationSecrets: [
|
|
8616
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
8617
|
+
],
|
|
8618
|
+
listRepoOrganizationVariables: [
|
|
8619
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
8620
|
+
],
|
|
8621
|
+
listRepoRequiredWorkflows: [
|
|
8622
|
+
"GET /repos/{org}/{repo}/actions/required_workflows"
|
|
8623
|
+
],
|
|
8055
8624
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
8056
8625
|
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
8057
8626
|
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
8058
|
-
listRequiredWorkflowRuns: [
|
|
8627
|
+
listRequiredWorkflowRuns: [
|
|
8628
|
+
"GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
|
|
8629
|
+
],
|
|
8059
8630
|
listRequiredWorkflows: ["GET /orgs/{org}/actions/required_workflows"],
|
|
8060
8631
|
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
8061
|
-
listRunnerApplicationsForRepo: [
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8632
|
+
listRunnerApplicationsForRepo: [
|
|
8633
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
8634
|
+
],
|
|
8635
|
+
listSelectedReposForOrgSecret: [
|
|
8636
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
8637
|
+
],
|
|
8638
|
+
listSelectedReposForOrgVariable: [
|
|
8639
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
8640
|
+
],
|
|
8641
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
8642
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
8643
|
+
],
|
|
8644
|
+
listSelectedRepositoriesRequiredWorkflow: [
|
|
8645
|
+
"GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
8646
|
+
],
|
|
8066
8647
|
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
8067
8648
|
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
8068
|
-
listWorkflowRunArtifacts: [
|
|
8069
|
-
|
|
8649
|
+
listWorkflowRunArtifacts: [
|
|
8650
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
8651
|
+
],
|
|
8652
|
+
listWorkflowRuns: [
|
|
8653
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
8654
|
+
],
|
|
8070
8655
|
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
8071
|
-
reRunJobForWorkflowRun: [
|
|
8656
|
+
reRunJobForWorkflowRun: [
|
|
8657
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
8658
|
+
],
|
|
8072
8659
|
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
8073
|
-
reRunWorkflowFailedJobs: [
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8660
|
+
reRunWorkflowFailedJobs: [
|
|
8661
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
8662
|
+
],
|
|
8663
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
8664
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8665
|
+
],
|
|
8666
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
8667
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8668
|
+
],
|
|
8669
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
8670
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
8671
|
+
],
|
|
8672
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
8673
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
8674
|
+
],
|
|
8675
|
+
removeSelectedRepoFromOrgSecret: [
|
|
8676
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
8677
|
+
],
|
|
8678
|
+
removeSelectedRepoFromOrgVariable: [
|
|
8679
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
8680
|
+
],
|
|
8681
|
+
removeSelectedRepoFromRequiredWorkflow: [
|
|
8682
|
+
"DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
8683
|
+
],
|
|
8684
|
+
reviewCustomGatesForRun: [
|
|
8685
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
8686
|
+
],
|
|
8687
|
+
reviewPendingDeploymentsForRun: [
|
|
8688
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
8689
|
+
],
|
|
8690
|
+
setAllowedActionsOrganization: [
|
|
8691
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
8692
|
+
],
|
|
8693
|
+
setAllowedActionsRepository: [
|
|
8694
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
8695
|
+
],
|
|
8696
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
8697
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8698
|
+
],
|
|
8699
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
8700
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8701
|
+
],
|
|
8702
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
8703
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
8704
|
+
],
|
|
8705
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
8706
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
8707
|
+
],
|
|
8708
|
+
setGithubActionsPermissionsOrganization: [
|
|
8709
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
8710
|
+
],
|
|
8711
|
+
setGithubActionsPermissionsRepository: [
|
|
8712
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
8713
|
+
],
|
|
8714
|
+
setSelectedReposForOrgSecret: [
|
|
8715
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
8716
|
+
],
|
|
8717
|
+
setSelectedReposForOrgVariable: [
|
|
8718
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
8719
|
+
],
|
|
8720
|
+
setSelectedReposToRequiredWorkflow: [
|
|
8721
|
+
"PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
8722
|
+
],
|
|
8723
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
8724
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
8725
|
+
],
|
|
8726
|
+
setWorkflowAccessToRepository: [
|
|
8727
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
8728
|
+
],
|
|
8729
|
+
updateEnvironmentVariable: [
|
|
8730
|
+
"PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8731
|
+
],
|
|
8096
8732
|
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
8097
|
-
updateRepoVariable: [
|
|
8098
|
-
|
|
8733
|
+
updateRepoVariable: [
|
|
8734
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
8735
|
+
],
|
|
8736
|
+
updateRequiredWorkflow: [
|
|
8737
|
+
"PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8738
|
+
]
|
|
8099
8739
|
},
|
|
8100
8740
|
activity: {
|
|
8101
8741
|
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
8102
8742
|
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
8103
|
-
deleteThreadSubscription: [
|
|
8743
|
+
deleteThreadSubscription: [
|
|
8744
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
8745
|
+
],
|
|
8104
8746
|
getFeeds: ["GET /feeds"],
|
|
8105
8747
|
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
8106
8748
|
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
8107
|
-
getThreadSubscriptionForAuthenticatedUser: [
|
|
8749
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
8750
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
8751
|
+
],
|
|
8108
8752
|
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
8109
8753
|
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
8110
|
-
listOrgEventsForAuthenticatedUser: [
|
|
8754
|
+
listOrgEventsForAuthenticatedUser: [
|
|
8755
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
8756
|
+
],
|
|
8111
8757
|
listPublicEvents: ["GET /events"],
|
|
8112
8758
|
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
8113
8759
|
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
8114
8760
|
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
8115
8761
|
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
8116
|
-
listReceivedPublicEventsForUser: [
|
|
8762
|
+
listReceivedPublicEventsForUser: [
|
|
8763
|
+
"GET /users/{username}/received_events/public"
|
|
8764
|
+
],
|
|
8117
8765
|
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
8118
|
-
listRepoNotificationsForAuthenticatedUser: [
|
|
8766
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
8767
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
8768
|
+
],
|
|
8119
8769
|
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
8120
8770
|
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
8121
8771
|
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
@@ -8126,18 +8776,26 @@ var require_dist_node11 = __commonJS({
|
|
|
8126
8776
|
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
8127
8777
|
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
8128
8778
|
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
8129
|
-
setThreadSubscription: [
|
|
8779
|
+
setThreadSubscription: [
|
|
8780
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
8781
|
+
],
|
|
8130
8782
|
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
8131
8783
|
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
8132
8784
|
},
|
|
8133
8785
|
apps: {
|
|
8134
|
-
addRepoToInstallation: [
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8786
|
+
addRepoToInstallation: [
|
|
8787
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
8788
|
+
{},
|
|
8789
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
8790
|
+
],
|
|
8791
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
8792
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
8793
|
+
],
|
|
8138
8794
|
checkToken: ["POST /applications/{client_id}/token"],
|
|
8139
8795
|
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
8140
|
-
createInstallationAccessToken: [
|
|
8796
|
+
createInstallationAccessToken: [
|
|
8797
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
8798
|
+
],
|
|
8141
8799
|
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
8142
8800
|
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
8143
8801
|
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
@@ -8146,75 +8804,132 @@ var require_dist_node11 = __commonJS({
|
|
|
8146
8804
|
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
8147
8805
|
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
8148
8806
|
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
8149
|
-
getSubscriptionPlanForAccount: [
|
|
8150
|
-
|
|
8807
|
+
getSubscriptionPlanForAccount: [
|
|
8808
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
8809
|
+
],
|
|
8810
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
8811
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
8812
|
+
],
|
|
8151
8813
|
getUserInstallation: ["GET /users/{username}/installation"],
|
|
8152
8814
|
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
8153
8815
|
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
8154
8816
|
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
8155
|
-
listAccountsForPlanStubbed: [
|
|
8156
|
-
|
|
8817
|
+
listAccountsForPlanStubbed: [
|
|
8818
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
8819
|
+
],
|
|
8820
|
+
listInstallationReposForAuthenticatedUser: [
|
|
8821
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
8822
|
+
],
|
|
8823
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
8824
|
+
"GET /app/installation-requests"
|
|
8825
|
+
],
|
|
8157
8826
|
listInstallations: ["GET /app/installations"],
|
|
8158
8827
|
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
8159
8828
|
listPlans: ["GET /marketplace_listing/plans"],
|
|
8160
8829
|
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
8161
8830
|
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
8162
8831
|
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
8163
|
-
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
8832
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
8833
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
8834
|
+
],
|
|
8164
8835
|
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
8165
|
-
redeliverWebhookDelivery: [
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8836
|
+
redeliverWebhookDelivery: [
|
|
8837
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
8838
|
+
],
|
|
8839
|
+
removeRepoFromInstallation: [
|
|
8840
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
8841
|
+
{},
|
|
8842
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
8843
|
+
],
|
|
8844
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
8845
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
8846
|
+
],
|
|
8170
8847
|
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
8171
8848
|
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
8172
8849
|
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
8173
8850
|
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
8174
|
-
unsuspendInstallation: [
|
|
8851
|
+
unsuspendInstallation: [
|
|
8852
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
8853
|
+
],
|
|
8175
8854
|
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
8176
8855
|
},
|
|
8177
8856
|
billing: {
|
|
8178
8857
|
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
8179
|
-
getGithubActionsBillingUser: [
|
|
8858
|
+
getGithubActionsBillingUser: [
|
|
8859
|
+
"GET /users/{username}/settings/billing/actions"
|
|
8860
|
+
],
|
|
8180
8861
|
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
8181
|
-
getGithubPackagesBillingUser: [
|
|
8182
|
-
|
|
8183
|
-
|
|
8862
|
+
getGithubPackagesBillingUser: [
|
|
8863
|
+
"GET /users/{username}/settings/billing/packages"
|
|
8864
|
+
],
|
|
8865
|
+
getSharedStorageBillingOrg: [
|
|
8866
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
8867
|
+
],
|
|
8868
|
+
getSharedStorageBillingUser: [
|
|
8869
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
8870
|
+
]
|
|
8184
8871
|
},
|
|
8185
8872
|
checks: {
|
|
8186
8873
|
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
8187
8874
|
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
8188
8875
|
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
8189
8876
|
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
8190
|
-
listAnnotations: [
|
|
8877
|
+
listAnnotations: [
|
|
8878
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
8879
|
+
],
|
|
8191
8880
|
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
8192
|
-
listForSuite: [
|
|
8881
|
+
listForSuite: [
|
|
8882
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
8883
|
+
],
|
|
8193
8884
|
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
8194
|
-
rerequestRun: [
|
|
8195
|
-
|
|
8196
|
-
|
|
8885
|
+
rerequestRun: [
|
|
8886
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
8887
|
+
],
|
|
8888
|
+
rerequestSuite: [
|
|
8889
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
8890
|
+
],
|
|
8891
|
+
setSuitesPreferences: [
|
|
8892
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
8893
|
+
],
|
|
8197
8894
|
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
8198
8895
|
},
|
|
8199
8896
|
codeScanning: {
|
|
8200
|
-
deleteAnalysis: [
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
}
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8897
|
+
deleteAnalysis: [
|
|
8898
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
8899
|
+
],
|
|
8900
|
+
getAlert: [
|
|
8901
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
8902
|
+
{},
|
|
8903
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
8904
|
+
],
|
|
8905
|
+
getAnalysis: [
|
|
8906
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
8907
|
+
],
|
|
8908
|
+
getCodeqlDatabase: [
|
|
8909
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
8910
|
+
],
|
|
8911
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
8208
8912
|
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
8209
|
-
listAlertInstances: [
|
|
8913
|
+
listAlertInstances: [
|
|
8914
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
8915
|
+
],
|
|
8210
8916
|
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
8211
8917
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
8212
|
-
listAlertsInstances: [
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8918
|
+
listAlertsInstances: [
|
|
8919
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
8920
|
+
{},
|
|
8921
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
8922
|
+
],
|
|
8923
|
+
listCodeqlDatabases: [
|
|
8924
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
8925
|
+
],
|
|
8216
8926
|
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
8217
|
-
updateAlert: [
|
|
8927
|
+
updateAlert: [
|
|
8928
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
8929
|
+
],
|
|
8930
|
+
updateDefaultSetup: [
|
|
8931
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
8932
|
+
],
|
|
8218
8933
|
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
8219
8934
|
},
|
|
8220
8935
|
codesOfConduct: {
|
|
@@ -8222,89 +8937,175 @@ var require_dist_node11 = __commonJS({
|
|
|
8222
8937
|
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
8223
8938
|
},
|
|
8224
8939
|
codespaces: {
|
|
8225
|
-
addRepositoryForSecretForAuthenticatedUser: [
|
|
8226
|
-
|
|
8227
|
-
|
|
8940
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
8941
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
8942
|
+
],
|
|
8943
|
+
addSelectedRepoToOrgSecret: [
|
|
8944
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
8945
|
+
],
|
|
8946
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
8947
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
8948
|
+
],
|
|
8228
8949
|
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
8229
|
-
createOrUpdateOrgSecret: [
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8950
|
+
createOrUpdateOrgSecret: [
|
|
8951
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
8952
|
+
],
|
|
8953
|
+
createOrUpdateRepoSecret: [
|
|
8954
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
8955
|
+
],
|
|
8956
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
8957
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
8958
|
+
],
|
|
8959
|
+
createWithPrForAuthenticatedUser: [
|
|
8960
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
8961
|
+
],
|
|
8962
|
+
createWithRepoForAuthenticatedUser: [
|
|
8963
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
8964
|
+
],
|
|
8965
|
+
deleteCodespacesBillingUsers: [
|
|
8966
|
+
"DELETE /orgs/{org}/codespaces/billing/selected_users"
|
|
8967
|
+
],
|
|
8234
8968
|
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
8235
|
-
deleteFromOrganization: [
|
|
8969
|
+
deleteFromOrganization: [
|
|
8970
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
8971
|
+
],
|
|
8236
8972
|
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
8237
|
-
deleteRepoSecret: [
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8973
|
+
deleteRepoSecret: [
|
|
8974
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
8975
|
+
],
|
|
8976
|
+
deleteSecretForAuthenticatedUser: [
|
|
8977
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
8978
|
+
],
|
|
8979
|
+
exportForAuthenticatedUser: [
|
|
8980
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
8981
|
+
],
|
|
8982
|
+
getCodespacesForUserInOrg: [
|
|
8983
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
8984
|
+
],
|
|
8985
|
+
getExportDetailsForAuthenticatedUser: [
|
|
8986
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
8987
|
+
],
|
|
8242
8988
|
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
8243
8989
|
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
8244
8990
|
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
8245
|
-
getPublicKeyForAuthenticatedUser: [
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8991
|
+
getPublicKeyForAuthenticatedUser: [
|
|
8992
|
+
"GET /user/codespaces/secrets/public-key"
|
|
8993
|
+
],
|
|
8994
|
+
getRepoPublicKey: [
|
|
8995
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
8996
|
+
],
|
|
8997
|
+
getRepoSecret: [
|
|
8998
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
8999
|
+
],
|
|
9000
|
+
getSecretForAuthenticatedUser: [
|
|
9001
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
9002
|
+
],
|
|
9003
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
9004
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
9005
|
+
],
|
|
8250
9006
|
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
8251
|
-
listInOrganization: [
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
}
|
|
8255
|
-
|
|
8256
|
-
listInRepositoryForAuthenticatedUser: [
|
|
9007
|
+
listInOrganization: [
|
|
9008
|
+
"GET /orgs/{org}/codespaces",
|
|
9009
|
+
{},
|
|
9010
|
+
{ renamedParameters: { org_id: "org" } }
|
|
9011
|
+
],
|
|
9012
|
+
listInRepositoryForAuthenticatedUser: [
|
|
9013
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
9014
|
+
],
|
|
8257
9015
|
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
8258
9016
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
8259
|
-
listRepositoriesForSecretForAuthenticatedUser: [
|
|
9017
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
9018
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
9019
|
+
],
|
|
8260
9020
|
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
8261
|
-
listSelectedReposForOrgSecret: [
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
9021
|
+
listSelectedReposForOrgSecret: [
|
|
9022
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9023
|
+
],
|
|
9024
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
9025
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
9026
|
+
],
|
|
9027
|
+
publishForAuthenticatedUser: [
|
|
9028
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
9029
|
+
],
|
|
9030
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
9031
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9032
|
+
],
|
|
9033
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9034
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9035
|
+
],
|
|
9036
|
+
repoMachinesForAuthenticatedUser: [
|
|
9037
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
9038
|
+
],
|
|
8267
9039
|
setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
|
|
8268
|
-
|
|
8269
|
-
|
|
9040
|
+
setCodespacesBillingUsers: [
|
|
9041
|
+
"POST /orgs/{org}/codespaces/billing/selected_users"
|
|
9042
|
+
],
|
|
9043
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
9044
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
9045
|
+
],
|
|
9046
|
+
setSelectedReposForOrgSecret: [
|
|
9047
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9048
|
+
],
|
|
8270
9049
|
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
8271
9050
|
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
8272
|
-
stopInOrganization: [
|
|
9051
|
+
stopInOrganization: [
|
|
9052
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
9053
|
+
],
|
|
8273
9054
|
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
8274
9055
|
},
|
|
8275
9056
|
dependabot: {
|
|
8276
|
-
addSelectedRepoToOrgSecret: [
|
|
8277
|
-
|
|
8278
|
-
|
|
9057
|
+
addSelectedRepoToOrgSecret: [
|
|
9058
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9059
|
+
],
|
|
9060
|
+
createOrUpdateOrgSecret: [
|
|
9061
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
9062
|
+
],
|
|
9063
|
+
createOrUpdateRepoSecret: [
|
|
9064
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9065
|
+
],
|
|
8279
9066
|
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
8280
|
-
deleteRepoSecret: [
|
|
9067
|
+
deleteRepoSecret: [
|
|
9068
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9069
|
+
],
|
|
8281
9070
|
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
8282
9071
|
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
8283
9072
|
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
8284
|
-
getRepoPublicKey: [
|
|
8285
|
-
|
|
8286
|
-
|
|
9073
|
+
getRepoPublicKey: [
|
|
9074
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
9075
|
+
],
|
|
9076
|
+
getRepoSecret: [
|
|
9077
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9078
|
+
],
|
|
9079
|
+
listAlertsForEnterprise: [
|
|
9080
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
9081
|
+
],
|
|
8287
9082
|
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
8288
9083
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
8289
9084
|
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
8290
9085
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
8291
|
-
listSelectedReposForOrgSecret: [
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
9086
|
+
listSelectedReposForOrgSecret: [
|
|
9087
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9088
|
+
],
|
|
9089
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9090
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9091
|
+
],
|
|
9092
|
+
setSelectedReposForOrgSecret: [
|
|
9093
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9094
|
+
],
|
|
9095
|
+
updateAlert: [
|
|
9096
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
9097
|
+
]
|
|
8295
9098
|
},
|
|
8296
9099
|
dependencyGraph: {
|
|
8297
|
-
createRepositorySnapshot: [
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
listLabelsForSelfHostedRunnerForEnterprise: ["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]
|
|
8307
|
-
},
|
|
9100
|
+
createRepositorySnapshot: [
|
|
9101
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
9102
|
+
],
|
|
9103
|
+
diffRange: [
|
|
9104
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
9105
|
+
],
|
|
9106
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
9107
|
+
},
|
|
9108
|
+
emojis: { get: ["GET /emojis"] },
|
|
8308
9109
|
gists: {
|
|
8309
9110
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
8310
9111
|
create: ["POST /gists"],
|
|
@@ -8350,34 +9151,52 @@ var require_dist_node11 = __commonJS({
|
|
|
8350
9151
|
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
8351
9152
|
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
8352
9153
|
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
8353
|
-
getRestrictionsForYourPublicRepos: [
|
|
8354
|
-
|
|
8355
|
-
|
|
9154
|
+
getRestrictionsForYourPublicRepos: [
|
|
9155
|
+
"GET /user/interaction-limits",
|
|
9156
|
+
{},
|
|
9157
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
9158
|
+
],
|
|
8356
9159
|
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
8357
9160
|
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
8358
|
-
removeRestrictionsForRepo: [
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
9161
|
+
removeRestrictionsForRepo: [
|
|
9162
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
9163
|
+
],
|
|
9164
|
+
removeRestrictionsForYourPublicRepos: [
|
|
9165
|
+
"DELETE /user/interaction-limits",
|
|
9166
|
+
{},
|
|
9167
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
9168
|
+
],
|
|
8362
9169
|
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
8363
9170
|
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
8364
9171
|
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
8365
|
-
setRestrictionsForYourPublicRepos: [
|
|
8366
|
-
|
|
8367
|
-
|
|
9172
|
+
setRestrictionsForYourPublicRepos: [
|
|
9173
|
+
"PUT /user/interaction-limits",
|
|
9174
|
+
{},
|
|
9175
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
9176
|
+
]
|
|
8368
9177
|
},
|
|
8369
9178
|
issues: {
|
|
8370
|
-
addAssignees: [
|
|
9179
|
+
addAssignees: [
|
|
9180
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9181
|
+
],
|
|
8371
9182
|
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
8372
9183
|
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
8373
|
-
checkUserCanBeAssignedToIssue: [
|
|
9184
|
+
checkUserCanBeAssignedToIssue: [
|
|
9185
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
9186
|
+
],
|
|
8374
9187
|
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
8375
|
-
createComment: [
|
|
9188
|
+
createComment: [
|
|
9189
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
9190
|
+
],
|
|
8376
9191
|
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
8377
9192
|
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
8378
|
-
deleteComment: [
|
|
9193
|
+
deleteComment: [
|
|
9194
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
9195
|
+
],
|
|
8379
9196
|
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
8380
|
-
deleteMilestone: [
|
|
9197
|
+
deleteMilestone: [
|
|
9198
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9199
|
+
],
|
|
8381
9200
|
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
8382
9201
|
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
8383
9202
|
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
@@ -8389,24 +9208,38 @@ var require_dist_node11 = __commonJS({
|
|
|
8389
9208
|
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
8390
9209
|
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
8391
9210
|
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
8392
|
-
listEventsForTimeline: [
|
|
9211
|
+
listEventsForTimeline: [
|
|
9212
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
9213
|
+
],
|
|
8393
9214
|
listForAuthenticatedUser: ["GET /user/issues"],
|
|
8394
9215
|
listForOrg: ["GET /orgs/{org}/issues"],
|
|
8395
9216
|
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
8396
|
-
listLabelsForMilestone: [
|
|
9217
|
+
listLabelsForMilestone: [
|
|
9218
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
9219
|
+
],
|
|
8397
9220
|
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
8398
|
-
listLabelsOnIssue: [
|
|
9221
|
+
listLabelsOnIssue: [
|
|
9222
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9223
|
+
],
|
|
8399
9224
|
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
8400
9225
|
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
8401
|
-
removeAllLabels: [
|
|
8402
|
-
|
|
8403
|
-
|
|
9226
|
+
removeAllLabels: [
|
|
9227
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9228
|
+
],
|
|
9229
|
+
removeAssignees: [
|
|
9230
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9231
|
+
],
|
|
9232
|
+
removeLabel: [
|
|
9233
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
9234
|
+
],
|
|
8404
9235
|
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
8405
9236
|
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
8406
9237
|
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
8407
9238
|
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
8408
9239
|
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
8409
|
-
updateMilestone: [
|
|
9240
|
+
updateMilestone: [
|
|
9241
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9242
|
+
]
|
|
8410
9243
|
},
|
|
8411
9244
|
licenses: {
|
|
8412
9245
|
get: ["GET /licenses/{license}"],
|
|
@@ -8415,11 +9248,10 @@ var require_dist_node11 = __commonJS({
|
|
|
8415
9248
|
},
|
|
8416
9249
|
markdown: {
|
|
8417
9250
|
render: ["POST /markdown"],
|
|
8418
|
-
renderRaw: [
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
}]
|
|
9251
|
+
renderRaw: [
|
|
9252
|
+
"POST /markdown/raw",
|
|
9253
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
9254
|
+
]
|
|
8423
9255
|
},
|
|
8424
9256
|
meta: {
|
|
8425
9257
|
get: ["GET /meta"],
|
|
@@ -8430,10 +9262,18 @@ var require_dist_node11 = __commonJS({
|
|
|
8430
9262
|
},
|
|
8431
9263
|
migrations: {
|
|
8432
9264
|
cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
|
|
8433
|
-
deleteArchiveForAuthenticatedUser: [
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
9265
|
+
deleteArchiveForAuthenticatedUser: [
|
|
9266
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
9267
|
+
],
|
|
9268
|
+
deleteArchiveForOrg: [
|
|
9269
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
9270
|
+
],
|
|
9271
|
+
downloadArchiveForOrg: [
|
|
9272
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
9273
|
+
],
|
|
9274
|
+
getArchiveForAuthenticatedUser: [
|
|
9275
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
9276
|
+
],
|
|
8437
9277
|
getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
|
|
8438
9278
|
getImportStatus: ["GET /repos/{owner}/{repo}/import"],
|
|
8439
9279
|
getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
|
|
@@ -8441,38 +9281,55 @@ var require_dist_node11 = __commonJS({
|
|
|
8441
9281
|
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
8442
9282
|
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
8443
9283
|
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
8444
|
-
listReposForAuthenticatedUser: [
|
|
9284
|
+
listReposForAuthenticatedUser: [
|
|
9285
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
9286
|
+
],
|
|
8445
9287
|
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
8446
|
-
listReposForUser: [
|
|
8447
|
-
|
|
8448
|
-
|
|
9288
|
+
listReposForUser: [
|
|
9289
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
9290
|
+
{},
|
|
9291
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
9292
|
+
],
|
|
8449
9293
|
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
|
|
8450
9294
|
setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
|
|
8451
9295
|
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
8452
9296
|
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
8453
9297
|
startImport: ["PUT /repos/{owner}/{repo}/import"],
|
|
8454
|
-
unlockRepoForAuthenticatedUser: [
|
|
8455
|
-
|
|
9298
|
+
unlockRepoForAuthenticatedUser: [
|
|
9299
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
9300
|
+
],
|
|
9301
|
+
unlockRepoForOrg: [
|
|
9302
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
9303
|
+
],
|
|
8456
9304
|
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
|
|
8457
9305
|
},
|
|
8458
9306
|
orgs: {
|
|
8459
|
-
addSecurityManagerTeam: [
|
|
9307
|
+
addSecurityManagerTeam: [
|
|
9308
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
|
9309
|
+
],
|
|
8460
9310
|
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
8461
9311
|
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
8462
9312
|
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
8463
9313
|
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
8464
9314
|
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
8465
|
-
convertMemberToOutsideCollaborator: [
|
|
9315
|
+
convertMemberToOutsideCollaborator: [
|
|
9316
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
9317
|
+
],
|
|
8466
9318
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
8467
9319
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
9320
|
+
delete: ["DELETE /orgs/{org}"],
|
|
8468
9321
|
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
8469
|
-
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
9322
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
9323
|
+
"POST /orgs/{org}/{security_product}/{enablement}"
|
|
9324
|
+
],
|
|
8470
9325
|
get: ["GET /orgs/{org}"],
|
|
8471
9326
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
8472
9327
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
8473
9328
|
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
8474
9329
|
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
8475
|
-
getWebhookDelivery: [
|
|
9330
|
+
getWebhookDelivery: [
|
|
9331
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
9332
|
+
],
|
|
8476
9333
|
list: ["GET /organizations"],
|
|
8477
9334
|
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
8478
9335
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
@@ -8483,57 +9340,149 @@ var require_dist_node11 = __commonJS({
|
|
|
8483
9340
|
listMembers: ["GET /orgs/{org}/members"],
|
|
8484
9341
|
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
8485
9342
|
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
9343
|
+
listPatGrantRepositories: [
|
|
9344
|
+
"GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
9345
|
+
],
|
|
9346
|
+
listPatGrantRequestRepositories: [
|
|
9347
|
+
"GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
9348
|
+
],
|
|
9349
|
+
listPatGrantRequests: [
|
|
9350
|
+
"GET /organizations/{org}/personal-access-token-requests"
|
|
9351
|
+
],
|
|
9352
|
+
listPatGrants: ["GET /organizations/{org}/personal-access-tokens"],
|
|
8486
9353
|
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
8487
9354
|
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
8488
9355
|
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
|
8489
9356
|
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
8490
9357
|
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
8491
9358
|
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
8492
|
-
redeliverWebhookDelivery: [
|
|
9359
|
+
redeliverWebhookDelivery: [
|
|
9360
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
9361
|
+
],
|
|
8493
9362
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
8494
9363
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
8495
|
-
removeOutsideCollaborator: [
|
|
8496
|
-
|
|
8497
|
-
|
|
9364
|
+
removeOutsideCollaborator: [
|
|
9365
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
9366
|
+
],
|
|
9367
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
9368
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
9369
|
+
],
|
|
9370
|
+
removeSecurityManagerTeam: [
|
|
9371
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
|
9372
|
+
],
|
|
9373
|
+
reviewPatGrantRequest: [
|
|
9374
|
+
"POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"
|
|
9375
|
+
],
|
|
9376
|
+
reviewPatGrantRequestsInBulk: [
|
|
9377
|
+
"POST /organizations/{org}/personal-access-token-requests"
|
|
9378
|
+
],
|
|
8498
9379
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
8499
|
-
setPublicMembershipForAuthenticatedUser: [
|
|
9380
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
9381
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
9382
|
+
],
|
|
8500
9383
|
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
8501
9384
|
update: ["PATCH /orgs/{org}"],
|
|
8502
|
-
updateMembershipForAuthenticatedUser: [
|
|
9385
|
+
updateMembershipForAuthenticatedUser: [
|
|
9386
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
9387
|
+
],
|
|
9388
|
+
updatePatAccess: [
|
|
9389
|
+
"POST /organizations/{org}/personal-access-tokens/{pat_id}"
|
|
9390
|
+
],
|
|
9391
|
+
updatePatAccesses: ["POST /organizations/{org}/personal-access-tokens"],
|
|
8503
9392
|
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
8504
9393
|
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
8505
9394
|
},
|
|
8506
9395
|
packages: {
|
|
8507
|
-
deletePackageForAuthenticatedUser: [
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
9396
|
+
deletePackageForAuthenticatedUser: [
|
|
9397
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
9398
|
+
],
|
|
9399
|
+
deletePackageForOrg: [
|
|
9400
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
9401
|
+
],
|
|
9402
|
+
deletePackageForUser: [
|
|
9403
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
9404
|
+
],
|
|
9405
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
9406
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9407
|
+
],
|
|
9408
|
+
deletePackageVersionForOrg: [
|
|
9409
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9410
|
+
],
|
|
9411
|
+
deletePackageVersionForUser: [
|
|
9412
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9413
|
+
],
|
|
9414
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
9415
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
9416
|
+
{},
|
|
9417
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
9418
|
+
],
|
|
9419
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
9420
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
9421
|
+
{},
|
|
9422
|
+
{
|
|
9423
|
+
renamed: [
|
|
9424
|
+
"packages",
|
|
9425
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
9426
|
+
]
|
|
9427
|
+
}
|
|
9428
|
+
],
|
|
9429
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
9430
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
9431
|
+
],
|
|
9432
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
9433
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
9434
|
+
],
|
|
9435
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
9436
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
9437
|
+
],
|
|
9438
|
+
getPackageForAuthenticatedUser: [
|
|
9439
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
9440
|
+
],
|
|
9441
|
+
getPackageForOrganization: [
|
|
9442
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
9443
|
+
],
|
|
9444
|
+
getPackageForUser: [
|
|
9445
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
9446
|
+
],
|
|
9447
|
+
getPackageVersionForAuthenticatedUser: [
|
|
9448
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9449
|
+
],
|
|
9450
|
+
getPackageVersionForOrganization: [
|
|
9451
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9452
|
+
],
|
|
9453
|
+
getPackageVersionForUser: [
|
|
9454
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9455
|
+
],
|
|
9456
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
9457
|
+
"GET /user/docker/conflicts"
|
|
9458
|
+
],
|
|
9459
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
9460
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
9461
|
+
],
|
|
9462
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
9463
|
+
"GET /users/{username}/docker/conflicts"
|
|
9464
|
+
],
|
|
8528
9465
|
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
8529
9466
|
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
8530
9467
|
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
8531
|
-
restorePackageForAuthenticatedUser: [
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
9468
|
+
restorePackageForAuthenticatedUser: [
|
|
9469
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
9470
|
+
],
|
|
9471
|
+
restorePackageForOrg: [
|
|
9472
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
9473
|
+
],
|
|
9474
|
+
restorePackageForUser: [
|
|
9475
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
9476
|
+
],
|
|
9477
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
9478
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9479
|
+
],
|
|
9480
|
+
restorePackageVersionForOrg: [
|
|
9481
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9482
|
+
],
|
|
9483
|
+
restorePackageVersionForUser: [
|
|
9484
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9485
|
+
]
|
|
8537
9486
|
},
|
|
8538
9487
|
projects: {
|
|
8539
9488
|
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
@@ -8548,7 +9497,9 @@ var require_dist_node11 = __commonJS({
|
|
|
8548
9497
|
get: ["GET /projects/{project_id}"],
|
|
8549
9498
|
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
8550
9499
|
getColumn: ["GET /projects/columns/{column_id}"],
|
|
8551
|
-
getPermissionForUser: [
|
|
9500
|
+
getPermissionForUser: [
|
|
9501
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
9502
|
+
],
|
|
8552
9503
|
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
8553
9504
|
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
8554
9505
|
listColumns: ["GET /projects/{project_id}/columns"],
|
|
@@ -8557,7 +9508,9 @@ var require_dist_node11 = __commonJS({
|
|
|
8557
9508
|
listForUser: ["GET /users/{username}/projects"],
|
|
8558
9509
|
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
8559
9510
|
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
8560
|
-
removeCollaborator: [
|
|
9511
|
+
removeCollaborator: [
|
|
9512
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
9513
|
+
],
|
|
8561
9514
|
update: ["PATCH /projects/{project_id}"],
|
|
8562
9515
|
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
8563
9516
|
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
@@ -8565,196 +9518,396 @@ var require_dist_node11 = __commonJS({
|
|
|
8565
9518
|
pulls: {
|
|
8566
9519
|
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
8567
9520
|
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
8568
|
-
createReplyForReviewComment: [
|
|
9521
|
+
createReplyForReviewComment: [
|
|
9522
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
9523
|
+
],
|
|
8569
9524
|
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
8570
|
-
createReviewComment: [
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
9525
|
+
createReviewComment: [
|
|
9526
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
9527
|
+
],
|
|
9528
|
+
deletePendingReview: [
|
|
9529
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9530
|
+
],
|
|
9531
|
+
deleteReviewComment: [
|
|
9532
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
9533
|
+
],
|
|
9534
|
+
dismissReview: [
|
|
9535
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
9536
|
+
],
|
|
8574
9537
|
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
8575
|
-
getReview: [
|
|
9538
|
+
getReview: [
|
|
9539
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9540
|
+
],
|
|
8576
9541
|
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
8577
9542
|
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
8578
|
-
listCommentsForReview: [
|
|
9543
|
+
listCommentsForReview: [
|
|
9544
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
9545
|
+
],
|
|
8579
9546
|
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
8580
9547
|
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
8581
|
-
listRequestedReviewers: [
|
|
8582
|
-
|
|
9548
|
+
listRequestedReviewers: [
|
|
9549
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9550
|
+
],
|
|
9551
|
+
listReviewComments: [
|
|
9552
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
9553
|
+
],
|
|
8583
9554
|
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
8584
9555
|
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
8585
9556
|
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
8586
|
-
removeRequestedReviewers: [
|
|
8587
|
-
|
|
8588
|
-
|
|
9557
|
+
removeRequestedReviewers: [
|
|
9558
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9559
|
+
],
|
|
9560
|
+
requestReviewers: [
|
|
9561
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9562
|
+
],
|
|
9563
|
+
submitReview: [
|
|
9564
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
9565
|
+
],
|
|
8589
9566
|
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
8590
|
-
updateBranch: [
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
9567
|
+
updateBranch: [
|
|
9568
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
9569
|
+
],
|
|
9570
|
+
updateReview: [
|
|
9571
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9572
|
+
],
|
|
9573
|
+
updateReviewComment: [
|
|
9574
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
9575
|
+
]
|
|
8596
9576
|
},
|
|
9577
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
8597
9578
|
reactions: {
|
|
8598
|
-
createForCommitComment: [
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
9579
|
+
createForCommitComment: [
|
|
9580
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
9581
|
+
],
|
|
9582
|
+
createForIssue: [
|
|
9583
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
9584
|
+
],
|
|
9585
|
+
createForIssueComment: [
|
|
9586
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
9587
|
+
],
|
|
9588
|
+
createForPullRequestReviewComment: [
|
|
9589
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
9590
|
+
],
|
|
9591
|
+
createForRelease: [
|
|
9592
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
9593
|
+
],
|
|
9594
|
+
createForTeamDiscussionCommentInOrg: [
|
|
9595
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
9596
|
+
],
|
|
9597
|
+
createForTeamDiscussionInOrg: [
|
|
9598
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
9599
|
+
],
|
|
9600
|
+
deleteForCommitComment: [
|
|
9601
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
9602
|
+
],
|
|
9603
|
+
deleteForIssue: [
|
|
9604
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
9605
|
+
],
|
|
9606
|
+
deleteForIssueComment: [
|
|
9607
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
9608
|
+
],
|
|
9609
|
+
deleteForPullRequestComment: [
|
|
9610
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
9611
|
+
],
|
|
9612
|
+
deleteForRelease: [
|
|
9613
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
9614
|
+
],
|
|
9615
|
+
deleteForTeamDiscussion: [
|
|
9616
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
9617
|
+
],
|
|
9618
|
+
deleteForTeamDiscussionComment: [
|
|
9619
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
9620
|
+
],
|
|
9621
|
+
listForCommitComment: [
|
|
9622
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
9623
|
+
],
|
|
8613
9624
|
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
8614
|
-
listForIssueComment: [
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
9625
|
+
listForIssueComment: [
|
|
9626
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
9627
|
+
],
|
|
9628
|
+
listForPullRequestReviewComment: [
|
|
9629
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
9630
|
+
],
|
|
9631
|
+
listForRelease: [
|
|
9632
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
9633
|
+
],
|
|
9634
|
+
listForTeamDiscussionCommentInOrg: [
|
|
9635
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
9636
|
+
],
|
|
9637
|
+
listForTeamDiscussionInOrg: [
|
|
9638
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
9639
|
+
]
|
|
8619
9640
|
},
|
|
8620
9641
|
repos: {
|
|
8621
|
-
acceptInvitation: [
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
9642
|
+
acceptInvitation: [
|
|
9643
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
9644
|
+
{},
|
|
9645
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
9646
|
+
],
|
|
9647
|
+
acceptInvitationForAuthenticatedUser: [
|
|
9648
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
9649
|
+
],
|
|
9650
|
+
addAppAccessRestrictions: [
|
|
9651
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9652
|
+
{},
|
|
9653
|
+
{ mapToData: "apps" }
|
|
9654
|
+
],
|
|
8628
9655
|
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
8629
|
-
addStatusCheckContexts: [
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
9656
|
+
addStatusCheckContexts: [
|
|
9657
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9658
|
+
{},
|
|
9659
|
+
{ mapToData: "contexts" }
|
|
9660
|
+
],
|
|
9661
|
+
addTeamAccessRestrictions: [
|
|
9662
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9663
|
+
{},
|
|
9664
|
+
{ mapToData: "teams" }
|
|
9665
|
+
],
|
|
9666
|
+
addUserAccessRestrictions: [
|
|
9667
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9668
|
+
{},
|
|
9669
|
+
{ mapToData: "users" }
|
|
9670
|
+
],
|
|
8638
9671
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
8639
|
-
checkVulnerabilityAlerts: [
|
|
9672
|
+
checkVulnerabilityAlerts: [
|
|
9673
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9674
|
+
],
|
|
8640
9675
|
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
8641
9676
|
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
8642
|
-
compareCommitsWithBasehead: [
|
|
9677
|
+
compareCommitsWithBasehead: [
|
|
9678
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
9679
|
+
],
|
|
8643
9680
|
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
8644
|
-
createCommitComment: [
|
|
8645
|
-
|
|
9681
|
+
createCommitComment: [
|
|
9682
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
9683
|
+
],
|
|
9684
|
+
createCommitSignatureProtection: [
|
|
9685
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9686
|
+
],
|
|
8646
9687
|
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
8647
9688
|
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
8648
9689
|
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
8649
|
-
createDeploymentBranchPolicy: [
|
|
8650
|
-
|
|
9690
|
+
createDeploymentBranchPolicy: [
|
|
9691
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
9692
|
+
],
|
|
9693
|
+
createDeploymentProtectionRule: [
|
|
9694
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9695
|
+
],
|
|
9696
|
+
createDeploymentStatus: [
|
|
9697
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
9698
|
+
],
|
|
8651
9699
|
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
8652
9700
|
createForAuthenticatedUser: ["POST /user/repos"],
|
|
8653
9701
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
8654
9702
|
createInOrg: ["POST /orgs/{org}/repos"],
|
|
8655
|
-
createOrUpdateEnvironment: [
|
|
9703
|
+
createOrUpdateEnvironment: [
|
|
9704
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9705
|
+
],
|
|
8656
9706
|
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
9707
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
8657
9708
|
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
|
|
8658
9709
|
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
8659
9710
|
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
9711
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
8660
9712
|
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
|
8661
|
-
createUsingTemplate: [
|
|
9713
|
+
createUsingTemplate: [
|
|
9714
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
9715
|
+
],
|
|
8662
9716
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
8663
|
-
declineInvitation: [
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
9717
|
+
declineInvitation: [
|
|
9718
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
9719
|
+
{},
|
|
9720
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
9721
|
+
],
|
|
9722
|
+
declineInvitationForAuthenticatedUser: [
|
|
9723
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
9724
|
+
],
|
|
8667
9725
|
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
8668
|
-
deleteAccessRestrictions: [
|
|
8669
|
-
|
|
8670
|
-
|
|
9726
|
+
deleteAccessRestrictions: [
|
|
9727
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
9728
|
+
],
|
|
9729
|
+
deleteAdminBranchProtection: [
|
|
9730
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9731
|
+
],
|
|
9732
|
+
deleteAnEnvironment: [
|
|
9733
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9734
|
+
],
|
|
8671
9735
|
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
8672
|
-
deleteBranchProtection: [
|
|
9736
|
+
deleteBranchProtection: [
|
|
9737
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9738
|
+
],
|
|
8673
9739
|
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
8674
|
-
deleteCommitSignatureProtection: [
|
|
9740
|
+
deleteCommitSignatureProtection: [
|
|
9741
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9742
|
+
],
|
|
8675
9743
|
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
8676
|
-
deleteDeployment: [
|
|
8677
|
-
|
|
9744
|
+
deleteDeployment: [
|
|
9745
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
9746
|
+
],
|
|
9747
|
+
deleteDeploymentBranchPolicy: [
|
|
9748
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
9749
|
+
],
|
|
8678
9750
|
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
8679
|
-
deleteInvitation: [
|
|
9751
|
+
deleteInvitation: [
|
|
9752
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
9753
|
+
],
|
|
9754
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
8680
9755
|
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
8681
|
-
deletePullRequestReviewProtection: [
|
|
9756
|
+
deletePullRequestReviewProtection: [
|
|
9757
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
9758
|
+
],
|
|
8682
9759
|
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8683
|
-
deleteReleaseAsset: [
|
|
8684
|
-
|
|
9760
|
+
deleteReleaseAsset: [
|
|
9761
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
9762
|
+
],
|
|
9763
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9764
|
+
deleteTagProtection: [
|
|
9765
|
+
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
|
9766
|
+
],
|
|
8685
9767
|
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
8686
|
-
disableAutomatedSecurityFixes: [
|
|
9768
|
+
disableAutomatedSecurityFixes: [
|
|
9769
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
9770
|
+
],
|
|
9771
|
+
disableDeploymentProtectionRule: [
|
|
9772
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
9773
|
+
],
|
|
8687
9774
|
disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
|
|
8688
|
-
disableVulnerabilityAlerts: [
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
9775
|
+
disableVulnerabilityAlerts: [
|
|
9776
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9777
|
+
],
|
|
9778
|
+
downloadArchive: [
|
|
9779
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
9780
|
+
{},
|
|
9781
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
9782
|
+
],
|
|
8692
9783
|
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
8693
9784
|
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
8694
|
-
enableAutomatedSecurityFixes: [
|
|
9785
|
+
enableAutomatedSecurityFixes: [
|
|
9786
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
9787
|
+
],
|
|
8695
9788
|
enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
|
|
8696
|
-
enableVulnerabilityAlerts: [
|
|
8697
|
-
|
|
9789
|
+
enableVulnerabilityAlerts: [
|
|
9790
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9791
|
+
],
|
|
9792
|
+
generateReleaseNotes: [
|
|
9793
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
9794
|
+
],
|
|
8698
9795
|
get: ["GET /repos/{owner}/{repo}"],
|
|
8699
|
-
getAccessRestrictions: [
|
|
8700
|
-
|
|
9796
|
+
getAccessRestrictions: [
|
|
9797
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
9798
|
+
],
|
|
9799
|
+
getAdminBranchProtection: [
|
|
9800
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9801
|
+
],
|
|
9802
|
+
getAllDeploymentProtectionRules: [
|
|
9803
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9804
|
+
],
|
|
8701
9805
|
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
8702
|
-
getAllStatusCheckContexts: [
|
|
9806
|
+
getAllStatusCheckContexts: [
|
|
9807
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
9808
|
+
],
|
|
8703
9809
|
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
8704
|
-
getAppsWithAccessToProtectedBranch: [
|
|
9810
|
+
getAppsWithAccessToProtectedBranch: [
|
|
9811
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
9812
|
+
],
|
|
8705
9813
|
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
8706
9814
|
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
8707
|
-
getBranchProtection: [
|
|
9815
|
+
getBranchProtection: [
|
|
9816
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9817
|
+
],
|
|
9818
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
8708
9819
|
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
8709
9820
|
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
8710
|
-
getCollaboratorPermissionLevel: [
|
|
9821
|
+
getCollaboratorPermissionLevel: [
|
|
9822
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
9823
|
+
],
|
|
8711
9824
|
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
8712
9825
|
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
8713
9826
|
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
8714
9827
|
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
8715
|
-
getCommitSignatureProtection: [
|
|
9828
|
+
getCommitSignatureProtection: [
|
|
9829
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9830
|
+
],
|
|
8716
9831
|
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
8717
9832
|
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
8718
9833
|
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
9834
|
+
getCustomDeploymentProtectionRule: [
|
|
9835
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
9836
|
+
],
|
|
8719
9837
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
8720
9838
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
8721
|
-
getDeploymentBranchPolicy: [
|
|
8722
|
-
|
|
8723
|
-
|
|
9839
|
+
getDeploymentBranchPolicy: [
|
|
9840
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
9841
|
+
],
|
|
9842
|
+
getDeploymentStatus: [
|
|
9843
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
9844
|
+
],
|
|
9845
|
+
getEnvironment: [
|
|
9846
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9847
|
+
],
|
|
8724
9848
|
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
8725
9849
|
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
9850
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
9851
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
8726
9852
|
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
8727
9853
|
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
8728
9854
|
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
8729
9855
|
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
8730
|
-
getPullRequestReviewProtection: [
|
|
9856
|
+
getPullRequestReviewProtection: [
|
|
9857
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
9858
|
+
],
|
|
8731
9859
|
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
8732
9860
|
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
8733
9861
|
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
8734
9862
|
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8735
9863
|
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
8736
9864
|
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
8737
|
-
|
|
8738
|
-
|
|
9865
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9866
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
9867
|
+
getStatusChecksProtection: [
|
|
9868
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
9869
|
+
],
|
|
9870
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
9871
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
9872
|
+
],
|
|
8739
9873
|
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
8740
9874
|
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
8741
|
-
getUsersWithAccessToProtectedBranch: [
|
|
9875
|
+
getUsersWithAccessToProtectedBranch: [
|
|
9876
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
9877
|
+
],
|
|
8742
9878
|
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
8743
9879
|
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
8744
|
-
getWebhookConfigForRepo: [
|
|
8745
|
-
|
|
9880
|
+
getWebhookConfigForRepo: [
|
|
9881
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
9882
|
+
],
|
|
9883
|
+
getWebhookDelivery: [
|
|
9884
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
9885
|
+
],
|
|
8746
9886
|
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
8747
9887
|
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
8748
|
-
listBranchesForHeadCommit: [
|
|
9888
|
+
listBranchesForHeadCommit: [
|
|
9889
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
9890
|
+
],
|
|
8749
9891
|
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
8750
|
-
listCommentsForCommit: [
|
|
9892
|
+
listCommentsForCommit: [
|
|
9893
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
9894
|
+
],
|
|
8751
9895
|
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
8752
|
-
listCommitStatusesForRef: [
|
|
9896
|
+
listCommitStatusesForRef: [
|
|
9897
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
9898
|
+
],
|
|
8753
9899
|
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
8754
9900
|
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
9901
|
+
listCustomDeploymentRuleIntegrations: [
|
|
9902
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
9903
|
+
],
|
|
8755
9904
|
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
8756
|
-
listDeploymentBranchPolicies: [
|
|
8757
|
-
|
|
9905
|
+
listDeploymentBranchPolicies: [
|
|
9906
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
9907
|
+
],
|
|
9908
|
+
listDeploymentStatuses: [
|
|
9909
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
9910
|
+
],
|
|
8758
9911
|
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
8759
9912
|
listForAuthenticatedUser: ["GET /user/repos"],
|
|
8760
9913
|
listForOrg: ["GET /orgs/{org}/repos"],
|
|
@@ -8765,68 +9918,117 @@ var require_dist_node11 = __commonJS({
|
|
|
8765
9918
|
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
8766
9919
|
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
8767
9920
|
listPublic: ["GET /repositories"],
|
|
8768
|
-
listPullRequestsAssociatedWithCommit: [
|
|
8769
|
-
|
|
9921
|
+
listPullRequestsAssociatedWithCommit: [
|
|
9922
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
9923
|
+
],
|
|
9924
|
+
listReleaseAssets: [
|
|
9925
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
9926
|
+
],
|
|
8770
9927
|
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
8771
9928
|
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
|
8772
9929
|
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
8773
9930
|
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
8774
|
-
listWebhookDeliveries: [
|
|
9931
|
+
listWebhookDeliveries: [
|
|
9932
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
9933
|
+
],
|
|
8775
9934
|
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
8776
9935
|
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
8777
9936
|
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
8778
9937
|
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
8779
|
-
redeliverWebhookDelivery: [
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
mapToData: "
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
9938
|
+
redeliverWebhookDelivery: [
|
|
9939
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
9940
|
+
],
|
|
9941
|
+
removeAppAccessRestrictions: [
|
|
9942
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9943
|
+
{},
|
|
9944
|
+
{ mapToData: "apps" }
|
|
9945
|
+
],
|
|
9946
|
+
removeCollaborator: [
|
|
9947
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
9948
|
+
],
|
|
9949
|
+
removeStatusCheckContexts: [
|
|
9950
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9951
|
+
{},
|
|
9952
|
+
{ mapToData: "contexts" }
|
|
9953
|
+
],
|
|
9954
|
+
removeStatusCheckProtection: [
|
|
9955
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
9956
|
+
],
|
|
9957
|
+
removeTeamAccessRestrictions: [
|
|
9958
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9959
|
+
{},
|
|
9960
|
+
{ mapToData: "teams" }
|
|
9961
|
+
],
|
|
9962
|
+
removeUserAccessRestrictions: [
|
|
9963
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9964
|
+
{},
|
|
9965
|
+
{ mapToData: "users" }
|
|
9966
|
+
],
|
|
8794
9967
|
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
8795
9968
|
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
8796
9969
|
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
8797
|
-
setAdminBranchProtection: [
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
mapToData: "
|
|
8809
|
-
|
|
9970
|
+
setAdminBranchProtection: [
|
|
9971
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9972
|
+
],
|
|
9973
|
+
setAppAccessRestrictions: [
|
|
9974
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9975
|
+
{},
|
|
9976
|
+
{ mapToData: "apps" }
|
|
9977
|
+
],
|
|
9978
|
+
setStatusCheckContexts: [
|
|
9979
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9980
|
+
{},
|
|
9981
|
+
{ mapToData: "contexts" }
|
|
9982
|
+
],
|
|
9983
|
+
setTeamAccessRestrictions: [
|
|
9984
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9985
|
+
{},
|
|
9986
|
+
{ mapToData: "teams" }
|
|
9987
|
+
],
|
|
9988
|
+
setUserAccessRestrictions: [
|
|
9989
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9990
|
+
{},
|
|
9991
|
+
{ mapToData: "users" }
|
|
9992
|
+
],
|
|
8810
9993
|
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
8811
9994
|
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
8812
9995
|
update: ["PATCH /repos/{owner}/{repo}"],
|
|
8813
|
-
updateBranchProtection: [
|
|
9996
|
+
updateBranchProtection: [
|
|
9997
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9998
|
+
],
|
|
8814
9999
|
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
8815
|
-
updateDeploymentBranchPolicy: [
|
|
10000
|
+
updateDeploymentBranchPolicy: [
|
|
10001
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
10002
|
+
],
|
|
8816
10003
|
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
8817
|
-
updateInvitation: [
|
|
8818
|
-
|
|
10004
|
+
updateInvitation: [
|
|
10005
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10006
|
+
],
|
|
10007
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
10008
|
+
updatePullRequestReviewProtection: [
|
|
10009
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
10010
|
+
],
|
|
8819
10011
|
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8820
|
-
updateReleaseAsset: [
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
}],
|
|
8824
|
-
|
|
10012
|
+
updateReleaseAsset: [
|
|
10013
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
10014
|
+
],
|
|
10015
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
10016
|
+
updateStatusCheckPotection: [
|
|
10017
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
10018
|
+
{},
|
|
10019
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
10020
|
+
],
|
|
10021
|
+
updateStatusCheckProtection: [
|
|
10022
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
10023
|
+
],
|
|
8825
10024
|
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
8826
|
-
updateWebhookConfigForRepo: [
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
10025
|
+
updateWebhookConfigForRepo: [
|
|
10026
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10027
|
+
],
|
|
10028
|
+
uploadReleaseAsset: [
|
|
10029
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
10030
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
10031
|
+
]
|
|
8830
10032
|
},
|
|
8831
10033
|
search: {
|
|
8832
10034
|
code: ["GET /search/code"],
|
|
@@ -8838,150 +10040,253 @@ var require_dist_node11 = __commonJS({
|
|
|
8838
10040
|
users: ["GET /search/users"]
|
|
8839
10041
|
},
|
|
8840
10042
|
secretScanning: {
|
|
8841
|
-
getAlert: [
|
|
8842
|
-
|
|
8843
|
-
|
|
10043
|
+
getAlert: [
|
|
10044
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10045
|
+
],
|
|
10046
|
+
listAlertsForEnterprise: [
|
|
10047
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
10048
|
+
],
|
|
8844
10049
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
8845
10050
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
8846
|
-
listLocationsForAlert: [
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
updateAlert: [
|
|
10051
|
+
listLocationsForAlert: [
|
|
10052
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
10053
|
+
],
|
|
10054
|
+
updateAlert: [
|
|
10055
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10056
|
+
]
|
|
10057
|
+
},
|
|
10058
|
+
securityAdvisories: {
|
|
10059
|
+
createPrivateVulnerabilityReport: [
|
|
10060
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
10061
|
+
],
|
|
10062
|
+
createRepositoryAdvisory: [
|
|
10063
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
10064
|
+
],
|
|
10065
|
+
getRepositoryAdvisory: [
|
|
10066
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10067
|
+
],
|
|
10068
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
10069
|
+
updateRepositoryAdvisory: [
|
|
10070
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10071
|
+
]
|
|
8850
10072
|
},
|
|
8851
10073
|
teams: {
|
|
8852
|
-
addOrUpdateMembershipForUserInOrg: [
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
10074
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
10075
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10076
|
+
],
|
|
10077
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
10078
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10079
|
+
],
|
|
10080
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
10081
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10082
|
+
],
|
|
10083
|
+
checkPermissionsForProjectInOrg: [
|
|
10084
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10085
|
+
],
|
|
10086
|
+
checkPermissionsForRepoInOrg: [
|
|
10087
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10088
|
+
],
|
|
8857
10089
|
create: ["POST /orgs/{org}/teams"],
|
|
8858
|
-
createDiscussionCommentInOrg: [
|
|
10090
|
+
createDiscussionCommentInOrg: [
|
|
10091
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10092
|
+
],
|
|
8859
10093
|
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
8860
|
-
deleteDiscussionCommentInOrg: [
|
|
8861
|
-
|
|
10094
|
+
deleteDiscussionCommentInOrg: [
|
|
10095
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10096
|
+
],
|
|
10097
|
+
deleteDiscussionInOrg: [
|
|
10098
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10099
|
+
],
|
|
8862
10100
|
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
8863
10101
|
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
8864
|
-
getDiscussionCommentInOrg: [
|
|
8865
|
-
|
|
8866
|
-
|
|
10102
|
+
getDiscussionCommentInOrg: [
|
|
10103
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10104
|
+
],
|
|
10105
|
+
getDiscussionInOrg: [
|
|
10106
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10107
|
+
],
|
|
10108
|
+
getMembershipForUserInOrg: [
|
|
10109
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10110
|
+
],
|
|
8867
10111
|
list: ["GET /orgs/{org}/teams"],
|
|
8868
10112
|
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
8869
|
-
listDiscussionCommentsInOrg: [
|
|
10113
|
+
listDiscussionCommentsInOrg: [
|
|
10114
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10115
|
+
],
|
|
8870
10116
|
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
8871
10117
|
listForAuthenticatedUser: ["GET /user/teams"],
|
|
8872
10118
|
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
8873
|
-
listPendingInvitationsInOrg: [
|
|
10119
|
+
listPendingInvitationsInOrg: [
|
|
10120
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
10121
|
+
],
|
|
8874
10122
|
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
8875
10123
|
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
8876
|
-
removeMembershipForUserInOrg: [
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
10124
|
+
removeMembershipForUserInOrg: [
|
|
10125
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10126
|
+
],
|
|
10127
|
+
removeProjectInOrg: [
|
|
10128
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10129
|
+
],
|
|
10130
|
+
removeRepoInOrg: [
|
|
10131
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10132
|
+
],
|
|
10133
|
+
updateDiscussionCommentInOrg: [
|
|
10134
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10135
|
+
],
|
|
10136
|
+
updateDiscussionInOrg: [
|
|
10137
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10138
|
+
],
|
|
8881
10139
|
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
8882
10140
|
},
|
|
8883
10141
|
users: {
|
|
8884
|
-
addEmailForAuthenticated: [
|
|
8885
|
-
|
|
8886
|
-
|
|
10142
|
+
addEmailForAuthenticated: [
|
|
10143
|
+
"POST /user/emails",
|
|
10144
|
+
{},
|
|
10145
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
10146
|
+
],
|
|
8887
10147
|
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
10148
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
8888
10149
|
block: ["PUT /user/blocks/{username}"],
|
|
8889
10150
|
checkBlocked: ["GET /user/blocks/{username}"],
|
|
8890
10151
|
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
8891
10152
|
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
8892
|
-
createGpgKeyForAuthenticated: [
|
|
8893
|
-
|
|
8894
|
-
|
|
10153
|
+
createGpgKeyForAuthenticated: [
|
|
10154
|
+
"POST /user/gpg_keys",
|
|
10155
|
+
{},
|
|
10156
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
10157
|
+
],
|
|
8895
10158
|
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
8896
|
-
createPublicSshKeyForAuthenticated: [
|
|
8897
|
-
|
|
8898
|
-
|
|
10159
|
+
createPublicSshKeyForAuthenticated: [
|
|
10160
|
+
"POST /user/keys",
|
|
10161
|
+
{},
|
|
10162
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
10163
|
+
],
|
|
8899
10164
|
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
8900
10165
|
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
8901
|
-
deleteEmailForAuthenticated: [
|
|
8902
|
-
|
|
8903
|
-
|
|
10166
|
+
deleteEmailForAuthenticated: [
|
|
10167
|
+
"DELETE /user/emails",
|
|
10168
|
+
{},
|
|
10169
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
10170
|
+
],
|
|
8904
10171
|
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
8905
|
-
deleteGpgKeyForAuthenticated: [
|
|
8906
|
-
|
|
8907
|
-
|
|
10172
|
+
deleteGpgKeyForAuthenticated: [
|
|
10173
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
10174
|
+
{},
|
|
10175
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
10176
|
+
],
|
|
8908
10177
|
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
8909
|
-
deletePublicSshKeyForAuthenticated: [
|
|
8910
|
-
|
|
8911
|
-
|
|
10178
|
+
deletePublicSshKeyForAuthenticated: [
|
|
10179
|
+
"DELETE /user/keys/{key_id}",
|
|
10180
|
+
{},
|
|
10181
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
10182
|
+
],
|
|
8912
10183
|
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
8913
|
-
|
|
10184
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
10185
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
10186
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
10187
|
+
],
|
|
8914
10188
|
follow: ["PUT /user/following/{username}"],
|
|
8915
10189
|
getAuthenticated: ["GET /user"],
|
|
8916
10190
|
getByUsername: ["GET /users/{username}"],
|
|
8917
10191
|
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
8918
|
-
getGpgKeyForAuthenticated: [
|
|
8919
|
-
|
|
8920
|
-
|
|
10192
|
+
getGpgKeyForAuthenticated: [
|
|
10193
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
10194
|
+
{},
|
|
10195
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
10196
|
+
],
|
|
8921
10197
|
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
8922
|
-
getPublicSshKeyForAuthenticated: [
|
|
8923
|
-
|
|
8924
|
-
|
|
10198
|
+
getPublicSshKeyForAuthenticated: [
|
|
10199
|
+
"GET /user/keys/{key_id}",
|
|
10200
|
+
{},
|
|
10201
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
10202
|
+
],
|
|
8925
10203
|
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
8926
|
-
getSshSigningKeyForAuthenticatedUser: [
|
|
10204
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
10205
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
10206
|
+
],
|
|
8927
10207
|
list: ["GET /users"],
|
|
8928
|
-
listBlockedByAuthenticated: [
|
|
8929
|
-
|
|
8930
|
-
|
|
10208
|
+
listBlockedByAuthenticated: [
|
|
10209
|
+
"GET /user/blocks",
|
|
10210
|
+
{},
|
|
10211
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
10212
|
+
],
|
|
8931
10213
|
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
8932
|
-
listEmailsForAuthenticated: [
|
|
8933
|
-
|
|
8934
|
-
|
|
10214
|
+
listEmailsForAuthenticated: [
|
|
10215
|
+
"GET /user/emails",
|
|
10216
|
+
{},
|
|
10217
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
10218
|
+
],
|
|
8935
10219
|
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
8936
|
-
listFollowedByAuthenticated: [
|
|
8937
|
-
|
|
8938
|
-
|
|
10220
|
+
listFollowedByAuthenticated: [
|
|
10221
|
+
"GET /user/following",
|
|
10222
|
+
{},
|
|
10223
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
10224
|
+
],
|
|
8939
10225
|
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
8940
10226
|
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
8941
10227
|
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
8942
10228
|
listFollowingForUser: ["GET /users/{username}/following"],
|
|
8943
|
-
listGpgKeysForAuthenticated: [
|
|
8944
|
-
|
|
8945
|
-
|
|
10229
|
+
listGpgKeysForAuthenticated: [
|
|
10230
|
+
"GET /user/gpg_keys",
|
|
10231
|
+
{},
|
|
10232
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
10233
|
+
],
|
|
8946
10234
|
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
8947
10235
|
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
8948
|
-
listPublicEmailsForAuthenticated: [
|
|
8949
|
-
|
|
8950
|
-
|
|
10236
|
+
listPublicEmailsForAuthenticated: [
|
|
10237
|
+
"GET /user/public_emails",
|
|
10238
|
+
{},
|
|
10239
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
10240
|
+
],
|
|
8951
10241
|
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
8952
10242
|
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
8953
|
-
listPublicSshKeysForAuthenticated: [
|
|
8954
|
-
|
|
8955
|
-
|
|
10243
|
+
listPublicSshKeysForAuthenticated: [
|
|
10244
|
+
"GET /user/keys",
|
|
10245
|
+
{},
|
|
10246
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
10247
|
+
],
|
|
8956
10248
|
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
10249
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
10250
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
8957
10251
|
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
8958
10252
|
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
8959
|
-
setPrimaryEmailVisibilityForAuthenticated: [
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
10253
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
10254
|
+
"PATCH /user/email/visibility",
|
|
10255
|
+
{},
|
|
10256
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
10257
|
+
],
|
|
10258
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
10259
|
+
"PATCH /user/email/visibility"
|
|
10260
|
+
],
|
|
8963
10261
|
unblock: ["DELETE /user/blocks/{username}"],
|
|
8964
10262
|
unfollow: ["DELETE /user/following/{username}"],
|
|
8965
10263
|
updateAuthenticated: ["PATCH /user"]
|
|
8966
10264
|
}
|
|
8967
10265
|
};
|
|
8968
|
-
var
|
|
10266
|
+
var endpoints_default = Endpoints;
|
|
10267
|
+
var VERSION = "7.2.1";
|
|
8969
10268
|
function endpointsToMethods(octokit, endpointsMap) {
|
|
8970
10269
|
const newMethods = {};
|
|
8971
10270
|
for (const [scope, endpoints] of Object.entries(endpointsMap)) {
|
|
8972
10271
|
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
|
8973
10272
|
const [route, defaults, decorations] = endpoint;
|
|
8974
10273
|
const [method, url] = route.split(/ /);
|
|
8975
|
-
const endpointDefaults = Object.assign(
|
|
8976
|
-
method,
|
|
8977
|
-
|
|
8978
|
-
|
|
10274
|
+
const endpointDefaults = Object.assign(
|
|
10275
|
+
{ method, url },
|
|
10276
|
+
defaults
|
|
10277
|
+
);
|
|
8979
10278
|
if (!newMethods[scope]) {
|
|
8980
10279
|
newMethods[scope] = {};
|
|
8981
10280
|
}
|
|
8982
10281
|
const scopeMethods = newMethods[scope];
|
|
8983
10282
|
if (decorations) {
|
|
8984
|
-
scopeMethods[methodName] = decorate(
|
|
10283
|
+
scopeMethods[methodName] = decorate(
|
|
10284
|
+
octokit,
|
|
10285
|
+
scope,
|
|
10286
|
+
methodName,
|
|
10287
|
+
endpointDefaults,
|
|
10288
|
+
decorations
|
|
10289
|
+
);
|
|
8985
10290
|
continue;
|
|
8986
10291
|
}
|
|
8987
10292
|
scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);
|
|
@@ -9002,16 +10307,22 @@ var require_dist_node11 = __commonJS({
|
|
|
9002
10307
|
}
|
|
9003
10308
|
if (decorations.renamed) {
|
|
9004
10309
|
const [newScope, newMethodName] = decorations.renamed;
|
|
9005
|
-
octokit.log.warn(
|
|
10310
|
+
octokit.log.warn(
|
|
10311
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
10312
|
+
);
|
|
9006
10313
|
}
|
|
9007
10314
|
if (decorations.deprecated) {
|
|
9008
10315
|
octokit.log.warn(decorations.deprecated);
|
|
9009
10316
|
}
|
|
9010
10317
|
if (decorations.renamedParameters) {
|
|
9011
10318
|
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
9012
|
-
for (const [name, alias] of Object.entries(
|
|
10319
|
+
for (const [name, alias] of Object.entries(
|
|
10320
|
+
decorations.renamedParameters
|
|
10321
|
+
)) {
|
|
9013
10322
|
if (name in options2) {
|
|
9014
|
-
octokit.log.warn(
|
|
10323
|
+
octokit.log.warn(
|
|
10324
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
10325
|
+
);
|
|
9015
10326
|
if (!(alias in options2)) {
|
|
9016
10327
|
options2[alias] = options2[name];
|
|
9017
10328
|
}
|
|
@@ -9025,39 +10336,61 @@ var require_dist_node11 = __commonJS({
|
|
|
9025
10336
|
return Object.assign(withDecorations, requestWithDefaults);
|
|
9026
10337
|
}
|
|
9027
10338
|
function restEndpointMethods(octokit) {
|
|
9028
|
-
const api = endpointsToMethods(octokit,
|
|
10339
|
+
const api = endpointsToMethods(octokit, endpoints_default);
|
|
9029
10340
|
return {
|
|
9030
10341
|
rest: api
|
|
9031
10342
|
};
|
|
9032
10343
|
}
|
|
9033
10344
|
restEndpointMethods.VERSION = VERSION;
|
|
9034
10345
|
function legacyRestEndpointMethods(octokit) {
|
|
9035
|
-
const api = endpointsToMethods(octokit,
|
|
10346
|
+
const api = endpointsToMethods(octokit, endpoints_default);
|
|
9036
10347
|
return {
|
|
9037
10348
|
...api,
|
|
9038
10349
|
rest: api
|
|
9039
10350
|
};
|
|
9040
10351
|
}
|
|
9041
10352
|
legacyRestEndpointMethods.VERSION = VERSION;
|
|
9042
|
-
exports2.legacyRestEndpointMethods = legacyRestEndpointMethods;
|
|
9043
|
-
exports2.restEndpointMethods = restEndpointMethods;
|
|
9044
10353
|
}
|
|
9045
10354
|
});
|
|
9046
10355
|
|
|
9047
10356
|
// node_modules/@octokit/rest/dist-node/index.js
|
|
9048
10357
|
var require_dist_node12 = __commonJS({
|
|
9049
|
-
"node_modules/@octokit/rest/dist-node/index.js"(exports2) {
|
|
10358
|
+
"node_modules/@octokit/rest/dist-node/index.js"(exports2, module2) {
|
|
9050
10359
|
"use strict";
|
|
9051
|
-
Object.defineProperty
|
|
9052
|
-
var
|
|
9053
|
-
var
|
|
9054
|
-
var
|
|
9055
|
-
var
|
|
9056
|
-
|
|
9057
|
-
|
|
10360
|
+
var __defProp2 = Object.defineProperty;
|
|
10361
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
10362
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
10363
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
10364
|
+
var __export = (target, all) => {
|
|
10365
|
+
for (var name in all)
|
|
10366
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
10367
|
+
};
|
|
10368
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
10369
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10370
|
+
for (let key of __getOwnPropNames2(from))
|
|
10371
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
10372
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
10373
|
+
}
|
|
10374
|
+
return to;
|
|
10375
|
+
};
|
|
10376
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
10377
|
+
var dist_src_exports = {};
|
|
10378
|
+
__export(dist_src_exports, {
|
|
10379
|
+
Octokit: () => Octokit2
|
|
10380
|
+
});
|
|
10381
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
10382
|
+
var import_core = require_dist_node8();
|
|
10383
|
+
var import_plugin_request_log = require_dist_node9();
|
|
10384
|
+
var import_plugin_paginate_rest = require_dist_node10();
|
|
10385
|
+
var import_plugin_rest_endpoint_methods = require_dist_node11();
|
|
10386
|
+
var VERSION = "19.0.11";
|
|
10387
|
+
var Octokit2 = import_core.Octokit.plugin(
|
|
10388
|
+
import_plugin_request_log.requestLog,
|
|
10389
|
+
import_plugin_rest_endpoint_methods.legacyRestEndpointMethods,
|
|
10390
|
+
import_plugin_paginate_rest.paginateRest
|
|
10391
|
+
).defaults({
|
|
9058
10392
|
userAgent: `octokit-rest.js/${VERSION}`
|
|
9059
10393
|
});
|
|
9060
|
-
exports2.Octokit = Octokit2;
|
|
9061
10394
|
}
|
|
9062
10395
|
});
|
|
9063
10396
|
|
|
@@ -9145,7 +10478,7 @@ async function handlePat(event) {
|
|
|
9145
10478
|
}
|
|
9146
10479
|
await updateSecretValue(process.env.GITHUB_SECRET_ARN, JSON.stringify({
|
|
9147
10480
|
domain: body.domain,
|
|
9148
|
-
appId:
|
|
10481
|
+
appId: -1,
|
|
9149
10482
|
personalAuthToken: body.pat
|
|
9150
10483
|
}));
|
|
9151
10484
|
await updateSecretValue(process.env.SETUP_SECRET_ARN, JSON.stringify({ token: "" }));
|