@fern-api/generator-cli 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +3791 -60
- package/dist/cli.cjs +3822 -91
- package/package.json +7 -9
package/dist/api.cjs
CHANGED
|
@@ -44,7 +44,7 @@ var require_ms = __commonJS({
|
|
|
44
44
|
options = options || {};
|
|
45
45
|
var type = typeof val;
|
|
46
46
|
if (type === "string" && val.length > 0) {
|
|
47
|
-
return
|
|
47
|
+
return parse2(val);
|
|
48
48
|
} else if (type === "number" && isFinite(val)) {
|
|
49
49
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ var require_ms = __commonJS({
|
|
|
52
52
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
|
-
function
|
|
55
|
+
function parse2(str) {
|
|
56
56
|
str = String(str);
|
|
57
57
|
if (str.length > 100) {
|
|
58
58
|
return;
|
|
@@ -1281,6 +1281,229 @@ var require_tmp_promise = __commonJS({
|
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
|
|
1284
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js
|
|
1285
|
+
var require_register = __commonJS({
|
|
1286
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js"(exports2, module2) {
|
|
1287
|
+
"use strict";
|
|
1288
|
+
module2.exports = register;
|
|
1289
|
+
function register(state, name, method, options) {
|
|
1290
|
+
if (typeof method !== "function") {
|
|
1291
|
+
throw new Error("method for before hook must be a function");
|
|
1292
|
+
}
|
|
1293
|
+
if (!options) {
|
|
1294
|
+
options = {};
|
|
1295
|
+
}
|
|
1296
|
+
if (Array.isArray(name)) {
|
|
1297
|
+
return name.reverse().reduce(function(callback, name2) {
|
|
1298
|
+
return register.bind(null, state, name2, callback, options);
|
|
1299
|
+
}, method)();
|
|
1300
|
+
}
|
|
1301
|
+
return Promise.resolve().then(function() {
|
|
1302
|
+
if (!state.registry[name]) {
|
|
1303
|
+
return method(options);
|
|
1304
|
+
}
|
|
1305
|
+
return state.registry[name].reduce(function(method2, registered) {
|
|
1306
|
+
return registered.hook.bind(null, method2, options);
|
|
1307
|
+
}, method)();
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
|
|
1313
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js
|
|
1314
|
+
var require_add = __commonJS({
|
|
1315
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
1316
|
+
"use strict";
|
|
1317
|
+
module2.exports = addHook;
|
|
1318
|
+
function addHook(state, kind, name, hook2) {
|
|
1319
|
+
var orig = hook2;
|
|
1320
|
+
if (!state.registry[name]) {
|
|
1321
|
+
state.registry[name] = [];
|
|
1322
|
+
}
|
|
1323
|
+
if (kind === "before") {
|
|
1324
|
+
hook2 = function(method, options) {
|
|
1325
|
+
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
if (kind === "after") {
|
|
1329
|
+
hook2 = function(method, options) {
|
|
1330
|
+
var result;
|
|
1331
|
+
return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
|
|
1332
|
+
result = result_;
|
|
1333
|
+
return orig(result, options);
|
|
1334
|
+
}).then(function() {
|
|
1335
|
+
return result;
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
if (kind === "error") {
|
|
1340
|
+
hook2 = function(method, options) {
|
|
1341
|
+
return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
|
|
1342
|
+
return orig(error, options);
|
|
1343
|
+
});
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
state.registry[name].push({
|
|
1347
|
+
hook: hook2,
|
|
1348
|
+
orig
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
|
|
1354
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js
|
|
1355
|
+
var require_remove = __commonJS({
|
|
1356
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
|
|
1357
|
+
"use strict";
|
|
1358
|
+
module2.exports = removeHook;
|
|
1359
|
+
function removeHook(state, name, method) {
|
|
1360
|
+
if (!state.registry[name]) {
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
var index = state.registry[name].map(function(registered) {
|
|
1364
|
+
return registered.orig;
|
|
1365
|
+
}).indexOf(method);
|
|
1366
|
+
if (index === -1) {
|
|
1367
|
+
return;
|
|
1368
|
+
}
|
|
1369
|
+
state.registry[name].splice(index, 1);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
|
|
1374
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js
|
|
1375
|
+
var require_before_after_hook = __commonJS({
|
|
1376
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js"(exports2, module2) {
|
|
1377
|
+
"use strict";
|
|
1378
|
+
var register = require_register();
|
|
1379
|
+
var addHook = require_add();
|
|
1380
|
+
var removeHook = require_remove();
|
|
1381
|
+
var bind = Function.bind;
|
|
1382
|
+
var bindable = bind.bind(bind);
|
|
1383
|
+
function bindApi(hook2, state, name) {
|
|
1384
|
+
var removeHookRef = bindable(removeHook, null).apply(
|
|
1385
|
+
null,
|
|
1386
|
+
name ? [state, name] : [state]
|
|
1387
|
+
);
|
|
1388
|
+
hook2.api = { remove: removeHookRef };
|
|
1389
|
+
hook2.remove = removeHookRef;
|
|
1390
|
+
["before", "error", "after", "wrap"].forEach(function(kind) {
|
|
1391
|
+
var args = name ? [state, kind, name] : [state, kind];
|
|
1392
|
+
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
function HookSingular() {
|
|
1396
|
+
var singularHookName = "h";
|
|
1397
|
+
var singularHookState = {
|
|
1398
|
+
registry: {}
|
|
1399
|
+
};
|
|
1400
|
+
var singularHook = register.bind(null, singularHookState, singularHookName);
|
|
1401
|
+
bindApi(singularHook, singularHookState, singularHookName);
|
|
1402
|
+
return singularHook;
|
|
1403
|
+
}
|
|
1404
|
+
function HookCollection() {
|
|
1405
|
+
var state = {
|
|
1406
|
+
registry: {}
|
|
1407
|
+
};
|
|
1408
|
+
var hook2 = register.bind(null, state);
|
|
1409
|
+
bindApi(hook2, state);
|
|
1410
|
+
return hook2;
|
|
1411
|
+
}
|
|
1412
|
+
var collectionHookDeprecationMessageDisplayed = false;
|
|
1413
|
+
function Hook() {
|
|
1414
|
+
if (!collectionHookDeprecationMessageDisplayed) {
|
|
1415
|
+
console.warn(
|
|
1416
|
+
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
|
|
1417
|
+
);
|
|
1418
|
+
collectionHookDeprecationMessageDisplayed = true;
|
|
1419
|
+
}
|
|
1420
|
+
return HookCollection();
|
|
1421
|
+
}
|
|
1422
|
+
Hook.Singular = HookSingular.bind();
|
|
1423
|
+
Hook.Collection = HookCollection.bind();
|
|
1424
|
+
module2.exports = Hook;
|
|
1425
|
+
module2.exports.Hook = Hook;
|
|
1426
|
+
module2.exports.Singular = Hook.Singular;
|
|
1427
|
+
module2.exports.Collection = Hook.Collection;
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
|
|
1431
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
1432
|
+
var require_wrappy = __commonJS({
|
|
1433
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports2, module2) {
|
|
1434
|
+
"use strict";
|
|
1435
|
+
module2.exports = wrappy;
|
|
1436
|
+
function wrappy(fn, cb) {
|
|
1437
|
+
if (fn && cb) return wrappy(fn)(cb);
|
|
1438
|
+
if (typeof fn !== "function")
|
|
1439
|
+
throw new TypeError("need wrapper function");
|
|
1440
|
+
Object.keys(fn).forEach(function(k) {
|
|
1441
|
+
wrapper[k] = fn[k];
|
|
1442
|
+
});
|
|
1443
|
+
return wrapper;
|
|
1444
|
+
function wrapper() {
|
|
1445
|
+
var args = new Array(arguments.length);
|
|
1446
|
+
for (var i = 0; i < args.length; i++) {
|
|
1447
|
+
args[i] = arguments[i];
|
|
1448
|
+
}
|
|
1449
|
+
var ret = fn.apply(this, args);
|
|
1450
|
+
var cb2 = args[args.length - 1];
|
|
1451
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
1452
|
+
Object.keys(cb2).forEach(function(k) {
|
|
1453
|
+
ret[k] = cb2[k];
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
return ret;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
|
|
1462
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
1463
|
+
var require_once = __commonJS({
|
|
1464
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports2, module2) {
|
|
1465
|
+
"use strict";
|
|
1466
|
+
var wrappy = require_wrappy();
|
|
1467
|
+
module2.exports = wrappy(once2);
|
|
1468
|
+
module2.exports.strict = wrappy(onceStrict);
|
|
1469
|
+
once2.proto = once2(function() {
|
|
1470
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
1471
|
+
value: function() {
|
|
1472
|
+
return once2(this);
|
|
1473
|
+
},
|
|
1474
|
+
configurable: true
|
|
1475
|
+
});
|
|
1476
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
1477
|
+
value: function() {
|
|
1478
|
+
return onceStrict(this);
|
|
1479
|
+
},
|
|
1480
|
+
configurable: true
|
|
1481
|
+
});
|
|
1482
|
+
});
|
|
1483
|
+
function once2(fn) {
|
|
1484
|
+
var f = function() {
|
|
1485
|
+
if (f.called) return f.value;
|
|
1486
|
+
f.called = true;
|
|
1487
|
+
return f.value = fn.apply(this, arguments);
|
|
1488
|
+
};
|
|
1489
|
+
f.called = false;
|
|
1490
|
+
return f;
|
|
1491
|
+
}
|
|
1492
|
+
function onceStrict(fn) {
|
|
1493
|
+
var f = function() {
|
|
1494
|
+
if (f.called)
|
|
1495
|
+
throw new Error(f.onceError);
|
|
1496
|
+
f.called = true;
|
|
1497
|
+
return f.value = fn.apply(this, arguments);
|
|
1498
|
+
};
|
|
1499
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
1500
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
1501
|
+
f.called = false;
|
|
1502
|
+
return f;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
});
|
|
1506
|
+
|
|
1284
1507
|
// src/api.ts
|
|
1285
1508
|
var api_exports2 = {};
|
|
1286
1509
|
__export(api_exports2, {
|
|
@@ -1297,6 +1520,10 @@ module.exports = __toCommonJS(api_exports2);
|
|
|
1297
1520
|
// src/api/generate-readme.ts
|
|
1298
1521
|
var import_node_stream = require("stream");
|
|
1299
1522
|
|
|
1523
|
+
// ../commons/github/lib/ClonedRepository.js
|
|
1524
|
+
var import_promises = require("fs/promises");
|
|
1525
|
+
var import_path = __toESM(require("path"), 1);
|
|
1526
|
+
|
|
1300
1527
|
// ../../node_modules/.pnpm/simple-git@3.30.0/node_modules/simple-git/dist/esm/index.js
|
|
1301
1528
|
var import_node_buffer = require("buffer");
|
|
1302
1529
|
var import_file_exists = __toESM(require_dist(), 1);
|
|
@@ -1521,9 +1748,9 @@ function filterType(input, filter, def) {
|
|
|
1521
1748
|
}
|
|
1522
1749
|
return arguments.length > 2 ? def : void 0;
|
|
1523
1750
|
}
|
|
1524
|
-
function filterPrimitives(input,
|
|
1751
|
+
function filterPrimitives(input, omit2) {
|
|
1525
1752
|
const type = isPathSpec(input) ? "string" : typeof input;
|
|
1526
|
-
return /number|string|boolean/.test(type) && (!
|
|
1753
|
+
return /number|string|boolean/.test(type) && (!omit2 || !omit2.includes(type));
|
|
1527
1754
|
}
|
|
1528
1755
|
function filterPlainObject(input) {
|
|
1529
1756
|
return !!input && objectToString(input) === "[object Object]";
|
|
@@ -1731,7 +1958,7 @@ function parseStringResponse(result, parsers12, texts, trim = true) {
|
|
|
1731
1958
|
}
|
|
1732
1959
|
return lines[i + offset];
|
|
1733
1960
|
};
|
|
1734
|
-
parsers12.some(({ parse }) =>
|
|
1961
|
+
parsers12.some(({ parse: parse2 }) => parse2(line, result));
|
|
1735
1962
|
}
|
|
1736
1963
|
});
|
|
1737
1964
|
return result;
|
|
@@ -3740,11 +3967,11 @@ function mergeTask(customArgs) {
|
|
|
3740
3967
|
commands: ["merge", ...customArgs],
|
|
3741
3968
|
format: "utf-8",
|
|
3742
3969
|
parser(stdOut, stdErr) {
|
|
3743
|
-
const
|
|
3744
|
-
if (
|
|
3745
|
-
throw new GitResponseError(
|
|
3970
|
+
const merge2 = parseMergeResult(stdOut, stdErr);
|
|
3971
|
+
if (merge2.failed) {
|
|
3972
|
+
throw new GitResponseError(merge2);
|
|
3746
3973
|
}
|
|
3747
|
-
return
|
|
3974
|
+
return merge2;
|
|
3748
3975
|
}
|
|
3749
3976
|
};
|
|
3750
3977
|
}
|
|
@@ -3919,8 +4146,8 @@ function renamedFile(line) {
|
|
|
3919
4146
|
to
|
|
3920
4147
|
};
|
|
3921
4148
|
}
|
|
3922
|
-
function parser3(indexX, indexY,
|
|
3923
|
-
return [`${indexX}${indexY}`,
|
|
4149
|
+
function parser3(indexX, indexY, handler2) {
|
|
4150
|
+
return [`${indexX}${indexY}`, handler2];
|
|
3924
4151
|
}
|
|
3925
4152
|
function conflicts(indexX, ...indexY) {
|
|
3926
4153
|
return indexY.map((y) => parser3(indexX, y, (result, file) => append(result.conflicted, file)));
|
|
@@ -3937,9 +4164,9 @@ function splitLine(result, lineStr) {
|
|
|
3937
4164
|
}
|
|
3938
4165
|
function data(index, workingDir, path3) {
|
|
3939
4166
|
const raw = `${index}${workingDir}`;
|
|
3940
|
-
const
|
|
3941
|
-
if (
|
|
3942
|
-
|
|
4167
|
+
const handler2 = parsers6.get(raw);
|
|
4168
|
+
if (handler2) {
|
|
4169
|
+
handler2(result, path3);
|
|
3943
4170
|
}
|
|
3944
4171
|
if (raw !== "##" && raw !== "!!") {
|
|
3945
4172
|
result.files.push(new FileStatusSummary(path3, index, workingDir));
|
|
@@ -4286,8 +4513,8 @@ var init_simple_git_api = __esm({
|
|
|
4286
4513
|
trailingFunctionArgument(arguments, false)
|
|
4287
4514
|
);
|
|
4288
4515
|
}
|
|
4289
|
-
outputHandler(
|
|
4290
|
-
this._executor.outputHandler =
|
|
4516
|
+
outputHandler(handler2) {
|
|
4517
|
+
this._executor.outputHandler = handler2;
|
|
4291
4518
|
return this;
|
|
4292
4519
|
}
|
|
4293
4520
|
push() {
|
|
@@ -4836,8 +5063,8 @@ function parseGetRemotesVerbose(text) {
|
|
|
4836
5063
|
});
|
|
4837
5064
|
return Object.values(remotes);
|
|
4838
5065
|
}
|
|
4839
|
-
function forEach(text,
|
|
4840
|
-
forEachLineWithContent(text, (line) =>
|
|
5066
|
+
function forEach(text, handler2) {
|
|
5067
|
+
forEachLineWithContent(text, (line) => handler2(line.split(/\s+/)));
|
|
4841
5068
|
}
|
|
4842
5069
|
var init_GetRemoteSummary = __esm({
|
|
4843
5070
|
"src/lib/responses/GetRemoteSummary.ts"() {
|
|
@@ -5340,20 +5567,20 @@ var require_git = __commonJS2({
|
|
|
5340
5567
|
return this._catFile("buffer", arguments);
|
|
5341
5568
|
};
|
|
5342
5569
|
Git2.prototype._catFile = function(format, args) {
|
|
5343
|
-
var
|
|
5570
|
+
var handler2 = trailingFunctionArgument2(args);
|
|
5344
5571
|
var command = ["cat-file"];
|
|
5345
5572
|
var options = args[0];
|
|
5346
5573
|
if (typeof options === "string") {
|
|
5347
5574
|
return this._runTask(
|
|
5348
5575
|
configurationErrorTask2("Git.catFile: options must be supplied as an array of strings"),
|
|
5349
|
-
|
|
5576
|
+
handler2
|
|
5350
5577
|
);
|
|
5351
5578
|
}
|
|
5352
5579
|
if (Array.isArray(options)) {
|
|
5353
5580
|
command.push.apply(command, options);
|
|
5354
5581
|
}
|
|
5355
5582
|
const task = format === "buffer" ? straightThroughBufferTask2(command) : straightThroughStringTask2(command);
|
|
5356
|
-
return this._runTask(task,
|
|
5583
|
+
return this._runTask(task, handler2);
|
|
5357
5584
|
};
|
|
5358
5585
|
Git2.prototype.diff = function(options, then) {
|
|
5359
5586
|
const task = filterString2(options) ? configurationErrorTask2(
|
|
@@ -5842,15 +6069,9 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
5842
6069
|
return new Git(config, plugins);
|
|
5843
6070
|
}
|
|
5844
6071
|
init_git_response_error();
|
|
6072
|
+
var simpleGit = gitInstanceFactory;
|
|
5845
6073
|
var esm_default = gitInstanceFactory;
|
|
5846
6074
|
|
|
5847
|
-
// ../commons/github/lib/cloneRepository.js
|
|
5848
|
-
var import_tmp_promise = __toESM(require_tmp_promise(), 1);
|
|
5849
|
-
|
|
5850
|
-
// ../commons/github/lib/ClonedRepository.js
|
|
5851
|
-
var import_promises = require("fs/promises");
|
|
5852
|
-
var import_path = __toESM(require("path"), 1);
|
|
5853
|
-
|
|
5854
6075
|
// ../commons/github/lib/constants.js
|
|
5855
6076
|
var DEFAULT_REMOTE = "github.com";
|
|
5856
6077
|
var README_FILEPATH = "README.md";
|
|
@@ -5860,13 +6081,19 @@ var GIT_DIR = ".git";
|
|
|
5860
6081
|
|
|
5861
6082
|
// ../commons/github/lib/ClonedRepository.js
|
|
5862
6083
|
var DEFAULT_IGNORED_FILES = [FERNIGNORE, GITIGNORE, GIT_DIR];
|
|
5863
|
-
var ClonedRepository = class {
|
|
6084
|
+
var ClonedRepository = class _ClonedRepository {
|
|
5864
6085
|
clonePath;
|
|
5865
6086
|
git;
|
|
5866
6087
|
constructor({ clonePath, git }) {
|
|
5867
6088
|
this.clonePath = clonePath;
|
|
5868
6089
|
this.git = git;
|
|
5869
6090
|
}
|
|
6091
|
+
static createAtPath(clonePath) {
|
|
6092
|
+
return new _ClonedRepository({
|
|
6093
|
+
clonePath,
|
|
6094
|
+
git: simpleGit(clonePath)
|
|
6095
|
+
});
|
|
6096
|
+
}
|
|
5870
6097
|
async getDefaultBranch() {
|
|
5871
6098
|
await this.git.cwd(this.clonePath);
|
|
5872
6099
|
const remoteInfo = await this.git.remote(["show", "origin"]);
|
|
@@ -5879,6 +6106,11 @@ var ClonedRepository = class {
|
|
|
5879
6106
|
}
|
|
5880
6107
|
return match[1].trim();
|
|
5881
6108
|
}
|
|
6109
|
+
async getCurrentBranch() {
|
|
6110
|
+
await this.git.cwd(this.clonePath);
|
|
6111
|
+
const branch = await this.git.branchLocal();
|
|
6112
|
+
return branch.current;
|
|
6113
|
+
}
|
|
5882
6114
|
async getReadme() {
|
|
5883
6115
|
return await this.readFile({ relativeFilePath: README_FILEPATH });
|
|
5884
6116
|
}
|
|
@@ -5906,6 +6138,11 @@ var ClonedRepository = class {
|
|
|
5906
6138
|
"--allow-empty": null
|
|
5907
6139
|
});
|
|
5908
6140
|
}
|
|
6141
|
+
async commitAllChanges(message) {
|
|
6142
|
+
await this.git.cwd(this.clonePath);
|
|
6143
|
+
await this.git.add(".");
|
|
6144
|
+
await this.commit(message);
|
|
6145
|
+
}
|
|
5909
6146
|
async checkout(branch) {
|
|
5910
6147
|
await this.git.cwd(this.clonePath);
|
|
5911
6148
|
try {
|
|
@@ -5977,6 +6214,9 @@ async function doesPathExist(filepath) {
|
|
|
5977
6214
|
}
|
|
5978
6215
|
}
|
|
5979
6216
|
|
|
6217
|
+
// ../commons/github/lib/cloneRepository.js
|
|
6218
|
+
var import_tmp_promise = __toESM(require_tmp_promise(), 1);
|
|
6219
|
+
|
|
5980
6220
|
// ../commons/github/lib/parseRepository.js
|
|
5981
6221
|
function parseRepository(githubRepository) {
|
|
5982
6222
|
let remote = DEFAULT_REMOTE;
|
|
@@ -6020,12 +6260,16 @@ function getCloneUrl({ remote, owner, repo }) {
|
|
|
6020
6260
|
}
|
|
6021
6261
|
|
|
6022
6262
|
// ../commons/github/lib/cloneRepository.js
|
|
6023
|
-
async function cloneRepository({ githubRepository, installationToken }) {
|
|
6263
|
+
async function cloneRepository({ githubRepository, installationToken, targetDirectory, timeoutMs }) {
|
|
6024
6264
|
const repositoryReference = parseRepository(githubRepository);
|
|
6025
6265
|
const cloneUrl = installationToken != null ? repositoryReference.getAuthedCloneUrl(installationToken) : repositoryReference.cloneUrl;
|
|
6026
|
-
const
|
|
6027
|
-
const
|
|
6028
|
-
|
|
6266
|
+
const clonePath = targetDirectory ?? (await import_tmp_promise.default.dir()).path;
|
|
6267
|
+
const git = esm_default(clonePath, {
|
|
6268
|
+
timeout: timeoutMs != null ? {
|
|
6269
|
+
block: timeoutMs
|
|
6270
|
+
// Kill the process if no data is received for the specified time
|
|
6271
|
+
} : void 0
|
|
6272
|
+
});
|
|
6029
6273
|
await git.clone(cloneUrl, ".");
|
|
6030
6274
|
return new ClonedRepository({
|
|
6031
6275
|
clonePath,
|
|
@@ -6033,9 +6277,244 @@ async function cloneRepository({ githubRepository, installationToken }) {
|
|
|
6033
6277
|
});
|
|
6034
6278
|
}
|
|
6035
6279
|
|
|
6036
|
-
//
|
|
6037
|
-
|
|
6038
|
-
|
|
6280
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
6281
|
+
function isLength(value) {
|
|
6282
|
+
return Number.isSafeInteger(value) && value >= 0;
|
|
6283
|
+
}
|
|
6284
|
+
|
|
6285
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
6286
|
+
function isArrayLike2(value) {
|
|
6287
|
+
return value != null && typeof value !== "function" && isLength(value.length);
|
|
6288
|
+
}
|
|
6289
|
+
|
|
6290
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
6291
|
+
function toString(value) {
|
|
6292
|
+
if (value == null) {
|
|
6293
|
+
return "";
|
|
6294
|
+
}
|
|
6295
|
+
if (typeof value === "string") {
|
|
6296
|
+
return value;
|
|
6297
|
+
}
|
|
6298
|
+
if (Array.isArray(value)) {
|
|
6299
|
+
return value.map(toString).join(",");
|
|
6300
|
+
}
|
|
6301
|
+
const result = String(value);
|
|
6302
|
+
if (result === "0" && Object.is(Number(value), -0)) {
|
|
6303
|
+
return "-0";
|
|
6304
|
+
}
|
|
6305
|
+
return result;
|
|
6306
|
+
}
|
|
6307
|
+
|
|
6308
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
6309
|
+
function isObject(value) {
|
|
6310
|
+
return value !== null && (typeof value === "object" || typeof value === "function");
|
|
6311
|
+
}
|
|
6312
|
+
|
|
6313
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
6314
|
+
function eq(value, other) {
|
|
6315
|
+
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
6319
|
+
var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
|
|
6320
|
+
function isIndex(value, length = Number.MAX_SAFE_INTEGER) {
|
|
6321
|
+
switch (typeof value) {
|
|
6322
|
+
case "number": {
|
|
6323
|
+
return Number.isInteger(value) && value >= 0 && value < length;
|
|
6324
|
+
}
|
|
6325
|
+
case "symbol": {
|
|
6326
|
+
return false;
|
|
6327
|
+
}
|
|
6328
|
+
case "string": {
|
|
6329
|
+
return IS_UNSIGNED_INTEGER.test(value);
|
|
6330
|
+
}
|
|
6331
|
+
}
|
|
6332
|
+
}
|
|
6333
|
+
|
|
6334
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
|
|
6335
|
+
function isIterateeCall(value, index, object) {
|
|
6336
|
+
if (!isObject(object)) {
|
|
6337
|
+
return false;
|
|
6338
|
+
}
|
|
6339
|
+
if (typeof index === "number" && isArrayLike2(object) && isIndex(index) && index < object.length || typeof index === "string" && index in object) {
|
|
6340
|
+
return eq(object[index], value);
|
|
6341
|
+
}
|
|
6342
|
+
return false;
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isNil.mjs
|
|
6346
|
+
function isNil(x) {
|
|
6347
|
+
return x == null;
|
|
6348
|
+
}
|
|
6349
|
+
|
|
6350
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/function/attempt.mjs
|
|
6351
|
+
function attempt(func, ...args) {
|
|
6352
|
+
try {
|
|
6353
|
+
return func(...args);
|
|
6354
|
+
} catch (e) {
|
|
6355
|
+
return e instanceof Error ? e : new Error(e);
|
|
6356
|
+
}
|
|
6357
|
+
}
|
|
6358
|
+
|
|
6359
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/defaults.mjs
|
|
6360
|
+
function defaults(object, ...sources) {
|
|
6361
|
+
object = Object(object);
|
|
6362
|
+
const objectProto = Object.prototype;
|
|
6363
|
+
let length = sources.length;
|
|
6364
|
+
const guard = length > 2 ? sources[2] : void 0;
|
|
6365
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
6366
|
+
length = 1;
|
|
6367
|
+
}
|
|
6368
|
+
for (let i = 0; i < length; i++) {
|
|
6369
|
+
if (isNil(sources[i])) {
|
|
6370
|
+
continue;
|
|
6371
|
+
}
|
|
6372
|
+
const source = sources[i];
|
|
6373
|
+
const keys = Object.keys(source);
|
|
6374
|
+
for (let j = 0; j < keys.length; j++) {
|
|
6375
|
+
const key = keys[j];
|
|
6376
|
+
const value = object[key];
|
|
6377
|
+
if (value === void 0 || !Object.hasOwn(object, key) && eq(value, objectProto[key])) {
|
|
6378
|
+
object[key] = source[key];
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
}
|
|
6382
|
+
return object;
|
|
6383
|
+
}
|
|
6384
|
+
|
|
6385
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/capitalize.mjs
|
|
6386
|
+
function capitalize(str) {
|
|
6387
|
+
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
6388
|
+
}
|
|
6389
|
+
|
|
6390
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/words.mjs
|
|
6391
|
+
var CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
|
|
6392
|
+
function words(str) {
|
|
6393
|
+
return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/camelCase.mjs
|
|
6397
|
+
function camelCase(str) {
|
|
6398
|
+
const words$1 = words(str);
|
|
6399
|
+
if (words$1.length === 0) {
|
|
6400
|
+
return "";
|
|
6401
|
+
}
|
|
6402
|
+
const [first2, ...rest] = words$1;
|
|
6403
|
+
return `${first2.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6406
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/escape.mjs
|
|
6407
|
+
var htmlEscapes = {
|
|
6408
|
+
"&": "&",
|
|
6409
|
+
"<": "<",
|
|
6410
|
+
">": ">",
|
|
6411
|
+
'"': """,
|
|
6412
|
+
"'": "'"
|
|
6413
|
+
};
|
|
6414
|
+
function escape(str) {
|
|
6415
|
+
return str.replace(/[&<>"']/g, (match) => htmlEscapes[match]);
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/string/escape.mjs
|
|
6419
|
+
function escape2(string) {
|
|
6420
|
+
return escape(toString(string));
|
|
6421
|
+
}
|
|
6422
|
+
|
|
6423
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/snakeCase.mjs
|
|
6424
|
+
function snakeCase(str) {
|
|
6425
|
+
const words$1 = words(str);
|
|
6426
|
+
return words$1.map((word) => word.toLowerCase()).join("_");
|
|
6427
|
+
}
|
|
6428
|
+
|
|
6429
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/string/template.mjs
|
|
6430
|
+
var esTemplateRegExp = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
|
6431
|
+
var unEscapedRegExp = /['\n\r\u2028\u2029\\]/g;
|
|
6432
|
+
var noMatchExp = /($^)/;
|
|
6433
|
+
var escapeMap = /* @__PURE__ */ new Map([
|
|
6434
|
+
["\\", "\\"],
|
|
6435
|
+
["'", "'"],
|
|
6436
|
+
["\n", "n"],
|
|
6437
|
+
["\r", "r"],
|
|
6438
|
+
["\u2028", "u2028"],
|
|
6439
|
+
["\u2029", "u2029"]
|
|
6440
|
+
]);
|
|
6441
|
+
function escapeString(match) {
|
|
6442
|
+
return `\\${escapeMap.get(match)}`;
|
|
6443
|
+
}
|
|
6444
|
+
var templateSettings = {
|
|
6445
|
+
escape: /<%-([\s\S]+?)%>/g,
|
|
6446
|
+
evaluate: /<%([\s\S]+?)%>/g,
|
|
6447
|
+
interpolate: /<%=([\s\S]+?)%>/g,
|
|
6448
|
+
variable: "",
|
|
6449
|
+
imports: {
|
|
6450
|
+
_: {
|
|
6451
|
+
escape: escape2,
|
|
6452
|
+
template
|
|
6453
|
+
}
|
|
6454
|
+
}
|
|
6455
|
+
};
|
|
6456
|
+
function template(string, options, guard) {
|
|
6457
|
+
string = toString(string);
|
|
6458
|
+
if (guard) {
|
|
6459
|
+
options = templateSettings;
|
|
6460
|
+
}
|
|
6461
|
+
options = defaults({ ...options }, templateSettings);
|
|
6462
|
+
const delimitersRegExp = new RegExp([
|
|
6463
|
+
options.escape?.source ?? noMatchExp.source,
|
|
6464
|
+
options.interpolate?.source ?? noMatchExp.source,
|
|
6465
|
+
options.interpolate ? esTemplateRegExp.source : noMatchExp.source,
|
|
6466
|
+
options.evaluate?.source ?? noMatchExp.source,
|
|
6467
|
+
"$"
|
|
6468
|
+
].join("|"), "g");
|
|
6469
|
+
let lastIndex = 0;
|
|
6470
|
+
let isEvaluated = false;
|
|
6471
|
+
let source = `__p += ''`;
|
|
6472
|
+
for (const match of string.matchAll(delimitersRegExp)) {
|
|
6473
|
+
const [fullMatch, escapeValue, interpolateValue, esTemplateValue, evaluateValue] = match;
|
|
6474
|
+
const { index } = match;
|
|
6475
|
+
source += ` + '${string.slice(lastIndex, index).replace(unEscapedRegExp, escapeString)}'`;
|
|
6476
|
+
if (escapeValue) {
|
|
6477
|
+
source += ` + _.escape(${escapeValue})`;
|
|
6478
|
+
}
|
|
6479
|
+
if (interpolateValue) {
|
|
6480
|
+
source += ` + ((${interpolateValue}) == null ? '' : ${interpolateValue})`;
|
|
6481
|
+
} else if (esTemplateValue) {
|
|
6482
|
+
source += ` + ((${esTemplateValue}) == null ? '' : ${esTemplateValue})`;
|
|
6483
|
+
}
|
|
6484
|
+
if (evaluateValue) {
|
|
6485
|
+
source += `;
|
|
6486
|
+
${evaluateValue};
|
|
6487
|
+
__p += ''`;
|
|
6488
|
+
isEvaluated = true;
|
|
6489
|
+
}
|
|
6490
|
+
lastIndex = index + fullMatch.length;
|
|
6491
|
+
}
|
|
6492
|
+
const imports = defaults({ ...options.imports }, templateSettings.imports);
|
|
6493
|
+
const importsKeys = Object.keys(imports);
|
|
6494
|
+
const importValues = Object.values(imports);
|
|
6495
|
+
const sourceURL = `//# sourceURL=${options.sourceURL ? String(options.sourceURL).replace(/[\r\n]/g, " ") : `es-toolkit.templateSource[${Date.now()}]`}
|
|
6496
|
+
`;
|
|
6497
|
+
const compiledFunction = `function(${options.variable || "obj"}) {
|
|
6498
|
+
let __p = '';
|
|
6499
|
+
${options.variable ? "" : "if (obj == null) { obj = {}; }"}
|
|
6500
|
+
${isEvaluated ? `function print() { __p += Array.prototype.join.call(arguments, ''); }` : ""}
|
|
6501
|
+
${options.variable ? source : `with(obj) {
|
|
6502
|
+
${source}
|
|
6503
|
+
}`}
|
|
6504
|
+
return __p;
|
|
6505
|
+
}`;
|
|
6506
|
+
const result = attempt(() => new Function(...importsKeys, `${sourceURL}return ${compiledFunction}`)(...importValues));
|
|
6507
|
+
result.source = compiledFunction;
|
|
6508
|
+
if (result instanceof Error) {
|
|
6509
|
+
throw result;
|
|
6510
|
+
}
|
|
6511
|
+
return result;
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/upperFirst.mjs
|
|
6515
|
+
function upperFirst(str) {
|
|
6516
|
+
return str.substring(0, 1).toUpperCase() + str.substring(1);
|
|
6517
|
+
}
|
|
6039
6518
|
|
|
6040
6519
|
// src/configuration/sdk/api/index.ts
|
|
6041
6520
|
var api_exports = {};
|
|
@@ -6816,7 +7295,7 @@ var ReadmeGenerator = class {
|
|
|
6816
7295
|
}
|
|
6817
7296
|
applyTemplateOptions(content, options) {
|
|
6818
7297
|
try {
|
|
6819
|
-
return
|
|
7298
|
+
return template(content, { interpolate: /{{([^}]+)}}/g })(options);
|
|
6820
7299
|
} catch (error) {
|
|
6821
7300
|
console.error(`[templates] ${JSON.stringify(error)}`);
|
|
6822
7301
|
return content;
|
|
@@ -7271,7 +7750,7 @@ function languageToTitle(language) {
|
|
|
7271
7750
|
}
|
|
7272
7751
|
}
|
|
7273
7752
|
function featureIDToTitle(featureID) {
|
|
7274
|
-
const
|
|
7753
|
+
const words2 = featureID.split("_").map((s) => pascalCase(s));
|
|
7275
7754
|
const lowercaseWords = /* @__PURE__ */ new Set([
|
|
7276
7755
|
"And",
|
|
7277
7756
|
"Or",
|
|
@@ -7288,8 +7767,8 @@ function featureIDToTitle(featureID) {
|
|
|
7288
7767
|
"To",
|
|
7289
7768
|
"As"
|
|
7290
7769
|
]);
|
|
7291
|
-
return
|
|
7292
|
-
if (index === 0 || index ===
|
|
7770
|
+
return words2.map((word, index) => {
|
|
7771
|
+
if (index === 0 || index === words2.length - 1) {
|
|
7293
7772
|
return word;
|
|
7294
7773
|
}
|
|
7295
7774
|
if (lowercaseWords.has(word)) {
|
|
@@ -7299,7 +7778,7 @@ function featureIDToTitle(featureID) {
|
|
|
7299
7778
|
}).join(" ");
|
|
7300
7779
|
}
|
|
7301
7780
|
function pascalCase(s) {
|
|
7302
|
-
return
|
|
7781
|
+
return upperFirst(camelCase(s));
|
|
7303
7782
|
}
|
|
7304
7783
|
function getMajorVersion(version) {
|
|
7305
7784
|
return version.split(".")[0] ?? "0";
|
|
@@ -7312,7 +7791,6 @@ function toScreamingSnakeCase(s) {
|
|
|
7312
7791
|
}
|
|
7313
7792
|
|
|
7314
7793
|
// src/readme/ReadmeParser.ts
|
|
7315
|
-
var import_string2 = require("es-toolkit/string");
|
|
7316
7794
|
var ReadmeParser = class {
|
|
7317
7795
|
parse({ content }) {
|
|
7318
7796
|
let header = "";
|
|
@@ -7322,7 +7800,7 @@ var ReadmeParser = class {
|
|
|
7322
7800
|
for (const line of lines) {
|
|
7323
7801
|
const h2Match = line.match(/^##\s+(.*)/);
|
|
7324
7802
|
if (h2Match) {
|
|
7325
|
-
if (currentBlock) {
|
|
7803
|
+
if (currentBlock && !this.isTableOfContentsBlock(currentBlock.id)) {
|
|
7326
7804
|
blocks.push(currentBlock);
|
|
7327
7805
|
}
|
|
7328
7806
|
currentBlock = new Block({
|
|
@@ -7337,7 +7815,7 @@ var ReadmeParser = class {
|
|
|
7337
7815
|
currentBlock.content += `${line}
|
|
7338
7816
|
`;
|
|
7339
7817
|
}
|
|
7340
|
-
if (currentBlock) {
|
|
7818
|
+
if (currentBlock && !this.isTableOfContentsBlock(currentBlock.id)) {
|
|
7341
7819
|
blocks.push(currentBlock);
|
|
7342
7820
|
}
|
|
7343
7821
|
return {
|
|
@@ -7345,9 +7823,12 @@ var ReadmeParser = class {
|
|
|
7345
7823
|
blocks
|
|
7346
7824
|
};
|
|
7347
7825
|
}
|
|
7826
|
+
isTableOfContentsBlock(blockId) {
|
|
7827
|
+
return blockId === "TABLE_OF_CONTENTS" || blockId === "CONTENTS";
|
|
7828
|
+
}
|
|
7348
7829
|
};
|
|
7349
7830
|
function sectionNameToID(sectionName) {
|
|
7350
|
-
return
|
|
7831
|
+
return snakeCase(
|
|
7351
7832
|
sectionName.split(" ").map((word, index) => {
|
|
7352
7833
|
if (index === 0) {
|
|
7353
7834
|
return word;
|
|
@@ -7422,8 +7903,8 @@ var ReferenceGenerator = class {
|
|
|
7422
7903
|
if (section.description != null) {
|
|
7423
7904
|
await writer.writeLine(section.description);
|
|
7424
7905
|
}
|
|
7425
|
-
for (const
|
|
7426
|
-
await this.writeEndpoint({ endpoint, writer });
|
|
7906
|
+
for (const endpoint2 of section.endpoints) {
|
|
7907
|
+
await this.writeEndpoint({ endpoint: endpoint2, writer });
|
|
7427
7908
|
}
|
|
7428
7909
|
}
|
|
7429
7910
|
async writeSection({ section, writer }) {
|
|
@@ -7431,17 +7912,17 @@ var ReferenceGenerator = class {
|
|
|
7431
7912
|
if (section.description != null) {
|
|
7432
7913
|
await writer.writeLine(section.description);
|
|
7433
7914
|
}
|
|
7434
|
-
for (const
|
|
7435
|
-
await this.writeEndpoint({ endpoint, writer });
|
|
7915
|
+
for (const endpoint2 of section.endpoints) {
|
|
7916
|
+
await this.writeEndpoint({ endpoint: endpoint2, writer });
|
|
7436
7917
|
}
|
|
7437
7918
|
}
|
|
7438
|
-
async writeEndpoint({ endpoint, writer }) {
|
|
7919
|
+
async writeEndpoint({ endpoint: endpoint2, writer }) {
|
|
7439
7920
|
const stringWriter = new StringWriter();
|
|
7440
|
-
if (
|
|
7921
|
+
if (endpoint2.description != null) {
|
|
7441
7922
|
await stringWriter.writeLine(
|
|
7442
7923
|
`#### \u{1F4DD} Description
|
|
7443
7924
|
|
|
7444
|
-
${this.generateIndentedBlock(this.generateIndentedBlock(
|
|
7925
|
+
${this.generateIndentedBlock(this.generateIndentedBlock(endpoint2.description))}
|
|
7445
7926
|
`
|
|
7446
7927
|
);
|
|
7447
7928
|
}
|
|
@@ -7451,25 +7932,25 @@ ${this.generateIndentedBlock(this.generateIndentedBlock(endpoint.description))}
|
|
|
7451
7932
|
${this.generateIndentedBlock(
|
|
7452
7933
|
this.generateIndentedBlock(
|
|
7453
7934
|
`\`\`\`${this.referenceConfig.language.toLowerCase()}
|
|
7454
|
-
${
|
|
7935
|
+
${endpoint2.snippet}
|
|
7455
7936
|
\`\`\``
|
|
7456
7937
|
)
|
|
7457
7938
|
)}
|
|
7458
7939
|
`
|
|
7459
7940
|
);
|
|
7460
|
-
if (
|
|
7941
|
+
if (endpoint2.parameters.length > 0) {
|
|
7461
7942
|
await stringWriter.writeLine(
|
|
7462
7943
|
`#### \u2699\uFE0F Parameters
|
|
7463
7944
|
|
|
7464
7945
|
${this.generateIndentedBlock(
|
|
7465
|
-
|
|
7946
|
+
endpoint2.parameters.map((parameter) => this.generateIndentedBlock(this.generateParameter(parameter))).join("\n\n")
|
|
7466
7947
|
)}
|
|
7467
7948
|
`
|
|
7468
7949
|
);
|
|
7469
7950
|
}
|
|
7470
|
-
let linkedSnippet = this.wrapInLinksAndJoin(
|
|
7471
|
-
if (
|
|
7472
|
-
linkedSnippet += ` -> ${this.wrapInLink(
|
|
7951
|
+
let linkedSnippet = this.wrapInLinksAndJoin(endpoint2.title.snippetParts);
|
|
7952
|
+
if (endpoint2.title.returnValue != null) {
|
|
7953
|
+
linkedSnippet += ` -> ${this.wrapInLink(endpoint2.title.returnValue.text, endpoint2.title.returnValue.location)}`;
|
|
7473
7954
|
}
|
|
7474
7955
|
await writer.writeLine(`<details><summary><code>${linkedSnippet}</code></summary>`);
|
|
7475
7956
|
await writer.writeLine(this.generateIndentedBlock(stringWriter.toString()));
|
|
@@ -7543,8 +8024,3258 @@ function resolve2(...paths) {
|
|
|
7543
8024
|
return import_path2.default.resolve(...paths.map(convertToOsPath));
|
|
7544
8025
|
}
|
|
7545
8026
|
|
|
8027
|
+
// ../../node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-web/index.js
|
|
8028
|
+
function getUserAgent() {
|
|
8029
|
+
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
8030
|
+
return navigator.userAgent;
|
|
8031
|
+
}
|
|
8032
|
+
if (typeof process === "object" && process.version !== void 0) {
|
|
8033
|
+
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
|
8034
|
+
}
|
|
8035
|
+
return "<environment undetectable>";
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8038
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
8039
|
+
var import_before_after_hook = __toESM(require_before_after_hook());
|
|
8040
|
+
|
|
8041
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/version.js
|
|
8042
|
+
var VERSION = "9.0.6";
|
|
8043
|
+
|
|
8044
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/defaults.js
|
|
8045
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
8046
|
+
var DEFAULTS = {
|
|
8047
|
+
method: "GET",
|
|
8048
|
+
baseUrl: "https://api.github.com",
|
|
8049
|
+
headers: {
|
|
8050
|
+
accept: "application/vnd.github.v3+json",
|
|
8051
|
+
"user-agent": userAgent
|
|
8052
|
+
},
|
|
8053
|
+
mediaType: {
|
|
8054
|
+
format: ""
|
|
8055
|
+
}
|
|
8056
|
+
};
|
|
8057
|
+
|
|
8058
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
|
|
8059
|
+
function lowercaseKeys(object) {
|
|
8060
|
+
if (!object) {
|
|
8061
|
+
return {};
|
|
8062
|
+
}
|
|
8063
|
+
return Object.keys(object).reduce((newObj, key) => {
|
|
8064
|
+
newObj[key.toLowerCase()] = object[key];
|
|
8065
|
+
return newObj;
|
|
8066
|
+
}, {});
|
|
8067
|
+
}
|
|
8068
|
+
|
|
8069
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/is-plain-object.js
|
|
8070
|
+
function isPlainObject(value) {
|
|
8071
|
+
if (typeof value !== "object" || value === null)
|
|
8072
|
+
return false;
|
|
8073
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
8074
|
+
return false;
|
|
8075
|
+
const proto = Object.getPrototypeOf(value);
|
|
8076
|
+
if (proto === null)
|
|
8077
|
+
return true;
|
|
8078
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
8079
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
8080
|
+
}
|
|
8081
|
+
|
|
8082
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
|
|
8083
|
+
function mergeDeep(defaults2, options) {
|
|
8084
|
+
const result = Object.assign({}, defaults2);
|
|
8085
|
+
Object.keys(options).forEach((key) => {
|
|
8086
|
+
if (isPlainObject(options[key])) {
|
|
8087
|
+
if (!(key in defaults2))
|
|
8088
|
+
Object.assign(result, { [key]: options[key] });
|
|
8089
|
+
else
|
|
8090
|
+
result[key] = mergeDeep(defaults2[key], options[key]);
|
|
8091
|
+
} else {
|
|
8092
|
+
Object.assign(result, { [key]: options[key] });
|
|
8093
|
+
}
|
|
8094
|
+
});
|
|
8095
|
+
return result;
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8098
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
|
|
8099
|
+
function removeUndefinedProperties(obj) {
|
|
8100
|
+
for (const key in obj) {
|
|
8101
|
+
if (obj[key] === void 0) {
|
|
8102
|
+
delete obj[key];
|
|
8103
|
+
}
|
|
8104
|
+
}
|
|
8105
|
+
return obj;
|
|
8106
|
+
}
|
|
8107
|
+
|
|
8108
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/merge.js
|
|
8109
|
+
function merge(defaults2, route, options) {
|
|
8110
|
+
if (typeof route === "string") {
|
|
8111
|
+
let [method, url] = route.split(" ");
|
|
8112
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
8113
|
+
} else {
|
|
8114
|
+
options = Object.assign({}, route);
|
|
8115
|
+
}
|
|
8116
|
+
options.headers = lowercaseKeys(options.headers);
|
|
8117
|
+
removeUndefinedProperties(options);
|
|
8118
|
+
removeUndefinedProperties(options.headers);
|
|
8119
|
+
const mergedOptions = mergeDeep(defaults2 || {}, options);
|
|
8120
|
+
if (options.url === "/graphql") {
|
|
8121
|
+
if (defaults2 && defaults2.mediaType.previews?.length) {
|
|
8122
|
+
mergedOptions.mediaType.previews = defaults2.mediaType.previews.filter(
|
|
8123
|
+
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
|
8124
|
+
).concat(mergedOptions.mediaType.previews);
|
|
8125
|
+
}
|
|
8126
|
+
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
|
8127
|
+
}
|
|
8128
|
+
return mergedOptions;
|
|
8129
|
+
}
|
|
8130
|
+
|
|
8131
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
|
|
8132
|
+
function addQueryParameters(url, parameters) {
|
|
8133
|
+
const separator = /\?/.test(url) ? "&" : "?";
|
|
8134
|
+
const names = Object.keys(parameters);
|
|
8135
|
+
if (names.length === 0) {
|
|
8136
|
+
return url;
|
|
8137
|
+
}
|
|
8138
|
+
return url + separator + names.map((name) => {
|
|
8139
|
+
if (name === "q") {
|
|
8140
|
+
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
8141
|
+
}
|
|
8142
|
+
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
8143
|
+
}).join("&");
|
|
8144
|
+
}
|
|
8145
|
+
|
|
8146
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
|
|
8147
|
+
var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
8148
|
+
function removeNonChars(variableName) {
|
|
8149
|
+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
8150
|
+
}
|
|
8151
|
+
function extractUrlVariableNames(url) {
|
|
8152
|
+
const matches = url.match(urlVariableRegex);
|
|
8153
|
+
if (!matches) {
|
|
8154
|
+
return [];
|
|
8155
|
+
}
|
|
8156
|
+
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
8157
|
+
}
|
|
8158
|
+
|
|
8159
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/omit.js
|
|
8160
|
+
function omit(object, keysToOmit) {
|
|
8161
|
+
const result = { __proto__: null };
|
|
8162
|
+
for (const key of Object.keys(object)) {
|
|
8163
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
8164
|
+
result[key] = object[key];
|
|
8165
|
+
}
|
|
8166
|
+
}
|
|
8167
|
+
return result;
|
|
8168
|
+
}
|
|
8169
|
+
|
|
8170
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/url-template.js
|
|
8171
|
+
function encodeReserved(str) {
|
|
8172
|
+
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
8173
|
+
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
8174
|
+
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
8175
|
+
}
|
|
8176
|
+
return part;
|
|
8177
|
+
}).join("");
|
|
8178
|
+
}
|
|
8179
|
+
function encodeUnreserved(str) {
|
|
8180
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
|
8181
|
+
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
8182
|
+
});
|
|
8183
|
+
}
|
|
8184
|
+
function encodeValue(operator, value, key) {
|
|
8185
|
+
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
|
8186
|
+
if (key) {
|
|
8187
|
+
return encodeUnreserved(key) + "=" + value;
|
|
8188
|
+
} else {
|
|
8189
|
+
return value;
|
|
8190
|
+
}
|
|
8191
|
+
}
|
|
8192
|
+
function isDefined(value) {
|
|
8193
|
+
return value !== void 0 && value !== null;
|
|
8194
|
+
}
|
|
8195
|
+
function isKeyOperator(operator) {
|
|
8196
|
+
return operator === ";" || operator === "&" || operator === "?";
|
|
8197
|
+
}
|
|
8198
|
+
function getValues(context, operator, key, modifier) {
|
|
8199
|
+
var value = context[key], result = [];
|
|
8200
|
+
if (isDefined(value) && value !== "") {
|
|
8201
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
8202
|
+
value = value.toString();
|
|
8203
|
+
if (modifier && modifier !== "*") {
|
|
8204
|
+
value = value.substring(0, parseInt(modifier, 10));
|
|
8205
|
+
}
|
|
8206
|
+
result.push(
|
|
8207
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
8208
|
+
);
|
|
8209
|
+
} else {
|
|
8210
|
+
if (modifier === "*") {
|
|
8211
|
+
if (Array.isArray(value)) {
|
|
8212
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
8213
|
+
result.push(
|
|
8214
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
8215
|
+
);
|
|
8216
|
+
});
|
|
8217
|
+
} else {
|
|
8218
|
+
Object.keys(value).forEach(function(k) {
|
|
8219
|
+
if (isDefined(value[k])) {
|
|
8220
|
+
result.push(encodeValue(operator, value[k], k));
|
|
8221
|
+
}
|
|
8222
|
+
});
|
|
8223
|
+
}
|
|
8224
|
+
} else {
|
|
8225
|
+
const tmp2 = [];
|
|
8226
|
+
if (Array.isArray(value)) {
|
|
8227
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
8228
|
+
tmp2.push(encodeValue(operator, value2));
|
|
8229
|
+
});
|
|
8230
|
+
} else {
|
|
8231
|
+
Object.keys(value).forEach(function(k) {
|
|
8232
|
+
if (isDefined(value[k])) {
|
|
8233
|
+
tmp2.push(encodeUnreserved(k));
|
|
8234
|
+
tmp2.push(encodeValue(operator, value[k].toString()));
|
|
8235
|
+
}
|
|
8236
|
+
});
|
|
8237
|
+
}
|
|
8238
|
+
if (isKeyOperator(operator)) {
|
|
8239
|
+
result.push(encodeUnreserved(key) + "=" + tmp2.join(","));
|
|
8240
|
+
} else if (tmp2.length !== 0) {
|
|
8241
|
+
result.push(tmp2.join(","));
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
}
|
|
8245
|
+
} else {
|
|
8246
|
+
if (operator === ";") {
|
|
8247
|
+
if (isDefined(value)) {
|
|
8248
|
+
result.push(encodeUnreserved(key));
|
|
8249
|
+
}
|
|
8250
|
+
} else if (value === "" && (operator === "&" || operator === "?")) {
|
|
8251
|
+
result.push(encodeUnreserved(key) + "=");
|
|
8252
|
+
} else if (value === "") {
|
|
8253
|
+
result.push("");
|
|
8254
|
+
}
|
|
8255
|
+
}
|
|
8256
|
+
return result;
|
|
8257
|
+
}
|
|
8258
|
+
function parseUrl(template2) {
|
|
8259
|
+
return {
|
|
8260
|
+
expand: expand.bind(null, template2)
|
|
8261
|
+
};
|
|
8262
|
+
}
|
|
8263
|
+
function expand(template2, context) {
|
|
8264
|
+
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
8265
|
+
template2 = template2.replace(
|
|
8266
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
8267
|
+
function(_, expression, literal) {
|
|
8268
|
+
if (expression) {
|
|
8269
|
+
let operator = "";
|
|
8270
|
+
const values = [];
|
|
8271
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
8272
|
+
operator = expression.charAt(0);
|
|
8273
|
+
expression = expression.substr(1);
|
|
8274
|
+
}
|
|
8275
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
8276
|
+
var tmp2 = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
8277
|
+
values.push(getValues(context, operator, tmp2[1], tmp2[2] || tmp2[3]));
|
|
8278
|
+
});
|
|
8279
|
+
if (operator && operator !== "+") {
|
|
8280
|
+
var separator = ",";
|
|
8281
|
+
if (operator === "?") {
|
|
8282
|
+
separator = "&";
|
|
8283
|
+
} else if (operator !== "#") {
|
|
8284
|
+
separator = operator;
|
|
8285
|
+
}
|
|
8286
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
8287
|
+
} else {
|
|
8288
|
+
return values.join(",");
|
|
8289
|
+
}
|
|
8290
|
+
} else {
|
|
8291
|
+
return encodeReserved(literal);
|
|
8292
|
+
}
|
|
8293
|
+
}
|
|
8294
|
+
);
|
|
8295
|
+
if (template2 === "/") {
|
|
8296
|
+
return template2;
|
|
8297
|
+
} else {
|
|
8298
|
+
return template2.replace(/\/$/, "");
|
|
8299
|
+
}
|
|
8300
|
+
}
|
|
8301
|
+
|
|
8302
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/parse.js
|
|
8303
|
+
function parse(options) {
|
|
8304
|
+
let method = options.method.toUpperCase();
|
|
8305
|
+
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
8306
|
+
let headers = Object.assign({}, options.headers);
|
|
8307
|
+
let body;
|
|
8308
|
+
let parameters = omit(options, [
|
|
8309
|
+
"method",
|
|
8310
|
+
"baseUrl",
|
|
8311
|
+
"url",
|
|
8312
|
+
"headers",
|
|
8313
|
+
"request",
|
|
8314
|
+
"mediaType"
|
|
8315
|
+
]);
|
|
8316
|
+
const urlVariableNames = extractUrlVariableNames(url);
|
|
8317
|
+
url = parseUrl(url).expand(parameters);
|
|
8318
|
+
if (!/^http/.test(url)) {
|
|
8319
|
+
url = options.baseUrl + url;
|
|
8320
|
+
}
|
|
8321
|
+
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
8322
|
+
const remainingParameters = omit(parameters, omittedParameters);
|
|
8323
|
+
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
8324
|
+
if (!isBinaryRequest) {
|
|
8325
|
+
if (options.mediaType.format) {
|
|
8326
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
8327
|
+
(format) => format.replace(
|
|
8328
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
8329
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
8330
|
+
)
|
|
8331
|
+
).join(",");
|
|
8332
|
+
}
|
|
8333
|
+
if (url.endsWith("/graphql")) {
|
|
8334
|
+
if (options.mediaType.previews?.length) {
|
|
8335
|
+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
|
8336
|
+
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
8337
|
+
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
8338
|
+
return `application/vnd.github.${preview}-preview${format}`;
|
|
8339
|
+
}).join(",");
|
|
8340
|
+
}
|
|
8341
|
+
}
|
|
8342
|
+
}
|
|
8343
|
+
if (["GET", "HEAD"].includes(method)) {
|
|
8344
|
+
url = addQueryParameters(url, remainingParameters);
|
|
8345
|
+
} else {
|
|
8346
|
+
if ("data" in remainingParameters) {
|
|
8347
|
+
body = remainingParameters.data;
|
|
8348
|
+
} else {
|
|
8349
|
+
if (Object.keys(remainingParameters).length) {
|
|
8350
|
+
body = remainingParameters;
|
|
8351
|
+
}
|
|
8352
|
+
}
|
|
8353
|
+
}
|
|
8354
|
+
if (!headers["content-type"] && typeof body !== "undefined") {
|
|
8355
|
+
headers["content-type"] = "application/json; charset=utf-8";
|
|
8356
|
+
}
|
|
8357
|
+
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
8358
|
+
body = "";
|
|
8359
|
+
}
|
|
8360
|
+
return Object.assign(
|
|
8361
|
+
{ method, url, headers },
|
|
8362
|
+
typeof body !== "undefined" ? { body } : null,
|
|
8363
|
+
options.request ? { request: options.request } : null
|
|
8364
|
+
);
|
|
8365
|
+
}
|
|
8366
|
+
|
|
8367
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
|
|
8368
|
+
function endpointWithDefaults(defaults2, route, options) {
|
|
8369
|
+
return parse(merge(defaults2, route, options));
|
|
8370
|
+
}
|
|
8371
|
+
|
|
8372
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/with-defaults.js
|
|
8373
|
+
function withDefaults(oldDefaults, newDefaults) {
|
|
8374
|
+
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
|
8375
|
+
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
8376
|
+
return Object.assign(endpoint2, {
|
|
8377
|
+
DEFAULTS: DEFAULTS2,
|
|
8378
|
+
defaults: withDefaults.bind(null, DEFAULTS2),
|
|
8379
|
+
merge: merge.bind(null, DEFAULTS2),
|
|
8380
|
+
parse
|
|
8381
|
+
});
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/index.js
|
|
8385
|
+
var endpoint = withDefaults(null, DEFAULTS);
|
|
8386
|
+
|
|
8387
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/version.js
|
|
8388
|
+
var VERSION2 = "8.4.1";
|
|
8389
|
+
|
|
8390
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/is-plain-object.js
|
|
8391
|
+
function isPlainObject2(value) {
|
|
8392
|
+
if (typeof value !== "object" || value === null)
|
|
8393
|
+
return false;
|
|
8394
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
8395
|
+
return false;
|
|
8396
|
+
const proto = Object.getPrototypeOf(value);
|
|
8397
|
+
if (proto === null)
|
|
8398
|
+
return true;
|
|
8399
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
8400
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
8401
|
+
}
|
|
8402
|
+
|
|
8403
|
+
// ../../node_modules/.pnpm/deprecation@2.3.1/node_modules/deprecation/dist-web/index.js
|
|
8404
|
+
var Deprecation = class extends Error {
|
|
8405
|
+
constructor(message) {
|
|
8406
|
+
super(message);
|
|
8407
|
+
if (Error.captureStackTrace) {
|
|
8408
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8409
|
+
}
|
|
8410
|
+
this.name = "Deprecation";
|
|
8411
|
+
}
|
|
8412
|
+
};
|
|
8413
|
+
|
|
8414
|
+
// ../../node_modules/.pnpm/@octokit+request-error@5.1.1/node_modules/@octokit/request-error/dist-src/index.js
|
|
8415
|
+
var import_once = __toESM(require_once());
|
|
8416
|
+
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
8417
|
+
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
8418
|
+
var RequestError = class extends Error {
|
|
8419
|
+
constructor(message, statusCode, options) {
|
|
8420
|
+
super(message);
|
|
8421
|
+
if (Error.captureStackTrace) {
|
|
8422
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8423
|
+
}
|
|
8424
|
+
this.name = "HttpError";
|
|
8425
|
+
this.status = statusCode;
|
|
8426
|
+
let headers;
|
|
8427
|
+
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
8428
|
+
headers = options.headers;
|
|
8429
|
+
}
|
|
8430
|
+
if ("response" in options) {
|
|
8431
|
+
this.response = options.response;
|
|
8432
|
+
headers = options.response.headers;
|
|
8433
|
+
}
|
|
8434
|
+
const requestCopy = Object.assign({}, options.request);
|
|
8435
|
+
if (options.request.headers.authorization) {
|
|
8436
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
8437
|
+
authorization: options.request.headers.authorization.replace(
|
|
8438
|
+
/(?<! ) .*$/,
|
|
8439
|
+
" [REDACTED]"
|
|
8440
|
+
)
|
|
8441
|
+
});
|
|
8442
|
+
}
|
|
8443
|
+
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
8444
|
+
this.request = requestCopy;
|
|
8445
|
+
Object.defineProperty(this, "code", {
|
|
8446
|
+
get() {
|
|
8447
|
+
logOnceCode(
|
|
8448
|
+
new Deprecation(
|
|
8449
|
+
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
|
|
8450
|
+
)
|
|
8451
|
+
);
|
|
8452
|
+
return statusCode;
|
|
8453
|
+
}
|
|
8454
|
+
});
|
|
8455
|
+
Object.defineProperty(this, "headers", {
|
|
8456
|
+
get() {
|
|
8457
|
+
logOnceHeaders(
|
|
8458
|
+
new Deprecation(
|
|
8459
|
+
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
|
|
8460
|
+
)
|
|
8461
|
+
);
|
|
8462
|
+
return headers || {};
|
|
8463
|
+
}
|
|
8464
|
+
});
|
|
8465
|
+
}
|
|
8466
|
+
};
|
|
8467
|
+
|
|
8468
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/get-buffer-response.js
|
|
8469
|
+
function getBufferResponse(response) {
|
|
8470
|
+
return response.arrayBuffer();
|
|
8471
|
+
}
|
|
8472
|
+
|
|
8473
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
|
8474
|
+
function fetchWrapper(requestOptions) {
|
|
8475
|
+
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
8476
|
+
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
8477
|
+
if (isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
8478
|
+
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
8479
|
+
}
|
|
8480
|
+
let headers = {};
|
|
8481
|
+
let status;
|
|
8482
|
+
let url;
|
|
8483
|
+
let { fetch } = globalThis;
|
|
8484
|
+
if (requestOptions.request?.fetch) {
|
|
8485
|
+
fetch = requestOptions.request.fetch;
|
|
8486
|
+
}
|
|
8487
|
+
if (!fetch) {
|
|
8488
|
+
throw new Error(
|
|
8489
|
+
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
|
8490
|
+
);
|
|
8491
|
+
}
|
|
8492
|
+
return fetch(requestOptions.url, {
|
|
8493
|
+
method: requestOptions.method,
|
|
8494
|
+
body: requestOptions.body,
|
|
8495
|
+
redirect: requestOptions.request?.redirect,
|
|
8496
|
+
headers: requestOptions.headers,
|
|
8497
|
+
signal: requestOptions.request?.signal,
|
|
8498
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
8499
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
8500
|
+
...requestOptions.body && { duplex: "half" }
|
|
8501
|
+
}).then(async (response) => {
|
|
8502
|
+
url = response.url;
|
|
8503
|
+
status = response.status;
|
|
8504
|
+
for (const keyAndValue of response.headers) {
|
|
8505
|
+
headers[keyAndValue[0]] = keyAndValue[1];
|
|
8506
|
+
}
|
|
8507
|
+
if ("deprecation" in headers) {
|
|
8508
|
+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
8509
|
+
const deprecationLink = matches && matches.pop();
|
|
8510
|
+
log.warn(
|
|
8511
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
8512
|
+
);
|
|
8513
|
+
}
|
|
8514
|
+
if (status === 204 || status === 205) {
|
|
8515
|
+
return;
|
|
8516
|
+
}
|
|
8517
|
+
if (requestOptions.method === "HEAD") {
|
|
8518
|
+
if (status < 400) {
|
|
8519
|
+
return;
|
|
8520
|
+
}
|
|
8521
|
+
throw new RequestError(response.statusText, status, {
|
|
8522
|
+
response: {
|
|
8523
|
+
url,
|
|
8524
|
+
status,
|
|
8525
|
+
headers,
|
|
8526
|
+
data: void 0
|
|
8527
|
+
},
|
|
8528
|
+
request: requestOptions
|
|
8529
|
+
});
|
|
8530
|
+
}
|
|
8531
|
+
if (status === 304) {
|
|
8532
|
+
throw new RequestError("Not modified", status, {
|
|
8533
|
+
response: {
|
|
8534
|
+
url,
|
|
8535
|
+
status,
|
|
8536
|
+
headers,
|
|
8537
|
+
data: await getResponseData(response)
|
|
8538
|
+
},
|
|
8539
|
+
request: requestOptions
|
|
8540
|
+
});
|
|
8541
|
+
}
|
|
8542
|
+
if (status >= 400) {
|
|
8543
|
+
const data = await getResponseData(response);
|
|
8544
|
+
const error = new RequestError(toErrorMessage(data), status, {
|
|
8545
|
+
response: {
|
|
8546
|
+
url,
|
|
8547
|
+
status,
|
|
8548
|
+
headers,
|
|
8549
|
+
data
|
|
8550
|
+
},
|
|
8551
|
+
request: requestOptions
|
|
8552
|
+
});
|
|
8553
|
+
throw error;
|
|
8554
|
+
}
|
|
8555
|
+
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
|
8556
|
+
}).then((data) => {
|
|
8557
|
+
return {
|
|
8558
|
+
status,
|
|
8559
|
+
url,
|
|
8560
|
+
headers,
|
|
8561
|
+
data
|
|
8562
|
+
};
|
|
8563
|
+
}).catch((error) => {
|
|
8564
|
+
if (error instanceof RequestError)
|
|
8565
|
+
throw error;
|
|
8566
|
+
else if (error.name === "AbortError")
|
|
8567
|
+
throw error;
|
|
8568
|
+
let message = error.message;
|
|
8569
|
+
if (error.name === "TypeError" && "cause" in error) {
|
|
8570
|
+
if (error.cause instanceof Error) {
|
|
8571
|
+
message = error.cause.message;
|
|
8572
|
+
} else if (typeof error.cause === "string") {
|
|
8573
|
+
message = error.cause;
|
|
8574
|
+
}
|
|
8575
|
+
}
|
|
8576
|
+
throw new RequestError(message, 500, {
|
|
8577
|
+
request: requestOptions
|
|
8578
|
+
});
|
|
8579
|
+
});
|
|
8580
|
+
}
|
|
8581
|
+
async function getResponseData(response) {
|
|
8582
|
+
const contentType = response.headers.get("content-type");
|
|
8583
|
+
if (/application\/json/.test(contentType)) {
|
|
8584
|
+
return response.json().catch(() => response.text()).catch(() => "");
|
|
8585
|
+
}
|
|
8586
|
+
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
|
8587
|
+
return response.text();
|
|
8588
|
+
}
|
|
8589
|
+
return getBufferResponse(response);
|
|
8590
|
+
}
|
|
8591
|
+
function toErrorMessage(data) {
|
|
8592
|
+
if (typeof data === "string")
|
|
8593
|
+
return data;
|
|
8594
|
+
let suffix;
|
|
8595
|
+
if ("documentation_url" in data) {
|
|
8596
|
+
suffix = ` - ${data.documentation_url}`;
|
|
8597
|
+
} else {
|
|
8598
|
+
suffix = "";
|
|
8599
|
+
}
|
|
8600
|
+
if ("message" in data) {
|
|
8601
|
+
if (Array.isArray(data.errors)) {
|
|
8602
|
+
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
|
8603
|
+
}
|
|
8604
|
+
return `${data.message}${suffix}`;
|
|
8605
|
+
}
|
|
8606
|
+
return `Unknown error: ${JSON.stringify(data)}`;
|
|
8607
|
+
}
|
|
8608
|
+
|
|
8609
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/with-defaults.js
|
|
8610
|
+
function withDefaults2(oldEndpoint, newDefaults) {
|
|
8611
|
+
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
8612
|
+
const newApi = function(route, parameters) {
|
|
8613
|
+
const endpointOptions = endpoint2.merge(route, parameters);
|
|
8614
|
+
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
8615
|
+
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
8616
|
+
}
|
|
8617
|
+
const request2 = (route2, parameters2) => {
|
|
8618
|
+
return fetchWrapper(
|
|
8619
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
8620
|
+
);
|
|
8621
|
+
};
|
|
8622
|
+
Object.assign(request2, {
|
|
8623
|
+
endpoint: endpoint2,
|
|
8624
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
8625
|
+
});
|
|
8626
|
+
return endpointOptions.request.hook(request2, endpointOptions);
|
|
8627
|
+
};
|
|
8628
|
+
return Object.assign(newApi, {
|
|
8629
|
+
endpoint: endpoint2,
|
|
8630
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
8631
|
+
});
|
|
8632
|
+
}
|
|
8633
|
+
|
|
8634
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/index.js
|
|
8635
|
+
var request = withDefaults2(endpoint, {
|
|
8636
|
+
headers: {
|
|
8637
|
+
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
8638
|
+
}
|
|
8639
|
+
});
|
|
8640
|
+
|
|
8641
|
+
// ../../node_modules/.pnpm/@octokit+graphql@7.1.1/node_modules/@octokit/graphql/dist-web/index.js
|
|
8642
|
+
var VERSION3 = "7.1.1";
|
|
8643
|
+
function _buildMessageForResponseErrors(data) {
|
|
8644
|
+
return `Request failed due to following response errors:
|
|
8645
|
+
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
8646
|
+
}
|
|
8647
|
+
var GraphqlResponseError = class extends Error {
|
|
8648
|
+
constructor(request2, headers, response) {
|
|
8649
|
+
super(_buildMessageForResponseErrors(response));
|
|
8650
|
+
this.request = request2;
|
|
8651
|
+
this.headers = headers;
|
|
8652
|
+
this.response = response;
|
|
8653
|
+
this.name = "GraphqlResponseError";
|
|
8654
|
+
this.errors = response.errors;
|
|
8655
|
+
this.data = response.data;
|
|
8656
|
+
if (Error.captureStackTrace) {
|
|
8657
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8658
|
+
}
|
|
8659
|
+
}
|
|
8660
|
+
};
|
|
8661
|
+
var NON_VARIABLE_OPTIONS = [
|
|
8662
|
+
"method",
|
|
8663
|
+
"baseUrl",
|
|
8664
|
+
"url",
|
|
8665
|
+
"headers",
|
|
8666
|
+
"request",
|
|
8667
|
+
"query",
|
|
8668
|
+
"mediaType"
|
|
8669
|
+
];
|
|
8670
|
+
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
8671
|
+
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
8672
|
+
function graphql(request2, query, options) {
|
|
8673
|
+
if (options) {
|
|
8674
|
+
if (typeof query === "string" && "query" in options) {
|
|
8675
|
+
return Promise.reject(
|
|
8676
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
8677
|
+
);
|
|
8678
|
+
}
|
|
8679
|
+
for (const key in options) {
|
|
8680
|
+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
|
|
8681
|
+
return Promise.reject(
|
|
8682
|
+
new Error(
|
|
8683
|
+
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
|
8684
|
+
)
|
|
8685
|
+
);
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
8689
|
+
const requestOptions = Object.keys(
|
|
8690
|
+
parsedOptions
|
|
8691
|
+
).reduce((result, key) => {
|
|
8692
|
+
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
8693
|
+
result[key] = parsedOptions[key];
|
|
8694
|
+
return result;
|
|
8695
|
+
}
|
|
8696
|
+
if (!result.variables) {
|
|
8697
|
+
result.variables = {};
|
|
8698
|
+
}
|
|
8699
|
+
result.variables[key] = parsedOptions[key];
|
|
8700
|
+
return result;
|
|
8701
|
+
}, {});
|
|
8702
|
+
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
|
8703
|
+
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
8704
|
+
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
|
8705
|
+
}
|
|
8706
|
+
return request2(requestOptions).then((response) => {
|
|
8707
|
+
if (response.data.errors) {
|
|
8708
|
+
const headers = {};
|
|
8709
|
+
for (const key of Object.keys(response.headers)) {
|
|
8710
|
+
headers[key] = response.headers[key];
|
|
8711
|
+
}
|
|
8712
|
+
throw new GraphqlResponseError(
|
|
8713
|
+
requestOptions,
|
|
8714
|
+
headers,
|
|
8715
|
+
response.data
|
|
8716
|
+
);
|
|
8717
|
+
}
|
|
8718
|
+
return response.data.data;
|
|
8719
|
+
});
|
|
8720
|
+
}
|
|
8721
|
+
function withDefaults3(request2, newDefaults) {
|
|
8722
|
+
const newRequest = request2.defaults(newDefaults);
|
|
8723
|
+
const newApi = (query, options) => {
|
|
8724
|
+
return graphql(newRequest, query, options);
|
|
8725
|
+
};
|
|
8726
|
+
return Object.assign(newApi, {
|
|
8727
|
+
defaults: withDefaults3.bind(null, newRequest),
|
|
8728
|
+
endpoint: newRequest.endpoint
|
|
8729
|
+
});
|
|
8730
|
+
}
|
|
8731
|
+
var graphql2 = withDefaults3(request, {
|
|
8732
|
+
headers: {
|
|
8733
|
+
"user-agent": `octokit-graphql.js/${VERSION3} ${getUserAgent()}`
|
|
8734
|
+
},
|
|
8735
|
+
method: "POST",
|
|
8736
|
+
url: "/graphql"
|
|
8737
|
+
});
|
|
8738
|
+
function withCustomRequest(customRequest) {
|
|
8739
|
+
return withDefaults3(customRequest, {
|
|
8740
|
+
method: "POST",
|
|
8741
|
+
url: "/graphql"
|
|
8742
|
+
});
|
|
8743
|
+
}
|
|
8744
|
+
|
|
8745
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/auth.js
|
|
8746
|
+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
8747
|
+
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
8748
|
+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
8749
|
+
async function auth(token) {
|
|
8750
|
+
const isApp = token.split(/\./).length === 3;
|
|
8751
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
8752
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
8753
|
+
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
8754
|
+
return {
|
|
8755
|
+
type: "token",
|
|
8756
|
+
token,
|
|
8757
|
+
tokenType
|
|
8758
|
+
};
|
|
8759
|
+
}
|
|
8760
|
+
|
|
8761
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js
|
|
8762
|
+
function withAuthorizationPrefix(token) {
|
|
8763
|
+
if (token.split(/\./).length === 3) {
|
|
8764
|
+
return `bearer ${token}`;
|
|
8765
|
+
}
|
|
8766
|
+
return `token ${token}`;
|
|
8767
|
+
}
|
|
8768
|
+
|
|
8769
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/hook.js
|
|
8770
|
+
async function hook(token, request2, route, parameters) {
|
|
8771
|
+
const endpoint2 = request2.endpoint.merge(
|
|
8772
|
+
route,
|
|
8773
|
+
parameters
|
|
8774
|
+
);
|
|
8775
|
+
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
8776
|
+
return request2(endpoint2);
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/index.js
|
|
8780
|
+
var createTokenAuth = function createTokenAuth2(token) {
|
|
8781
|
+
if (!token) {
|
|
8782
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
8783
|
+
}
|
|
8784
|
+
if (typeof token !== "string") {
|
|
8785
|
+
throw new Error(
|
|
8786
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
8787
|
+
);
|
|
8788
|
+
}
|
|
8789
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
8790
|
+
return Object.assign(auth.bind(null, token), {
|
|
8791
|
+
hook: hook.bind(null, token)
|
|
8792
|
+
});
|
|
8793
|
+
};
|
|
8794
|
+
|
|
8795
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
8796
|
+
var VERSION4 = "5.2.2";
|
|
8797
|
+
var noop = () => {
|
|
8798
|
+
};
|
|
8799
|
+
var consoleWarn = console.warn.bind(console);
|
|
8800
|
+
var consoleError = console.error.bind(console);
|
|
8801
|
+
function createLogger2(logger = {}) {
|
|
8802
|
+
if (typeof logger.debug !== "function") {
|
|
8803
|
+
logger.debug = noop;
|
|
8804
|
+
}
|
|
8805
|
+
if (typeof logger.info !== "function") {
|
|
8806
|
+
logger.info = noop;
|
|
8807
|
+
}
|
|
8808
|
+
if (typeof logger.warn !== "function") {
|
|
8809
|
+
logger.warn = consoleWarn;
|
|
8810
|
+
}
|
|
8811
|
+
if (typeof logger.error !== "function") {
|
|
8812
|
+
logger.error = consoleError;
|
|
8813
|
+
}
|
|
8814
|
+
return logger;
|
|
8815
|
+
}
|
|
8816
|
+
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
8817
|
+
var Octokit = class {
|
|
8818
|
+
static {
|
|
8819
|
+
this.VERSION = VERSION4;
|
|
8820
|
+
}
|
|
8821
|
+
static defaults(defaults2) {
|
|
8822
|
+
const OctokitWithDefaults = class extends this {
|
|
8823
|
+
constructor(...args) {
|
|
8824
|
+
const options = args[0] || {};
|
|
8825
|
+
if (typeof defaults2 === "function") {
|
|
8826
|
+
super(defaults2(options));
|
|
8827
|
+
return;
|
|
8828
|
+
}
|
|
8829
|
+
super(
|
|
8830
|
+
Object.assign(
|
|
8831
|
+
{},
|
|
8832
|
+
defaults2,
|
|
8833
|
+
options,
|
|
8834
|
+
options.userAgent && defaults2.userAgent ? {
|
|
8835
|
+
userAgent: `${options.userAgent} ${defaults2.userAgent}`
|
|
8836
|
+
} : null
|
|
8837
|
+
)
|
|
8838
|
+
);
|
|
8839
|
+
}
|
|
8840
|
+
};
|
|
8841
|
+
return OctokitWithDefaults;
|
|
8842
|
+
}
|
|
8843
|
+
static {
|
|
8844
|
+
this.plugins = [];
|
|
8845
|
+
}
|
|
8846
|
+
/**
|
|
8847
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
8848
|
+
*
|
|
8849
|
+
* @example
|
|
8850
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
8851
|
+
*/
|
|
8852
|
+
static plugin(...newPlugins) {
|
|
8853
|
+
const currentPlugins = this.plugins;
|
|
8854
|
+
const NewOctokit = class extends this {
|
|
8855
|
+
static {
|
|
8856
|
+
this.plugins = currentPlugins.concat(
|
|
8857
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
8858
|
+
);
|
|
8859
|
+
}
|
|
8860
|
+
};
|
|
8861
|
+
return NewOctokit;
|
|
8862
|
+
}
|
|
8863
|
+
constructor(options = {}) {
|
|
8864
|
+
const hook2 = new import_before_after_hook.Collection();
|
|
8865
|
+
const requestDefaults = {
|
|
8866
|
+
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
8867
|
+
headers: {},
|
|
8868
|
+
request: Object.assign({}, options.request, {
|
|
8869
|
+
// @ts-ignore internal usage only, no need to type
|
|
8870
|
+
hook: hook2.bind(null, "request")
|
|
8871
|
+
}),
|
|
8872
|
+
mediaType: {
|
|
8873
|
+
previews: [],
|
|
8874
|
+
format: ""
|
|
8875
|
+
}
|
|
8876
|
+
};
|
|
8877
|
+
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
|
8878
|
+
if (options.baseUrl) {
|
|
8879
|
+
requestDefaults.baseUrl = options.baseUrl;
|
|
8880
|
+
}
|
|
8881
|
+
if (options.previews) {
|
|
8882
|
+
requestDefaults.mediaType.previews = options.previews;
|
|
8883
|
+
}
|
|
8884
|
+
if (options.timeZone) {
|
|
8885
|
+
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
8886
|
+
}
|
|
8887
|
+
this.request = request.defaults(requestDefaults);
|
|
8888
|
+
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
8889
|
+
this.log = createLogger2(options.log);
|
|
8890
|
+
this.hook = hook2;
|
|
8891
|
+
if (!options.authStrategy) {
|
|
8892
|
+
if (!options.auth) {
|
|
8893
|
+
this.auth = async () => ({
|
|
8894
|
+
type: "unauthenticated"
|
|
8895
|
+
});
|
|
8896
|
+
} else {
|
|
8897
|
+
const auth2 = createTokenAuth(options.auth);
|
|
8898
|
+
hook2.wrap("request", auth2.hook);
|
|
8899
|
+
this.auth = auth2;
|
|
8900
|
+
}
|
|
8901
|
+
} else {
|
|
8902
|
+
const { authStrategy, ...otherOptions } = options;
|
|
8903
|
+
const auth2 = authStrategy(
|
|
8904
|
+
Object.assign(
|
|
8905
|
+
{
|
|
8906
|
+
request: this.request,
|
|
8907
|
+
log: this.log,
|
|
8908
|
+
// we pass the current octokit instance as well as its constructor options
|
|
8909
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
8910
|
+
// that shares the same internal state as the current one. The original
|
|
8911
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
8912
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
8913
|
+
octokit: this,
|
|
8914
|
+
octokitOptions: otherOptions
|
|
8915
|
+
},
|
|
8916
|
+
options.auth
|
|
8917
|
+
)
|
|
8918
|
+
);
|
|
8919
|
+
hook2.wrap("request", auth2.hook);
|
|
8920
|
+
this.auth = auth2;
|
|
8921
|
+
}
|
|
8922
|
+
const classConstructor = this.constructor;
|
|
8923
|
+
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
8924
|
+
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
8925
|
+
}
|
|
8926
|
+
}
|
|
8927
|
+
};
|
|
8928
|
+
|
|
8929
|
+
// ../../node_modules/.pnpm/@octokit+plugin-request-log@4.0.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-request-log/dist-src/version.js
|
|
8930
|
+
var VERSION5 = "4.0.1";
|
|
8931
|
+
|
|
8932
|
+
// ../../node_modules/.pnpm/@octokit+plugin-request-log@4.0.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-request-log/dist-src/index.js
|
|
8933
|
+
function requestLog(octokit) {
|
|
8934
|
+
octokit.hook.wrap("request", (request2, options) => {
|
|
8935
|
+
octokit.log.debug("request", options);
|
|
8936
|
+
const start = Date.now();
|
|
8937
|
+
const requestOptions = octokit.request.endpoint.parse(options);
|
|
8938
|
+
const path3 = requestOptions.url.replace(options.baseUrl, "");
|
|
8939
|
+
return request2(options).then((response) => {
|
|
8940
|
+
octokit.log.info(
|
|
8941
|
+
`${requestOptions.method} ${path3} - ${response.status} in ${Date.now() - start}ms`
|
|
8942
|
+
);
|
|
8943
|
+
return response;
|
|
8944
|
+
}).catch((error) => {
|
|
8945
|
+
octokit.log.info(
|
|
8946
|
+
`${requestOptions.method} ${path3} - ${error.status} in ${Date.now() - start}ms`
|
|
8947
|
+
);
|
|
8948
|
+
throw error;
|
|
8949
|
+
});
|
|
8950
|
+
});
|
|
8951
|
+
}
|
|
8952
|
+
requestLog.VERSION = VERSION5;
|
|
8953
|
+
|
|
8954
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.4.4-cjs.2_@octokit+core@5.2.2/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
8955
|
+
var VERSION6 = "11.4.4-cjs.2";
|
|
8956
|
+
function normalizePaginatedListResponse(response) {
|
|
8957
|
+
if (!response.data) {
|
|
8958
|
+
return {
|
|
8959
|
+
...response,
|
|
8960
|
+
data: []
|
|
8961
|
+
};
|
|
8962
|
+
}
|
|
8963
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
8964
|
+
if (!responseNeedsNormalization) return response;
|
|
8965
|
+
const incompleteResults = response.data.incomplete_results;
|
|
8966
|
+
const repositorySelection = response.data.repository_selection;
|
|
8967
|
+
const totalCount = response.data.total_count;
|
|
8968
|
+
delete response.data.incomplete_results;
|
|
8969
|
+
delete response.data.repository_selection;
|
|
8970
|
+
delete response.data.total_count;
|
|
8971
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
8972
|
+
const data = response.data[namespaceKey];
|
|
8973
|
+
response.data = data;
|
|
8974
|
+
if (typeof incompleteResults !== "undefined") {
|
|
8975
|
+
response.data.incomplete_results = incompleteResults;
|
|
8976
|
+
}
|
|
8977
|
+
if (typeof repositorySelection !== "undefined") {
|
|
8978
|
+
response.data.repository_selection = repositorySelection;
|
|
8979
|
+
}
|
|
8980
|
+
response.data.total_count = totalCount;
|
|
8981
|
+
return response;
|
|
8982
|
+
}
|
|
8983
|
+
function iterator(octokit, route, parameters) {
|
|
8984
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
8985
|
+
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
8986
|
+
const method = options.method;
|
|
8987
|
+
const headers = options.headers;
|
|
8988
|
+
let url = options.url;
|
|
8989
|
+
return {
|
|
8990
|
+
[Symbol.asyncIterator]: () => ({
|
|
8991
|
+
async next() {
|
|
8992
|
+
if (!url) return { done: true };
|
|
8993
|
+
try {
|
|
8994
|
+
const response = await requestMethod({ method, url, headers });
|
|
8995
|
+
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
8996
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
8997
|
+
/<([^<>]+)>;\s*rel="next"/
|
|
8998
|
+
) || [])[1];
|
|
8999
|
+
return { value: normalizedResponse };
|
|
9000
|
+
} catch (error) {
|
|
9001
|
+
if (error.status !== 409) throw error;
|
|
9002
|
+
url = "";
|
|
9003
|
+
return {
|
|
9004
|
+
value: {
|
|
9005
|
+
status: 200,
|
|
9006
|
+
headers: {},
|
|
9007
|
+
data: []
|
|
9008
|
+
}
|
|
9009
|
+
};
|
|
9010
|
+
}
|
|
9011
|
+
}
|
|
9012
|
+
})
|
|
9013
|
+
};
|
|
9014
|
+
}
|
|
9015
|
+
function paginate(octokit, route, parameters, mapFn) {
|
|
9016
|
+
if (typeof parameters === "function") {
|
|
9017
|
+
mapFn = parameters;
|
|
9018
|
+
parameters = void 0;
|
|
9019
|
+
}
|
|
9020
|
+
return gather(
|
|
9021
|
+
octokit,
|
|
9022
|
+
[],
|
|
9023
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
9024
|
+
mapFn
|
|
9025
|
+
);
|
|
9026
|
+
}
|
|
9027
|
+
function gather(octokit, results, iterator2, mapFn) {
|
|
9028
|
+
return iterator2.next().then((result) => {
|
|
9029
|
+
if (result.done) {
|
|
9030
|
+
return results;
|
|
9031
|
+
}
|
|
9032
|
+
let earlyExit = false;
|
|
9033
|
+
function done() {
|
|
9034
|
+
earlyExit = true;
|
|
9035
|
+
}
|
|
9036
|
+
results = results.concat(
|
|
9037
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
9038
|
+
);
|
|
9039
|
+
if (earlyExit) {
|
|
9040
|
+
return results;
|
|
9041
|
+
}
|
|
9042
|
+
return gather(octokit, results, iterator2, mapFn);
|
|
9043
|
+
});
|
|
9044
|
+
}
|
|
9045
|
+
var composePaginateRest = Object.assign(paginate, {
|
|
9046
|
+
iterator
|
|
9047
|
+
});
|
|
9048
|
+
function paginateRest(octokit) {
|
|
9049
|
+
return {
|
|
9050
|
+
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
9051
|
+
iterator: iterator.bind(null, octokit)
|
|
9052
|
+
})
|
|
9053
|
+
};
|
|
9054
|
+
}
|
|
9055
|
+
paginateRest.VERSION = VERSION6;
|
|
9056
|
+
|
|
9057
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
9058
|
+
var VERSION7 = "13.3.2-cjs.1";
|
|
9059
|
+
|
|
9060
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
|
9061
|
+
var Endpoints = {
|
|
9062
|
+
actions: {
|
|
9063
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
9064
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
9065
|
+
],
|
|
9066
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
9067
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
9068
|
+
],
|
|
9069
|
+
addRepoAccessToSelfHostedRunnerGroupInOrg: [
|
|
9070
|
+
"PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"
|
|
9071
|
+
],
|
|
9072
|
+
addSelectedRepoToOrgSecret: [
|
|
9073
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
9074
|
+
],
|
|
9075
|
+
addSelectedRepoToOrgVariable: [
|
|
9076
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
9077
|
+
],
|
|
9078
|
+
approveWorkflowRun: [
|
|
9079
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
9080
|
+
],
|
|
9081
|
+
cancelWorkflowRun: [
|
|
9082
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
9083
|
+
],
|
|
9084
|
+
createEnvironmentVariable: [
|
|
9085
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
9086
|
+
],
|
|
9087
|
+
createOrUpdateEnvironmentSecret: [
|
|
9088
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
9089
|
+
],
|
|
9090
|
+
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
9091
|
+
createOrUpdateRepoSecret: [
|
|
9092
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
9093
|
+
],
|
|
9094
|
+
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
9095
|
+
createRegistrationTokenForOrg: [
|
|
9096
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
9097
|
+
],
|
|
9098
|
+
createRegistrationTokenForRepo: [
|
|
9099
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
9100
|
+
],
|
|
9101
|
+
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
9102
|
+
createRemoveTokenForRepo: [
|
|
9103
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
9104
|
+
],
|
|
9105
|
+
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
9106
|
+
createWorkflowDispatch: [
|
|
9107
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
9108
|
+
],
|
|
9109
|
+
deleteActionsCacheById: [
|
|
9110
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
9111
|
+
],
|
|
9112
|
+
deleteActionsCacheByKey: [
|
|
9113
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
9114
|
+
],
|
|
9115
|
+
deleteArtifact: [
|
|
9116
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
9117
|
+
],
|
|
9118
|
+
deleteEnvironmentSecret: [
|
|
9119
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
9120
|
+
],
|
|
9121
|
+
deleteEnvironmentVariable: [
|
|
9122
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
9123
|
+
],
|
|
9124
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
9125
|
+
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
9126
|
+
deleteRepoSecret: [
|
|
9127
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
9128
|
+
],
|
|
9129
|
+
deleteRepoVariable: [
|
|
9130
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
9131
|
+
],
|
|
9132
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
9133
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
9134
|
+
],
|
|
9135
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
9136
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
9137
|
+
],
|
|
9138
|
+
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
9139
|
+
deleteWorkflowRunLogs: [
|
|
9140
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
9141
|
+
],
|
|
9142
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
9143
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
9144
|
+
],
|
|
9145
|
+
disableWorkflow: [
|
|
9146
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
9147
|
+
],
|
|
9148
|
+
downloadArtifact: [
|
|
9149
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
9150
|
+
],
|
|
9151
|
+
downloadJobLogsForWorkflowRun: [
|
|
9152
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
9153
|
+
],
|
|
9154
|
+
downloadWorkflowRunAttemptLogs: [
|
|
9155
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
9156
|
+
],
|
|
9157
|
+
downloadWorkflowRunLogs: [
|
|
9158
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
9159
|
+
],
|
|
9160
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
9161
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
9162
|
+
],
|
|
9163
|
+
enableWorkflow: [
|
|
9164
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
9165
|
+
],
|
|
9166
|
+
forceCancelWorkflowRun: [
|
|
9167
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
|
9168
|
+
],
|
|
9169
|
+
generateRunnerJitconfigForOrg: [
|
|
9170
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
9171
|
+
],
|
|
9172
|
+
generateRunnerJitconfigForRepo: [
|
|
9173
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
9174
|
+
],
|
|
9175
|
+
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
9176
|
+
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
9177
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
9178
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
9179
|
+
],
|
|
9180
|
+
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
9181
|
+
getAllowedActionsOrganization: [
|
|
9182
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
9183
|
+
],
|
|
9184
|
+
getAllowedActionsRepository: [
|
|
9185
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
9186
|
+
],
|
|
9187
|
+
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
9188
|
+
getCustomOidcSubClaimForRepo: [
|
|
9189
|
+
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
9190
|
+
],
|
|
9191
|
+
getEnvironmentPublicKey: [
|
|
9192
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
|
9193
|
+
],
|
|
9194
|
+
getEnvironmentSecret: [
|
|
9195
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
9196
|
+
],
|
|
9197
|
+
getEnvironmentVariable: [
|
|
9198
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
9199
|
+
],
|
|
9200
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
9201
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
9202
|
+
],
|
|
9203
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
9204
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
9205
|
+
],
|
|
9206
|
+
getGithubActionsPermissionsOrganization: [
|
|
9207
|
+
"GET /orgs/{org}/actions/permissions"
|
|
9208
|
+
],
|
|
9209
|
+
getGithubActionsPermissionsRepository: [
|
|
9210
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
9211
|
+
],
|
|
9212
|
+
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
9213
|
+
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
9214
|
+
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
9215
|
+
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
9216
|
+
getPendingDeploymentsForRun: [
|
|
9217
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
9218
|
+
],
|
|
9219
|
+
getRepoPermissions: [
|
|
9220
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
9221
|
+
{},
|
|
9222
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
9223
|
+
],
|
|
9224
|
+
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
9225
|
+
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
9226
|
+
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
9227
|
+
getReviewsForRun: [
|
|
9228
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
9229
|
+
],
|
|
9230
|
+
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
9231
|
+
getSelfHostedRunnerForRepo: [
|
|
9232
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
9233
|
+
],
|
|
9234
|
+
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
9235
|
+
getWorkflowAccessToRepository: [
|
|
9236
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
9237
|
+
],
|
|
9238
|
+
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
9239
|
+
getWorkflowRunAttempt: [
|
|
9240
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
9241
|
+
],
|
|
9242
|
+
getWorkflowRunUsage: [
|
|
9243
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
9244
|
+
],
|
|
9245
|
+
getWorkflowUsage: [
|
|
9246
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
9247
|
+
],
|
|
9248
|
+
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
9249
|
+
listEnvironmentSecrets: [
|
|
9250
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
9251
|
+
],
|
|
9252
|
+
listEnvironmentVariables: [
|
|
9253
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
9254
|
+
],
|
|
9255
|
+
listJobsForWorkflowRun: [
|
|
9256
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
9257
|
+
],
|
|
9258
|
+
listJobsForWorkflowRunAttempt: [
|
|
9259
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
9260
|
+
],
|
|
9261
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
9262
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
9263
|
+
],
|
|
9264
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
9265
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
9266
|
+
],
|
|
9267
|
+
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
9268
|
+
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
9269
|
+
listRepoOrganizationSecrets: [
|
|
9270
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
9271
|
+
],
|
|
9272
|
+
listRepoOrganizationVariables: [
|
|
9273
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
9274
|
+
],
|
|
9275
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
9276
|
+
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
9277
|
+
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
9278
|
+
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
9279
|
+
listRunnerApplicationsForRepo: [
|
|
9280
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
9281
|
+
],
|
|
9282
|
+
listSelectedReposForOrgSecret: [
|
|
9283
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
9284
|
+
],
|
|
9285
|
+
listSelectedReposForOrgVariable: [
|
|
9286
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
9287
|
+
],
|
|
9288
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
9289
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
9290
|
+
],
|
|
9291
|
+
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
9292
|
+
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
9293
|
+
listWorkflowRunArtifacts: [
|
|
9294
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
9295
|
+
],
|
|
9296
|
+
listWorkflowRuns: [
|
|
9297
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
9298
|
+
],
|
|
9299
|
+
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
9300
|
+
reRunJobForWorkflowRun: [
|
|
9301
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
9302
|
+
],
|
|
9303
|
+
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
9304
|
+
reRunWorkflowFailedJobs: [
|
|
9305
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
9306
|
+
],
|
|
9307
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
9308
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
9309
|
+
],
|
|
9310
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
9311
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
9312
|
+
],
|
|
9313
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
9314
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
9315
|
+
],
|
|
9316
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
9317
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
9318
|
+
],
|
|
9319
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9320
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
9321
|
+
],
|
|
9322
|
+
removeSelectedRepoFromOrgVariable: [
|
|
9323
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
9324
|
+
],
|
|
9325
|
+
reviewCustomGatesForRun: [
|
|
9326
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
9327
|
+
],
|
|
9328
|
+
reviewPendingDeploymentsForRun: [
|
|
9329
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
9330
|
+
],
|
|
9331
|
+
setAllowedActionsOrganization: [
|
|
9332
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
9333
|
+
],
|
|
9334
|
+
setAllowedActionsRepository: [
|
|
9335
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
9336
|
+
],
|
|
9337
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
9338
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
9339
|
+
],
|
|
9340
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
9341
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
9342
|
+
],
|
|
9343
|
+
setCustomOidcSubClaimForRepo: [
|
|
9344
|
+
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
9345
|
+
],
|
|
9346
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
9347
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
9348
|
+
],
|
|
9349
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
9350
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
9351
|
+
],
|
|
9352
|
+
setGithubActionsPermissionsOrganization: [
|
|
9353
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
9354
|
+
],
|
|
9355
|
+
setGithubActionsPermissionsRepository: [
|
|
9356
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
9357
|
+
],
|
|
9358
|
+
setSelectedReposForOrgSecret: [
|
|
9359
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
9360
|
+
],
|
|
9361
|
+
setSelectedReposForOrgVariable: [
|
|
9362
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
9363
|
+
],
|
|
9364
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
9365
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
9366
|
+
],
|
|
9367
|
+
setWorkflowAccessToRepository: [
|
|
9368
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
9369
|
+
],
|
|
9370
|
+
updateEnvironmentVariable: [
|
|
9371
|
+
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
9372
|
+
],
|
|
9373
|
+
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
9374
|
+
updateRepoVariable: [
|
|
9375
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
9376
|
+
]
|
|
9377
|
+
},
|
|
9378
|
+
activity: {
|
|
9379
|
+
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
9380
|
+
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
9381
|
+
deleteThreadSubscription: [
|
|
9382
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
9383
|
+
],
|
|
9384
|
+
getFeeds: ["GET /feeds"],
|
|
9385
|
+
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
9386
|
+
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
9387
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
9388
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
9389
|
+
],
|
|
9390
|
+
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
9391
|
+
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
9392
|
+
listOrgEventsForAuthenticatedUser: [
|
|
9393
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
9394
|
+
],
|
|
9395
|
+
listPublicEvents: ["GET /events"],
|
|
9396
|
+
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
9397
|
+
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
9398
|
+
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
9399
|
+
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
9400
|
+
listReceivedPublicEventsForUser: [
|
|
9401
|
+
"GET /users/{username}/received_events/public"
|
|
9402
|
+
],
|
|
9403
|
+
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
9404
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
9405
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
9406
|
+
],
|
|
9407
|
+
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
9408
|
+
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
9409
|
+
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
9410
|
+
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
|
9411
|
+
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
|
9412
|
+
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
|
9413
|
+
markNotificationsAsRead: ["PUT /notifications"],
|
|
9414
|
+
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
9415
|
+
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
|
9416
|
+
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
9417
|
+
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
9418
|
+
setThreadSubscription: [
|
|
9419
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
9420
|
+
],
|
|
9421
|
+
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
9422
|
+
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
9423
|
+
},
|
|
9424
|
+
apps: {
|
|
9425
|
+
addRepoToInstallation: [
|
|
9426
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
9427
|
+
{},
|
|
9428
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
9429
|
+
],
|
|
9430
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
9431
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
9432
|
+
],
|
|
9433
|
+
checkToken: ["POST /applications/{client_id}/token"],
|
|
9434
|
+
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
9435
|
+
createInstallationAccessToken: [
|
|
9436
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
9437
|
+
],
|
|
9438
|
+
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
9439
|
+
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
9440
|
+
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
9441
|
+
getAuthenticated: ["GET /app"],
|
|
9442
|
+
getBySlug: ["GET /apps/{app_slug}"],
|
|
9443
|
+
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
9444
|
+
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
9445
|
+
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
9446
|
+
getSubscriptionPlanForAccount: [
|
|
9447
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
9448
|
+
],
|
|
9449
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
9450
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
9451
|
+
],
|
|
9452
|
+
getUserInstallation: ["GET /users/{username}/installation"],
|
|
9453
|
+
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
9454
|
+
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
9455
|
+
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
9456
|
+
listAccountsForPlanStubbed: [
|
|
9457
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
9458
|
+
],
|
|
9459
|
+
listInstallationReposForAuthenticatedUser: [
|
|
9460
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
9461
|
+
],
|
|
9462
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
9463
|
+
"GET /app/installation-requests"
|
|
9464
|
+
],
|
|
9465
|
+
listInstallations: ["GET /app/installations"],
|
|
9466
|
+
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
9467
|
+
listPlans: ["GET /marketplace_listing/plans"],
|
|
9468
|
+
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
9469
|
+
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
9470
|
+
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
9471
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
9472
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
9473
|
+
],
|
|
9474
|
+
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
9475
|
+
redeliverWebhookDelivery: [
|
|
9476
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
9477
|
+
],
|
|
9478
|
+
removeRepoFromInstallation: [
|
|
9479
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
9480
|
+
{},
|
|
9481
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
9482
|
+
],
|
|
9483
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
9484
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
9485
|
+
],
|
|
9486
|
+
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
9487
|
+
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
9488
|
+
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
9489
|
+
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
9490
|
+
unsuspendInstallation: [
|
|
9491
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
9492
|
+
],
|
|
9493
|
+
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
9494
|
+
},
|
|
9495
|
+
billing: {
|
|
9496
|
+
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
9497
|
+
getGithubActionsBillingUser: [
|
|
9498
|
+
"GET /users/{username}/settings/billing/actions"
|
|
9499
|
+
],
|
|
9500
|
+
getGithubBillingUsageReportOrg: [
|
|
9501
|
+
"GET /organizations/{org}/settings/billing/usage"
|
|
9502
|
+
],
|
|
9503
|
+
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
9504
|
+
getGithubPackagesBillingUser: [
|
|
9505
|
+
"GET /users/{username}/settings/billing/packages"
|
|
9506
|
+
],
|
|
9507
|
+
getSharedStorageBillingOrg: [
|
|
9508
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
9509
|
+
],
|
|
9510
|
+
getSharedStorageBillingUser: [
|
|
9511
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
9512
|
+
]
|
|
9513
|
+
},
|
|
9514
|
+
checks: {
|
|
9515
|
+
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
9516
|
+
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
9517
|
+
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
9518
|
+
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
9519
|
+
listAnnotations: [
|
|
9520
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
9521
|
+
],
|
|
9522
|
+
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
9523
|
+
listForSuite: [
|
|
9524
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
9525
|
+
],
|
|
9526
|
+
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
9527
|
+
rerequestRun: [
|
|
9528
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
9529
|
+
],
|
|
9530
|
+
rerequestSuite: [
|
|
9531
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
9532
|
+
],
|
|
9533
|
+
setSuitesPreferences: [
|
|
9534
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
9535
|
+
],
|
|
9536
|
+
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
9537
|
+
},
|
|
9538
|
+
codeScanning: {
|
|
9539
|
+
commitAutofix: [
|
|
9540
|
+
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"
|
|
9541
|
+
],
|
|
9542
|
+
createAutofix: [
|
|
9543
|
+
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
9544
|
+
],
|
|
9545
|
+
createVariantAnalysis: [
|
|
9546
|
+
"POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"
|
|
9547
|
+
],
|
|
9548
|
+
deleteAnalysis: [
|
|
9549
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
9550
|
+
],
|
|
9551
|
+
deleteCodeqlDatabase: [
|
|
9552
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
9553
|
+
],
|
|
9554
|
+
getAlert: [
|
|
9555
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
9556
|
+
{},
|
|
9557
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
9558
|
+
],
|
|
9559
|
+
getAnalysis: [
|
|
9560
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
9561
|
+
],
|
|
9562
|
+
getAutofix: [
|
|
9563
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
9564
|
+
],
|
|
9565
|
+
getCodeqlDatabase: [
|
|
9566
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
9567
|
+
],
|
|
9568
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
9569
|
+
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
9570
|
+
getVariantAnalysis: [
|
|
9571
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"
|
|
9572
|
+
],
|
|
9573
|
+
getVariantAnalysisRepoTask: [
|
|
9574
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"
|
|
9575
|
+
],
|
|
9576
|
+
listAlertInstances: [
|
|
9577
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
9578
|
+
],
|
|
9579
|
+
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
9580
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
9581
|
+
listAlertsInstances: [
|
|
9582
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
9583
|
+
{},
|
|
9584
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
9585
|
+
],
|
|
9586
|
+
listCodeqlDatabases: [
|
|
9587
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
9588
|
+
],
|
|
9589
|
+
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
9590
|
+
updateAlert: [
|
|
9591
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
9592
|
+
],
|
|
9593
|
+
updateDefaultSetup: [
|
|
9594
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
9595
|
+
],
|
|
9596
|
+
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
9597
|
+
},
|
|
9598
|
+
codeSecurity: {
|
|
9599
|
+
attachConfiguration: [
|
|
9600
|
+
"POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
|
9601
|
+
],
|
|
9602
|
+
attachEnterpriseConfiguration: [
|
|
9603
|
+
"POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"
|
|
9604
|
+
],
|
|
9605
|
+
createConfiguration: ["POST /orgs/{org}/code-security/configurations"],
|
|
9606
|
+
createConfigurationForEnterprise: [
|
|
9607
|
+
"POST /enterprises/{enterprise}/code-security/configurations"
|
|
9608
|
+
],
|
|
9609
|
+
deleteConfiguration: [
|
|
9610
|
+
"DELETE /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
9611
|
+
],
|
|
9612
|
+
deleteConfigurationForEnterprise: [
|
|
9613
|
+
"DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
9614
|
+
],
|
|
9615
|
+
detachConfiguration: [
|
|
9616
|
+
"DELETE /orgs/{org}/code-security/configurations/detach"
|
|
9617
|
+
],
|
|
9618
|
+
getConfiguration: [
|
|
9619
|
+
"GET /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
9620
|
+
],
|
|
9621
|
+
getConfigurationForRepository: [
|
|
9622
|
+
"GET /repos/{owner}/{repo}/code-security-configuration"
|
|
9623
|
+
],
|
|
9624
|
+
getConfigurationsForEnterprise: [
|
|
9625
|
+
"GET /enterprises/{enterprise}/code-security/configurations"
|
|
9626
|
+
],
|
|
9627
|
+
getConfigurationsForOrg: ["GET /orgs/{org}/code-security/configurations"],
|
|
9628
|
+
getDefaultConfigurations: [
|
|
9629
|
+
"GET /orgs/{org}/code-security/configurations/defaults"
|
|
9630
|
+
],
|
|
9631
|
+
getDefaultConfigurationsForEnterprise: [
|
|
9632
|
+
"GET /enterprises/{enterprise}/code-security/configurations/defaults"
|
|
9633
|
+
],
|
|
9634
|
+
getRepositoriesForConfiguration: [
|
|
9635
|
+
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"
|
|
9636
|
+
],
|
|
9637
|
+
getRepositoriesForEnterpriseConfiguration: [
|
|
9638
|
+
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"
|
|
9639
|
+
],
|
|
9640
|
+
getSingleConfigurationForEnterprise: [
|
|
9641
|
+
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
9642
|
+
],
|
|
9643
|
+
setConfigurationAsDefault: [
|
|
9644
|
+
"PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
|
9645
|
+
],
|
|
9646
|
+
setConfigurationAsDefaultForEnterprise: [
|
|
9647
|
+
"PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"
|
|
9648
|
+
],
|
|
9649
|
+
updateConfiguration: [
|
|
9650
|
+
"PATCH /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
9651
|
+
],
|
|
9652
|
+
updateEnterpriseConfiguration: [
|
|
9653
|
+
"PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
9654
|
+
]
|
|
9655
|
+
},
|
|
9656
|
+
codesOfConduct: {
|
|
9657
|
+
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
|
9658
|
+
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
9659
|
+
},
|
|
9660
|
+
codespaces: {
|
|
9661
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
9662
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9663
|
+
],
|
|
9664
|
+
addSelectedRepoToOrgSecret: [
|
|
9665
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9666
|
+
],
|
|
9667
|
+
checkPermissionsForDevcontainer: [
|
|
9668
|
+
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
|
9669
|
+
],
|
|
9670
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
9671
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
9672
|
+
],
|
|
9673
|
+
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
9674
|
+
createOrUpdateOrgSecret: [
|
|
9675
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
9676
|
+
],
|
|
9677
|
+
createOrUpdateRepoSecret: [
|
|
9678
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
9679
|
+
],
|
|
9680
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
9681
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
9682
|
+
],
|
|
9683
|
+
createWithPrForAuthenticatedUser: [
|
|
9684
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
9685
|
+
],
|
|
9686
|
+
createWithRepoForAuthenticatedUser: [
|
|
9687
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
9688
|
+
],
|
|
9689
|
+
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
9690
|
+
deleteFromOrganization: [
|
|
9691
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
9692
|
+
],
|
|
9693
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
9694
|
+
deleteRepoSecret: [
|
|
9695
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
9696
|
+
],
|
|
9697
|
+
deleteSecretForAuthenticatedUser: [
|
|
9698
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
9699
|
+
],
|
|
9700
|
+
exportForAuthenticatedUser: [
|
|
9701
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
9702
|
+
],
|
|
9703
|
+
getCodespacesForUserInOrg: [
|
|
9704
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
9705
|
+
],
|
|
9706
|
+
getExportDetailsForAuthenticatedUser: [
|
|
9707
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
9708
|
+
],
|
|
9709
|
+
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
9710
|
+
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
9711
|
+
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
9712
|
+
getPublicKeyForAuthenticatedUser: [
|
|
9713
|
+
"GET /user/codespaces/secrets/public-key"
|
|
9714
|
+
],
|
|
9715
|
+
getRepoPublicKey: [
|
|
9716
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
9717
|
+
],
|
|
9718
|
+
getRepoSecret: [
|
|
9719
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
9720
|
+
],
|
|
9721
|
+
getSecretForAuthenticatedUser: [
|
|
9722
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
9723
|
+
],
|
|
9724
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
9725
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
9726
|
+
],
|
|
9727
|
+
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
9728
|
+
listInOrganization: [
|
|
9729
|
+
"GET /orgs/{org}/codespaces",
|
|
9730
|
+
{},
|
|
9731
|
+
{ renamedParameters: { org_id: "org" } }
|
|
9732
|
+
],
|
|
9733
|
+
listInRepositoryForAuthenticatedUser: [
|
|
9734
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
9735
|
+
],
|
|
9736
|
+
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
9737
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
9738
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
9739
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
9740
|
+
],
|
|
9741
|
+
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
9742
|
+
listSelectedReposForOrgSecret: [
|
|
9743
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9744
|
+
],
|
|
9745
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
9746
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
9747
|
+
],
|
|
9748
|
+
publishForAuthenticatedUser: [
|
|
9749
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
9750
|
+
],
|
|
9751
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
9752
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9753
|
+
],
|
|
9754
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9755
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9756
|
+
],
|
|
9757
|
+
repoMachinesForAuthenticatedUser: [
|
|
9758
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
9759
|
+
],
|
|
9760
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
9761
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
9762
|
+
],
|
|
9763
|
+
setSelectedReposForOrgSecret: [
|
|
9764
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9765
|
+
],
|
|
9766
|
+
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
9767
|
+
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
9768
|
+
stopInOrganization: [
|
|
9769
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
9770
|
+
],
|
|
9771
|
+
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
9772
|
+
},
|
|
9773
|
+
copilot: {
|
|
9774
|
+
addCopilotSeatsForTeams: [
|
|
9775
|
+
"POST /orgs/{org}/copilot/billing/selected_teams"
|
|
9776
|
+
],
|
|
9777
|
+
addCopilotSeatsForUsers: [
|
|
9778
|
+
"POST /orgs/{org}/copilot/billing/selected_users"
|
|
9779
|
+
],
|
|
9780
|
+
cancelCopilotSeatAssignmentForTeams: [
|
|
9781
|
+
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
|
9782
|
+
],
|
|
9783
|
+
cancelCopilotSeatAssignmentForUsers: [
|
|
9784
|
+
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
|
9785
|
+
],
|
|
9786
|
+
copilotMetricsForOrganization: ["GET /orgs/{org}/copilot/metrics"],
|
|
9787
|
+
copilotMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],
|
|
9788
|
+
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
|
9789
|
+
getCopilotSeatDetailsForUser: [
|
|
9790
|
+
"GET /orgs/{org}/members/{username}/copilot"
|
|
9791
|
+
],
|
|
9792
|
+
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
9793
|
+
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
9794
|
+
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
9795
|
+
},
|
|
9796
|
+
dependabot: {
|
|
9797
|
+
addSelectedRepoToOrgSecret: [
|
|
9798
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9799
|
+
],
|
|
9800
|
+
createOrUpdateOrgSecret: [
|
|
9801
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
9802
|
+
],
|
|
9803
|
+
createOrUpdateRepoSecret: [
|
|
9804
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9805
|
+
],
|
|
9806
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
9807
|
+
deleteRepoSecret: [
|
|
9808
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9809
|
+
],
|
|
9810
|
+
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
9811
|
+
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
9812
|
+
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
9813
|
+
getRepoPublicKey: [
|
|
9814
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
9815
|
+
],
|
|
9816
|
+
getRepoSecret: [
|
|
9817
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9818
|
+
],
|
|
9819
|
+
listAlertsForEnterprise: [
|
|
9820
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
9821
|
+
],
|
|
9822
|
+
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
9823
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
9824
|
+
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
9825
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
9826
|
+
listSelectedReposForOrgSecret: [
|
|
9827
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9828
|
+
],
|
|
9829
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9830
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9831
|
+
],
|
|
9832
|
+
setSelectedReposForOrgSecret: [
|
|
9833
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9834
|
+
],
|
|
9835
|
+
updateAlert: [
|
|
9836
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
9837
|
+
]
|
|
9838
|
+
},
|
|
9839
|
+
dependencyGraph: {
|
|
9840
|
+
createRepositorySnapshot: [
|
|
9841
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
9842
|
+
],
|
|
9843
|
+
diffRange: [
|
|
9844
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
9845
|
+
],
|
|
9846
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
9847
|
+
},
|
|
9848
|
+
emojis: { get: ["GET /emojis"] },
|
|
9849
|
+
gists: {
|
|
9850
|
+
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
9851
|
+
create: ["POST /gists"],
|
|
9852
|
+
createComment: ["POST /gists/{gist_id}/comments"],
|
|
9853
|
+
delete: ["DELETE /gists/{gist_id}"],
|
|
9854
|
+
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
|
9855
|
+
fork: ["POST /gists/{gist_id}/forks"],
|
|
9856
|
+
get: ["GET /gists/{gist_id}"],
|
|
9857
|
+
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
|
9858
|
+
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
|
9859
|
+
list: ["GET /gists"],
|
|
9860
|
+
listComments: ["GET /gists/{gist_id}/comments"],
|
|
9861
|
+
listCommits: ["GET /gists/{gist_id}/commits"],
|
|
9862
|
+
listForUser: ["GET /users/{username}/gists"],
|
|
9863
|
+
listForks: ["GET /gists/{gist_id}/forks"],
|
|
9864
|
+
listPublic: ["GET /gists/public"],
|
|
9865
|
+
listStarred: ["GET /gists/starred"],
|
|
9866
|
+
star: ["PUT /gists/{gist_id}/star"],
|
|
9867
|
+
unstar: ["DELETE /gists/{gist_id}/star"],
|
|
9868
|
+
update: ["PATCH /gists/{gist_id}"],
|
|
9869
|
+
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
|
9870
|
+
},
|
|
9871
|
+
git: {
|
|
9872
|
+
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
|
9873
|
+
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
|
9874
|
+
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
|
9875
|
+
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
|
9876
|
+
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
|
9877
|
+
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
|
9878
|
+
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
|
9879
|
+
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
|
9880
|
+
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
|
9881
|
+
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
|
9882
|
+
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
|
9883
|
+
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
|
9884
|
+
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
|
9885
|
+
},
|
|
9886
|
+
gitignore: {
|
|
9887
|
+
getAllTemplates: ["GET /gitignore/templates"],
|
|
9888
|
+
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
9889
|
+
},
|
|
9890
|
+
interactions: {
|
|
9891
|
+
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
9892
|
+
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
9893
|
+
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
9894
|
+
getRestrictionsForYourPublicRepos: [
|
|
9895
|
+
"GET /user/interaction-limits",
|
|
9896
|
+
{},
|
|
9897
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
9898
|
+
],
|
|
9899
|
+
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
9900
|
+
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
9901
|
+
removeRestrictionsForRepo: [
|
|
9902
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
9903
|
+
],
|
|
9904
|
+
removeRestrictionsForYourPublicRepos: [
|
|
9905
|
+
"DELETE /user/interaction-limits",
|
|
9906
|
+
{},
|
|
9907
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
9908
|
+
],
|
|
9909
|
+
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
9910
|
+
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
9911
|
+
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
9912
|
+
setRestrictionsForYourPublicRepos: [
|
|
9913
|
+
"PUT /user/interaction-limits",
|
|
9914
|
+
{},
|
|
9915
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
9916
|
+
]
|
|
9917
|
+
},
|
|
9918
|
+
issues: {
|
|
9919
|
+
addAssignees: [
|
|
9920
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9921
|
+
],
|
|
9922
|
+
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
9923
|
+
addSubIssue: [
|
|
9924
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
9925
|
+
],
|
|
9926
|
+
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
9927
|
+
checkUserCanBeAssignedToIssue: [
|
|
9928
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
9929
|
+
],
|
|
9930
|
+
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
9931
|
+
createComment: [
|
|
9932
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
9933
|
+
],
|
|
9934
|
+
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
9935
|
+
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
9936
|
+
deleteComment: [
|
|
9937
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
9938
|
+
],
|
|
9939
|
+
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
9940
|
+
deleteMilestone: [
|
|
9941
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9942
|
+
],
|
|
9943
|
+
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
9944
|
+
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
9945
|
+
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
9946
|
+
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
9947
|
+
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
9948
|
+
list: ["GET /issues"],
|
|
9949
|
+
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
9950
|
+
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
9951
|
+
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
9952
|
+
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
9953
|
+
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
9954
|
+
listEventsForTimeline: [
|
|
9955
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
9956
|
+
],
|
|
9957
|
+
listForAuthenticatedUser: ["GET /user/issues"],
|
|
9958
|
+
listForOrg: ["GET /orgs/{org}/issues"],
|
|
9959
|
+
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
9960
|
+
listLabelsForMilestone: [
|
|
9961
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
9962
|
+
],
|
|
9963
|
+
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
9964
|
+
listLabelsOnIssue: [
|
|
9965
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9966
|
+
],
|
|
9967
|
+
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
9968
|
+
listSubIssues: [
|
|
9969
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
9970
|
+
],
|
|
9971
|
+
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
9972
|
+
removeAllLabels: [
|
|
9973
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9974
|
+
],
|
|
9975
|
+
removeAssignees: [
|
|
9976
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9977
|
+
],
|
|
9978
|
+
removeLabel: [
|
|
9979
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
9980
|
+
],
|
|
9981
|
+
removeSubIssue: [
|
|
9982
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"
|
|
9983
|
+
],
|
|
9984
|
+
reprioritizeSubIssue: [
|
|
9985
|
+
"PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"
|
|
9986
|
+
],
|
|
9987
|
+
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
9988
|
+
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
9989
|
+
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
9990
|
+
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
9991
|
+
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
9992
|
+
updateMilestone: [
|
|
9993
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9994
|
+
]
|
|
9995
|
+
},
|
|
9996
|
+
licenses: {
|
|
9997
|
+
get: ["GET /licenses/{license}"],
|
|
9998
|
+
getAllCommonlyUsed: ["GET /licenses"],
|
|
9999
|
+
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
|
10000
|
+
},
|
|
10001
|
+
markdown: {
|
|
10002
|
+
render: ["POST /markdown"],
|
|
10003
|
+
renderRaw: [
|
|
10004
|
+
"POST /markdown/raw",
|
|
10005
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
10006
|
+
]
|
|
10007
|
+
},
|
|
10008
|
+
meta: {
|
|
10009
|
+
get: ["GET /meta"],
|
|
10010
|
+
getAllVersions: ["GET /versions"],
|
|
10011
|
+
getOctocat: ["GET /octocat"],
|
|
10012
|
+
getZen: ["GET /zen"],
|
|
10013
|
+
root: ["GET /"]
|
|
10014
|
+
},
|
|
10015
|
+
migrations: {
|
|
10016
|
+
deleteArchiveForAuthenticatedUser: [
|
|
10017
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
10018
|
+
],
|
|
10019
|
+
deleteArchiveForOrg: [
|
|
10020
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
10021
|
+
],
|
|
10022
|
+
downloadArchiveForOrg: [
|
|
10023
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
10024
|
+
],
|
|
10025
|
+
getArchiveForAuthenticatedUser: [
|
|
10026
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
10027
|
+
],
|
|
10028
|
+
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
|
10029
|
+
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
10030
|
+
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
10031
|
+
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
10032
|
+
listReposForAuthenticatedUser: [
|
|
10033
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
10034
|
+
],
|
|
10035
|
+
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
10036
|
+
listReposForUser: [
|
|
10037
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
10038
|
+
{},
|
|
10039
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
10040
|
+
],
|
|
10041
|
+
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
10042
|
+
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
10043
|
+
unlockRepoForAuthenticatedUser: [
|
|
10044
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
10045
|
+
],
|
|
10046
|
+
unlockRepoForOrg: [
|
|
10047
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
10048
|
+
]
|
|
10049
|
+
},
|
|
10050
|
+
oidc: {
|
|
10051
|
+
getOidcCustomSubTemplateForOrg: [
|
|
10052
|
+
"GET /orgs/{org}/actions/oidc/customization/sub"
|
|
10053
|
+
],
|
|
10054
|
+
updateOidcCustomSubTemplateForOrg: [
|
|
10055
|
+
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
|
10056
|
+
]
|
|
10057
|
+
},
|
|
10058
|
+
orgs: {
|
|
10059
|
+
addSecurityManagerTeam: [
|
|
10060
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}",
|
|
10061
|
+
{},
|
|
10062
|
+
{
|
|
10063
|
+
deprecated: "octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"
|
|
10064
|
+
}
|
|
10065
|
+
],
|
|
10066
|
+
assignTeamToOrgRole: [
|
|
10067
|
+
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
10068
|
+
],
|
|
10069
|
+
assignUserToOrgRole: [
|
|
10070
|
+
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
10071
|
+
],
|
|
10072
|
+
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
10073
|
+
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
10074
|
+
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
10075
|
+
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
10076
|
+
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
10077
|
+
convertMemberToOutsideCollaborator: [
|
|
10078
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
10079
|
+
],
|
|
10080
|
+
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
10081
|
+
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
10082
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
10083
|
+
"PATCH /orgs/{org}/properties/values"
|
|
10084
|
+
],
|
|
10085
|
+
createOrUpdateCustomProperty: [
|
|
10086
|
+
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
10087
|
+
],
|
|
10088
|
+
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
10089
|
+
delete: ["DELETE /orgs/{org}"],
|
|
10090
|
+
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
10091
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
10092
|
+
"POST /orgs/{org}/{security_product}/{enablement}",
|
|
10093
|
+
{},
|
|
10094
|
+
{
|
|
10095
|
+
deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
|
|
10096
|
+
}
|
|
10097
|
+
],
|
|
10098
|
+
get: ["GET /orgs/{org}"],
|
|
10099
|
+
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
10100
|
+
getCustomProperty: [
|
|
10101
|
+
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
10102
|
+
],
|
|
10103
|
+
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
10104
|
+
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
10105
|
+
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
10106
|
+
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
10107
|
+
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
10108
|
+
getWebhookDelivery: [
|
|
10109
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
10110
|
+
],
|
|
10111
|
+
list: ["GET /organizations"],
|
|
10112
|
+
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
10113
|
+
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
|
10114
|
+
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
10115
|
+
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
10116
|
+
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
10117
|
+
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
10118
|
+
listForUser: ["GET /users/{username}/orgs"],
|
|
10119
|
+
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
10120
|
+
listMembers: ["GET /orgs/{org}/members"],
|
|
10121
|
+
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
10122
|
+
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
10123
|
+
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
|
10124
|
+
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
|
10125
|
+
listOrganizationFineGrainedPermissions: [
|
|
10126
|
+
"GET /orgs/{org}/organization-fine-grained-permissions"
|
|
10127
|
+
],
|
|
10128
|
+
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
10129
|
+
listPatGrantRepositories: [
|
|
10130
|
+
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
10131
|
+
],
|
|
10132
|
+
listPatGrantRequestRepositories: [
|
|
10133
|
+
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
10134
|
+
],
|
|
10135
|
+
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
|
10136
|
+
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
|
10137
|
+
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
10138
|
+
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
10139
|
+
listSecurityManagerTeams: [
|
|
10140
|
+
"GET /orgs/{org}/security-managers",
|
|
10141
|
+
{},
|
|
10142
|
+
{
|
|
10143
|
+
deprecated: "octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"
|
|
10144
|
+
}
|
|
10145
|
+
],
|
|
10146
|
+
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
10147
|
+
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
10148
|
+
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
10149
|
+
redeliverWebhookDelivery: [
|
|
10150
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
10151
|
+
],
|
|
10152
|
+
removeCustomProperty: [
|
|
10153
|
+
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
10154
|
+
],
|
|
10155
|
+
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
10156
|
+
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
10157
|
+
removeOutsideCollaborator: [
|
|
10158
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
10159
|
+
],
|
|
10160
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
10161
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
10162
|
+
],
|
|
10163
|
+
removeSecurityManagerTeam: [
|
|
10164
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}",
|
|
10165
|
+
{},
|
|
10166
|
+
{
|
|
10167
|
+
deprecated: "octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"
|
|
10168
|
+
}
|
|
10169
|
+
],
|
|
10170
|
+
reviewPatGrantRequest: [
|
|
10171
|
+
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
10172
|
+
],
|
|
10173
|
+
reviewPatGrantRequestsInBulk: [
|
|
10174
|
+
"POST /orgs/{org}/personal-access-token-requests"
|
|
10175
|
+
],
|
|
10176
|
+
revokeAllOrgRolesTeam: [
|
|
10177
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
|
10178
|
+
],
|
|
10179
|
+
revokeAllOrgRolesUser: [
|
|
10180
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
|
10181
|
+
],
|
|
10182
|
+
revokeOrgRoleTeam: [
|
|
10183
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
10184
|
+
],
|
|
10185
|
+
revokeOrgRoleUser: [
|
|
10186
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
10187
|
+
],
|
|
10188
|
+
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
10189
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
10190
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
10191
|
+
],
|
|
10192
|
+
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
10193
|
+
update: ["PATCH /orgs/{org}"],
|
|
10194
|
+
updateMembershipForAuthenticatedUser: [
|
|
10195
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
10196
|
+
],
|
|
10197
|
+
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
|
10198
|
+
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
|
10199
|
+
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
10200
|
+
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
10201
|
+
},
|
|
10202
|
+
packages: {
|
|
10203
|
+
deletePackageForAuthenticatedUser: [
|
|
10204
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
10205
|
+
],
|
|
10206
|
+
deletePackageForOrg: [
|
|
10207
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
10208
|
+
],
|
|
10209
|
+
deletePackageForUser: [
|
|
10210
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
10211
|
+
],
|
|
10212
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
10213
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10214
|
+
],
|
|
10215
|
+
deletePackageVersionForOrg: [
|
|
10216
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10217
|
+
],
|
|
10218
|
+
deletePackageVersionForUser: [
|
|
10219
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10220
|
+
],
|
|
10221
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
10222
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
10223
|
+
{},
|
|
10224
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
10225
|
+
],
|
|
10226
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
10227
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
10228
|
+
{},
|
|
10229
|
+
{
|
|
10230
|
+
renamed: [
|
|
10231
|
+
"packages",
|
|
10232
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
10233
|
+
]
|
|
10234
|
+
}
|
|
10235
|
+
],
|
|
10236
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
10237
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
10238
|
+
],
|
|
10239
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
10240
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
10241
|
+
],
|
|
10242
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
10243
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
10244
|
+
],
|
|
10245
|
+
getPackageForAuthenticatedUser: [
|
|
10246
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
10247
|
+
],
|
|
10248
|
+
getPackageForOrganization: [
|
|
10249
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
10250
|
+
],
|
|
10251
|
+
getPackageForUser: [
|
|
10252
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
10253
|
+
],
|
|
10254
|
+
getPackageVersionForAuthenticatedUser: [
|
|
10255
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10256
|
+
],
|
|
10257
|
+
getPackageVersionForOrganization: [
|
|
10258
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10259
|
+
],
|
|
10260
|
+
getPackageVersionForUser: [
|
|
10261
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
10262
|
+
],
|
|
10263
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
10264
|
+
"GET /user/docker/conflicts"
|
|
10265
|
+
],
|
|
10266
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
10267
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
10268
|
+
],
|
|
10269
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
10270
|
+
"GET /users/{username}/docker/conflicts"
|
|
10271
|
+
],
|
|
10272
|
+
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
10273
|
+
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
10274
|
+
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
10275
|
+
restorePackageForAuthenticatedUser: [
|
|
10276
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
10277
|
+
],
|
|
10278
|
+
restorePackageForOrg: [
|
|
10279
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
10280
|
+
],
|
|
10281
|
+
restorePackageForUser: [
|
|
10282
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
10283
|
+
],
|
|
10284
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
10285
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
10286
|
+
],
|
|
10287
|
+
restorePackageVersionForOrg: [
|
|
10288
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
10289
|
+
],
|
|
10290
|
+
restorePackageVersionForUser: [
|
|
10291
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
10292
|
+
]
|
|
10293
|
+
},
|
|
10294
|
+
privateRegistries: {
|
|
10295
|
+
createOrgPrivateRegistry: ["POST /orgs/{org}/private-registries"],
|
|
10296
|
+
deleteOrgPrivateRegistry: [
|
|
10297
|
+
"DELETE /orgs/{org}/private-registries/{secret_name}"
|
|
10298
|
+
],
|
|
10299
|
+
getOrgPrivateRegistry: ["GET /orgs/{org}/private-registries/{secret_name}"],
|
|
10300
|
+
getOrgPublicKey: ["GET /orgs/{org}/private-registries/public-key"],
|
|
10301
|
+
listOrgPrivateRegistries: ["GET /orgs/{org}/private-registries"],
|
|
10302
|
+
updateOrgPrivateRegistry: [
|
|
10303
|
+
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
|
10304
|
+
]
|
|
10305
|
+
},
|
|
10306
|
+
projects: {
|
|
10307
|
+
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
10308
|
+
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
10309
|
+
createColumn: ["POST /projects/{project_id}/columns"],
|
|
10310
|
+
createForAuthenticatedUser: ["POST /user/projects"],
|
|
10311
|
+
createForOrg: ["POST /orgs/{org}/projects"],
|
|
10312
|
+
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
10313
|
+
delete: ["DELETE /projects/{project_id}"],
|
|
10314
|
+
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
10315
|
+
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
10316
|
+
get: ["GET /projects/{project_id}"],
|
|
10317
|
+
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
10318
|
+
getColumn: ["GET /projects/columns/{column_id}"],
|
|
10319
|
+
getPermissionForUser: [
|
|
10320
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
10321
|
+
],
|
|
10322
|
+
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
10323
|
+
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
10324
|
+
listColumns: ["GET /projects/{project_id}/columns"],
|
|
10325
|
+
listForOrg: ["GET /orgs/{org}/projects"],
|
|
10326
|
+
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
10327
|
+
listForUser: ["GET /users/{username}/projects"],
|
|
10328
|
+
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
10329
|
+
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
10330
|
+
removeCollaborator: [
|
|
10331
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
10332
|
+
],
|
|
10333
|
+
update: ["PATCH /projects/{project_id}"],
|
|
10334
|
+
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
10335
|
+
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
10336
|
+
},
|
|
10337
|
+
pulls: {
|
|
10338
|
+
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
10339
|
+
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
10340
|
+
createReplyForReviewComment: [
|
|
10341
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
10342
|
+
],
|
|
10343
|
+
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
10344
|
+
createReviewComment: [
|
|
10345
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
10346
|
+
],
|
|
10347
|
+
deletePendingReview: [
|
|
10348
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
10349
|
+
],
|
|
10350
|
+
deleteReviewComment: [
|
|
10351
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
10352
|
+
],
|
|
10353
|
+
dismissReview: [
|
|
10354
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
10355
|
+
],
|
|
10356
|
+
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
10357
|
+
getReview: [
|
|
10358
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
10359
|
+
],
|
|
10360
|
+
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
10361
|
+
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
10362
|
+
listCommentsForReview: [
|
|
10363
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
10364
|
+
],
|
|
10365
|
+
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
10366
|
+
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
10367
|
+
listRequestedReviewers: [
|
|
10368
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
10369
|
+
],
|
|
10370
|
+
listReviewComments: [
|
|
10371
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
10372
|
+
],
|
|
10373
|
+
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
10374
|
+
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
10375
|
+
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
10376
|
+
removeRequestedReviewers: [
|
|
10377
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
10378
|
+
],
|
|
10379
|
+
requestReviewers: [
|
|
10380
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
10381
|
+
],
|
|
10382
|
+
submitReview: [
|
|
10383
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
10384
|
+
],
|
|
10385
|
+
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
10386
|
+
updateBranch: [
|
|
10387
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
10388
|
+
],
|
|
10389
|
+
updateReview: [
|
|
10390
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
10391
|
+
],
|
|
10392
|
+
updateReviewComment: [
|
|
10393
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
10394
|
+
]
|
|
10395
|
+
},
|
|
10396
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
10397
|
+
reactions: {
|
|
10398
|
+
createForCommitComment: [
|
|
10399
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
10400
|
+
],
|
|
10401
|
+
createForIssue: [
|
|
10402
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
10403
|
+
],
|
|
10404
|
+
createForIssueComment: [
|
|
10405
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
10406
|
+
],
|
|
10407
|
+
createForPullRequestReviewComment: [
|
|
10408
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
10409
|
+
],
|
|
10410
|
+
createForRelease: [
|
|
10411
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
10412
|
+
],
|
|
10413
|
+
createForTeamDiscussionCommentInOrg: [
|
|
10414
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
10415
|
+
],
|
|
10416
|
+
createForTeamDiscussionInOrg: [
|
|
10417
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
10418
|
+
],
|
|
10419
|
+
deleteForCommitComment: [
|
|
10420
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
10421
|
+
],
|
|
10422
|
+
deleteForIssue: [
|
|
10423
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
10424
|
+
],
|
|
10425
|
+
deleteForIssueComment: [
|
|
10426
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
10427
|
+
],
|
|
10428
|
+
deleteForPullRequestComment: [
|
|
10429
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
10430
|
+
],
|
|
10431
|
+
deleteForRelease: [
|
|
10432
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
10433
|
+
],
|
|
10434
|
+
deleteForTeamDiscussion: [
|
|
10435
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
10436
|
+
],
|
|
10437
|
+
deleteForTeamDiscussionComment: [
|
|
10438
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
10439
|
+
],
|
|
10440
|
+
listForCommitComment: [
|
|
10441
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
10442
|
+
],
|
|
10443
|
+
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
10444
|
+
listForIssueComment: [
|
|
10445
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
10446
|
+
],
|
|
10447
|
+
listForPullRequestReviewComment: [
|
|
10448
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
10449
|
+
],
|
|
10450
|
+
listForRelease: [
|
|
10451
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
10452
|
+
],
|
|
10453
|
+
listForTeamDiscussionCommentInOrg: [
|
|
10454
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
10455
|
+
],
|
|
10456
|
+
listForTeamDiscussionInOrg: [
|
|
10457
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
10458
|
+
]
|
|
10459
|
+
},
|
|
10460
|
+
repos: {
|
|
10461
|
+
acceptInvitation: [
|
|
10462
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
10463
|
+
{},
|
|
10464
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
10465
|
+
],
|
|
10466
|
+
acceptInvitationForAuthenticatedUser: [
|
|
10467
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
10468
|
+
],
|
|
10469
|
+
addAppAccessRestrictions: [
|
|
10470
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
10471
|
+
{},
|
|
10472
|
+
{ mapToData: "apps" }
|
|
10473
|
+
],
|
|
10474
|
+
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
10475
|
+
addStatusCheckContexts: [
|
|
10476
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
10477
|
+
{},
|
|
10478
|
+
{ mapToData: "contexts" }
|
|
10479
|
+
],
|
|
10480
|
+
addTeamAccessRestrictions: [
|
|
10481
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
10482
|
+
{},
|
|
10483
|
+
{ mapToData: "teams" }
|
|
10484
|
+
],
|
|
10485
|
+
addUserAccessRestrictions: [
|
|
10486
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
10487
|
+
{},
|
|
10488
|
+
{ mapToData: "users" }
|
|
10489
|
+
],
|
|
10490
|
+
cancelPagesDeployment: [
|
|
10491
|
+
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
|
10492
|
+
],
|
|
10493
|
+
checkAutomatedSecurityFixes: [
|
|
10494
|
+
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
10495
|
+
],
|
|
10496
|
+
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
10497
|
+
checkPrivateVulnerabilityReporting: [
|
|
10498
|
+
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
10499
|
+
],
|
|
10500
|
+
checkVulnerabilityAlerts: [
|
|
10501
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
10502
|
+
],
|
|
10503
|
+
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
10504
|
+
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
10505
|
+
compareCommitsWithBasehead: [
|
|
10506
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
10507
|
+
],
|
|
10508
|
+
createAttestation: ["POST /repos/{owner}/{repo}/attestations"],
|
|
10509
|
+
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
10510
|
+
createCommitComment: [
|
|
10511
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
10512
|
+
],
|
|
10513
|
+
createCommitSignatureProtection: [
|
|
10514
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
10515
|
+
],
|
|
10516
|
+
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
10517
|
+
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
10518
|
+
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
10519
|
+
createDeploymentBranchPolicy: [
|
|
10520
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
10521
|
+
],
|
|
10522
|
+
createDeploymentProtectionRule: [
|
|
10523
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
10524
|
+
],
|
|
10525
|
+
createDeploymentStatus: [
|
|
10526
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
10527
|
+
],
|
|
10528
|
+
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
10529
|
+
createForAuthenticatedUser: ["POST /user/repos"],
|
|
10530
|
+
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
10531
|
+
createInOrg: ["POST /orgs/{org}/repos"],
|
|
10532
|
+
createOrUpdateCustomPropertiesValues: [
|
|
10533
|
+
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
10534
|
+
],
|
|
10535
|
+
createOrUpdateEnvironment: [
|
|
10536
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
10537
|
+
],
|
|
10538
|
+
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
10539
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
10540
|
+
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
|
10541
|
+
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
10542
|
+
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
10543
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
10544
|
+
createUsingTemplate: [
|
|
10545
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
10546
|
+
],
|
|
10547
|
+
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
10548
|
+
declineInvitation: [
|
|
10549
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
10550
|
+
{},
|
|
10551
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
10552
|
+
],
|
|
10553
|
+
declineInvitationForAuthenticatedUser: [
|
|
10554
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
10555
|
+
],
|
|
10556
|
+
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
10557
|
+
deleteAccessRestrictions: [
|
|
10558
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
10559
|
+
],
|
|
10560
|
+
deleteAdminBranchProtection: [
|
|
10561
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
10562
|
+
],
|
|
10563
|
+
deleteAnEnvironment: [
|
|
10564
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
10565
|
+
],
|
|
10566
|
+
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
10567
|
+
deleteBranchProtection: [
|
|
10568
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
10569
|
+
],
|
|
10570
|
+
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
10571
|
+
deleteCommitSignatureProtection: [
|
|
10572
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
10573
|
+
],
|
|
10574
|
+
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
10575
|
+
deleteDeployment: [
|
|
10576
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
10577
|
+
],
|
|
10578
|
+
deleteDeploymentBranchPolicy: [
|
|
10579
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
10580
|
+
],
|
|
10581
|
+
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
10582
|
+
deleteInvitation: [
|
|
10583
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10584
|
+
],
|
|
10585
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
10586
|
+
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
10587
|
+
deletePullRequestReviewProtection: [
|
|
10588
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
10589
|
+
],
|
|
10590
|
+
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
10591
|
+
deleteReleaseAsset: [
|
|
10592
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
10593
|
+
],
|
|
10594
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
10595
|
+
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
10596
|
+
disableAutomatedSecurityFixes: [
|
|
10597
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
10598
|
+
],
|
|
10599
|
+
disableDeploymentProtectionRule: [
|
|
10600
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
10601
|
+
],
|
|
10602
|
+
disablePrivateVulnerabilityReporting: [
|
|
10603
|
+
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
10604
|
+
],
|
|
10605
|
+
disableVulnerabilityAlerts: [
|
|
10606
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
10607
|
+
],
|
|
10608
|
+
downloadArchive: [
|
|
10609
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
10610
|
+
{},
|
|
10611
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
10612
|
+
],
|
|
10613
|
+
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
10614
|
+
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
10615
|
+
enableAutomatedSecurityFixes: [
|
|
10616
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
10617
|
+
],
|
|
10618
|
+
enablePrivateVulnerabilityReporting: [
|
|
10619
|
+
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
10620
|
+
],
|
|
10621
|
+
enableVulnerabilityAlerts: [
|
|
10622
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
10623
|
+
],
|
|
10624
|
+
generateReleaseNotes: [
|
|
10625
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
10626
|
+
],
|
|
10627
|
+
get: ["GET /repos/{owner}/{repo}"],
|
|
10628
|
+
getAccessRestrictions: [
|
|
10629
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
10630
|
+
],
|
|
10631
|
+
getAdminBranchProtection: [
|
|
10632
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
10633
|
+
],
|
|
10634
|
+
getAllDeploymentProtectionRules: [
|
|
10635
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
10636
|
+
],
|
|
10637
|
+
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
10638
|
+
getAllStatusCheckContexts: [
|
|
10639
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
10640
|
+
],
|
|
10641
|
+
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
10642
|
+
getAppsWithAccessToProtectedBranch: [
|
|
10643
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
10644
|
+
],
|
|
10645
|
+
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
10646
|
+
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
10647
|
+
getBranchProtection: [
|
|
10648
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
10649
|
+
],
|
|
10650
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
10651
|
+
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
10652
|
+
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
10653
|
+
getCollaboratorPermissionLevel: [
|
|
10654
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
10655
|
+
],
|
|
10656
|
+
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
10657
|
+
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
10658
|
+
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
10659
|
+
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
10660
|
+
getCommitSignatureProtection: [
|
|
10661
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
10662
|
+
],
|
|
10663
|
+
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
10664
|
+
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
10665
|
+
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
10666
|
+
getCustomDeploymentProtectionRule: [
|
|
10667
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
10668
|
+
],
|
|
10669
|
+
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
10670
|
+
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
10671
|
+
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
10672
|
+
getDeploymentBranchPolicy: [
|
|
10673
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
10674
|
+
],
|
|
10675
|
+
getDeploymentStatus: [
|
|
10676
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
10677
|
+
],
|
|
10678
|
+
getEnvironment: [
|
|
10679
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
10680
|
+
],
|
|
10681
|
+
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
10682
|
+
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
10683
|
+
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
|
10684
|
+
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
|
10685
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
10686
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
10687
|
+
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
10688
|
+
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
10689
|
+
getPagesDeployment: [
|
|
10690
|
+
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
|
10691
|
+
],
|
|
10692
|
+
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
10693
|
+
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
10694
|
+
getPullRequestReviewProtection: [
|
|
10695
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
10696
|
+
],
|
|
10697
|
+
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
10698
|
+
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
10699
|
+
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
10700
|
+
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
10701
|
+
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
10702
|
+
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
10703
|
+
getRepoRuleSuite: [
|
|
10704
|
+
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
|
10705
|
+
],
|
|
10706
|
+
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
10707
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
10708
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
10709
|
+
getStatusChecksProtection: [
|
|
10710
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
10711
|
+
],
|
|
10712
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
10713
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
10714
|
+
],
|
|
10715
|
+
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
10716
|
+
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
10717
|
+
getUsersWithAccessToProtectedBranch: [
|
|
10718
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
10719
|
+
],
|
|
10720
|
+
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
10721
|
+
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
10722
|
+
getWebhookConfigForRepo: [
|
|
10723
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10724
|
+
],
|
|
10725
|
+
getWebhookDelivery: [
|
|
10726
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
10727
|
+
],
|
|
10728
|
+
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
|
10729
|
+
listAttestations: [
|
|
10730
|
+
"GET /repos/{owner}/{repo}/attestations/{subject_digest}"
|
|
10731
|
+
],
|
|
10732
|
+
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
10733
|
+
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
10734
|
+
listBranchesForHeadCommit: [
|
|
10735
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
10736
|
+
],
|
|
10737
|
+
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
10738
|
+
listCommentsForCommit: [
|
|
10739
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
10740
|
+
],
|
|
10741
|
+
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
10742
|
+
listCommitStatusesForRef: [
|
|
10743
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
10744
|
+
],
|
|
10745
|
+
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
10746
|
+
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
10747
|
+
listCustomDeploymentRuleIntegrations: [
|
|
10748
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
10749
|
+
],
|
|
10750
|
+
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
10751
|
+
listDeploymentBranchPolicies: [
|
|
10752
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
10753
|
+
],
|
|
10754
|
+
listDeploymentStatuses: [
|
|
10755
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
10756
|
+
],
|
|
10757
|
+
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
10758
|
+
listForAuthenticatedUser: ["GET /user/repos"],
|
|
10759
|
+
listForOrg: ["GET /orgs/{org}/repos"],
|
|
10760
|
+
listForUser: ["GET /users/{username}/repos"],
|
|
10761
|
+
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
|
10762
|
+
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
|
10763
|
+
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
|
10764
|
+
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
10765
|
+
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
10766
|
+
listPublic: ["GET /repositories"],
|
|
10767
|
+
listPullRequestsAssociatedWithCommit: [
|
|
10768
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
10769
|
+
],
|
|
10770
|
+
listReleaseAssets: [
|
|
10771
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
10772
|
+
],
|
|
10773
|
+
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
10774
|
+
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
10775
|
+
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
10776
|
+
listWebhookDeliveries: [
|
|
10777
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
10778
|
+
],
|
|
10779
|
+
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
10780
|
+
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
10781
|
+
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
10782
|
+
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
10783
|
+
redeliverWebhookDelivery: [
|
|
10784
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
10785
|
+
],
|
|
10786
|
+
removeAppAccessRestrictions: [
|
|
10787
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
10788
|
+
{},
|
|
10789
|
+
{ mapToData: "apps" }
|
|
10790
|
+
],
|
|
10791
|
+
removeCollaborator: [
|
|
10792
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
10793
|
+
],
|
|
10794
|
+
removeStatusCheckContexts: [
|
|
10795
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
10796
|
+
{},
|
|
10797
|
+
{ mapToData: "contexts" }
|
|
10798
|
+
],
|
|
10799
|
+
removeStatusCheckProtection: [
|
|
10800
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
10801
|
+
],
|
|
10802
|
+
removeTeamAccessRestrictions: [
|
|
10803
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
10804
|
+
{},
|
|
10805
|
+
{ mapToData: "teams" }
|
|
10806
|
+
],
|
|
10807
|
+
removeUserAccessRestrictions: [
|
|
10808
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
10809
|
+
{},
|
|
10810
|
+
{ mapToData: "users" }
|
|
10811
|
+
],
|
|
10812
|
+
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
10813
|
+
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
10814
|
+
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
10815
|
+
setAdminBranchProtection: [
|
|
10816
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
10817
|
+
],
|
|
10818
|
+
setAppAccessRestrictions: [
|
|
10819
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
10820
|
+
{},
|
|
10821
|
+
{ mapToData: "apps" }
|
|
10822
|
+
],
|
|
10823
|
+
setStatusCheckContexts: [
|
|
10824
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
10825
|
+
{},
|
|
10826
|
+
{ mapToData: "contexts" }
|
|
10827
|
+
],
|
|
10828
|
+
setTeamAccessRestrictions: [
|
|
10829
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
10830
|
+
{},
|
|
10831
|
+
{ mapToData: "teams" }
|
|
10832
|
+
],
|
|
10833
|
+
setUserAccessRestrictions: [
|
|
10834
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
10835
|
+
{},
|
|
10836
|
+
{ mapToData: "users" }
|
|
10837
|
+
],
|
|
10838
|
+
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
10839
|
+
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
10840
|
+
update: ["PATCH /repos/{owner}/{repo}"],
|
|
10841
|
+
updateBranchProtection: [
|
|
10842
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
10843
|
+
],
|
|
10844
|
+
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
10845
|
+
updateDeploymentBranchPolicy: [
|
|
10846
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
10847
|
+
],
|
|
10848
|
+
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
10849
|
+
updateInvitation: [
|
|
10850
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10851
|
+
],
|
|
10852
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
10853
|
+
updatePullRequestReviewProtection: [
|
|
10854
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
10855
|
+
],
|
|
10856
|
+
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
10857
|
+
updateReleaseAsset: [
|
|
10858
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
10859
|
+
],
|
|
10860
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
10861
|
+
updateStatusCheckPotection: [
|
|
10862
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
10863
|
+
{},
|
|
10864
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
10865
|
+
],
|
|
10866
|
+
updateStatusCheckProtection: [
|
|
10867
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
10868
|
+
],
|
|
10869
|
+
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
10870
|
+
updateWebhookConfigForRepo: [
|
|
10871
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10872
|
+
],
|
|
10873
|
+
uploadReleaseAsset: [
|
|
10874
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
10875
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
10876
|
+
]
|
|
10877
|
+
},
|
|
10878
|
+
search: {
|
|
10879
|
+
code: ["GET /search/code"],
|
|
10880
|
+
commits: ["GET /search/commits"],
|
|
10881
|
+
issuesAndPullRequests: ["GET /search/issues"],
|
|
10882
|
+
labels: ["GET /search/labels"],
|
|
10883
|
+
repos: ["GET /search/repositories"],
|
|
10884
|
+
topics: ["GET /search/topics"],
|
|
10885
|
+
users: ["GET /search/users"]
|
|
10886
|
+
},
|
|
10887
|
+
secretScanning: {
|
|
10888
|
+
createPushProtectionBypass: [
|
|
10889
|
+
"POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
10890
|
+
],
|
|
10891
|
+
getAlert: [
|
|
10892
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10893
|
+
],
|
|
10894
|
+
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
|
10895
|
+
listAlertsForEnterprise: [
|
|
10896
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
10897
|
+
],
|
|
10898
|
+
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
10899
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
10900
|
+
listLocationsForAlert: [
|
|
10901
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
10902
|
+
],
|
|
10903
|
+
updateAlert: [
|
|
10904
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10905
|
+
]
|
|
10906
|
+
},
|
|
10907
|
+
securityAdvisories: {
|
|
10908
|
+
createFork: [
|
|
10909
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
10910
|
+
],
|
|
10911
|
+
createPrivateVulnerabilityReport: [
|
|
10912
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
10913
|
+
],
|
|
10914
|
+
createRepositoryAdvisory: [
|
|
10915
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
10916
|
+
],
|
|
10917
|
+
createRepositoryAdvisoryCveRequest: [
|
|
10918
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
10919
|
+
],
|
|
10920
|
+
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
|
10921
|
+
getRepositoryAdvisory: [
|
|
10922
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10923
|
+
],
|
|
10924
|
+
listGlobalAdvisories: ["GET /advisories"],
|
|
10925
|
+
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
|
10926
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
10927
|
+
updateRepositoryAdvisory: [
|
|
10928
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10929
|
+
]
|
|
10930
|
+
},
|
|
10931
|
+
teams: {
|
|
10932
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
10933
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10934
|
+
],
|
|
10935
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
10936
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10937
|
+
],
|
|
10938
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
10939
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10940
|
+
],
|
|
10941
|
+
checkPermissionsForProjectInOrg: [
|
|
10942
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10943
|
+
],
|
|
10944
|
+
checkPermissionsForRepoInOrg: [
|
|
10945
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10946
|
+
],
|
|
10947
|
+
create: ["POST /orgs/{org}/teams"],
|
|
10948
|
+
createDiscussionCommentInOrg: [
|
|
10949
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10950
|
+
],
|
|
10951
|
+
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
10952
|
+
deleteDiscussionCommentInOrg: [
|
|
10953
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10954
|
+
],
|
|
10955
|
+
deleteDiscussionInOrg: [
|
|
10956
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10957
|
+
],
|
|
10958
|
+
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
10959
|
+
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
10960
|
+
getDiscussionCommentInOrg: [
|
|
10961
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10962
|
+
],
|
|
10963
|
+
getDiscussionInOrg: [
|
|
10964
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10965
|
+
],
|
|
10966
|
+
getMembershipForUserInOrg: [
|
|
10967
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10968
|
+
],
|
|
10969
|
+
list: ["GET /orgs/{org}/teams"],
|
|
10970
|
+
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
10971
|
+
listDiscussionCommentsInOrg: [
|
|
10972
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10973
|
+
],
|
|
10974
|
+
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
10975
|
+
listForAuthenticatedUser: ["GET /user/teams"],
|
|
10976
|
+
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
10977
|
+
listPendingInvitationsInOrg: [
|
|
10978
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
10979
|
+
],
|
|
10980
|
+
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
10981
|
+
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
10982
|
+
removeMembershipForUserInOrg: [
|
|
10983
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10984
|
+
],
|
|
10985
|
+
removeProjectInOrg: [
|
|
10986
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10987
|
+
],
|
|
10988
|
+
removeRepoInOrg: [
|
|
10989
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10990
|
+
],
|
|
10991
|
+
updateDiscussionCommentInOrg: [
|
|
10992
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10993
|
+
],
|
|
10994
|
+
updateDiscussionInOrg: [
|
|
10995
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10996
|
+
],
|
|
10997
|
+
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
10998
|
+
},
|
|
10999
|
+
users: {
|
|
11000
|
+
addEmailForAuthenticated: [
|
|
11001
|
+
"POST /user/emails",
|
|
11002
|
+
{},
|
|
11003
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
11004
|
+
],
|
|
11005
|
+
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
11006
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
11007
|
+
block: ["PUT /user/blocks/{username}"],
|
|
11008
|
+
checkBlocked: ["GET /user/blocks/{username}"],
|
|
11009
|
+
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
11010
|
+
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
11011
|
+
createGpgKeyForAuthenticated: [
|
|
11012
|
+
"POST /user/gpg_keys",
|
|
11013
|
+
{},
|
|
11014
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
11015
|
+
],
|
|
11016
|
+
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
11017
|
+
createPublicSshKeyForAuthenticated: [
|
|
11018
|
+
"POST /user/keys",
|
|
11019
|
+
{},
|
|
11020
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
11021
|
+
],
|
|
11022
|
+
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
11023
|
+
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
11024
|
+
deleteEmailForAuthenticated: [
|
|
11025
|
+
"DELETE /user/emails",
|
|
11026
|
+
{},
|
|
11027
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
11028
|
+
],
|
|
11029
|
+
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
11030
|
+
deleteGpgKeyForAuthenticated: [
|
|
11031
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
11032
|
+
{},
|
|
11033
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
11034
|
+
],
|
|
11035
|
+
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
11036
|
+
deletePublicSshKeyForAuthenticated: [
|
|
11037
|
+
"DELETE /user/keys/{key_id}",
|
|
11038
|
+
{},
|
|
11039
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
11040
|
+
],
|
|
11041
|
+
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
11042
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
11043
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
11044
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
11045
|
+
],
|
|
11046
|
+
follow: ["PUT /user/following/{username}"],
|
|
11047
|
+
getAuthenticated: ["GET /user"],
|
|
11048
|
+
getById: ["GET /user/{account_id}"],
|
|
11049
|
+
getByUsername: ["GET /users/{username}"],
|
|
11050
|
+
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
11051
|
+
getGpgKeyForAuthenticated: [
|
|
11052
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
11053
|
+
{},
|
|
11054
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
11055
|
+
],
|
|
11056
|
+
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
11057
|
+
getPublicSshKeyForAuthenticated: [
|
|
11058
|
+
"GET /user/keys/{key_id}",
|
|
11059
|
+
{},
|
|
11060
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
11061
|
+
],
|
|
11062
|
+
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
11063
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
11064
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
11065
|
+
],
|
|
11066
|
+
list: ["GET /users"],
|
|
11067
|
+
listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
|
|
11068
|
+
listBlockedByAuthenticated: [
|
|
11069
|
+
"GET /user/blocks",
|
|
11070
|
+
{},
|
|
11071
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
11072
|
+
],
|
|
11073
|
+
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
11074
|
+
listEmailsForAuthenticated: [
|
|
11075
|
+
"GET /user/emails",
|
|
11076
|
+
{},
|
|
11077
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
11078
|
+
],
|
|
11079
|
+
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
11080
|
+
listFollowedByAuthenticated: [
|
|
11081
|
+
"GET /user/following",
|
|
11082
|
+
{},
|
|
11083
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
11084
|
+
],
|
|
11085
|
+
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
11086
|
+
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
11087
|
+
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
11088
|
+
listFollowingForUser: ["GET /users/{username}/following"],
|
|
11089
|
+
listGpgKeysForAuthenticated: [
|
|
11090
|
+
"GET /user/gpg_keys",
|
|
11091
|
+
{},
|
|
11092
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
11093
|
+
],
|
|
11094
|
+
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
11095
|
+
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
11096
|
+
listPublicEmailsForAuthenticated: [
|
|
11097
|
+
"GET /user/public_emails",
|
|
11098
|
+
{},
|
|
11099
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
11100
|
+
],
|
|
11101
|
+
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
11102
|
+
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
11103
|
+
listPublicSshKeysForAuthenticated: [
|
|
11104
|
+
"GET /user/keys",
|
|
11105
|
+
{},
|
|
11106
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
11107
|
+
],
|
|
11108
|
+
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
11109
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
11110
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
11111
|
+
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
11112
|
+
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
11113
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
11114
|
+
"PATCH /user/email/visibility",
|
|
11115
|
+
{},
|
|
11116
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
11117
|
+
],
|
|
11118
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
11119
|
+
"PATCH /user/email/visibility"
|
|
11120
|
+
],
|
|
11121
|
+
unblock: ["DELETE /user/blocks/{username}"],
|
|
11122
|
+
unfollow: ["DELETE /user/following/{username}"],
|
|
11123
|
+
updateAuthenticated: ["PATCH /user"]
|
|
11124
|
+
}
|
|
11125
|
+
};
|
|
11126
|
+
var endpoints_default = Endpoints;
|
|
11127
|
+
|
|
11128
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
11129
|
+
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
11130
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
11131
|
+
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
11132
|
+
const [route, defaults2, decorations] = endpoint2;
|
|
11133
|
+
const [method, url] = route.split(/ /);
|
|
11134
|
+
const endpointDefaults = Object.assign(
|
|
11135
|
+
{
|
|
11136
|
+
method,
|
|
11137
|
+
url
|
|
11138
|
+
},
|
|
11139
|
+
defaults2
|
|
11140
|
+
);
|
|
11141
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
11142
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
11143
|
+
}
|
|
11144
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
11145
|
+
scope,
|
|
11146
|
+
methodName,
|
|
11147
|
+
endpointDefaults,
|
|
11148
|
+
decorations
|
|
11149
|
+
});
|
|
11150
|
+
}
|
|
11151
|
+
}
|
|
11152
|
+
var handler = {
|
|
11153
|
+
has({ scope }, methodName) {
|
|
11154
|
+
return endpointMethodsMap.get(scope).has(methodName);
|
|
11155
|
+
},
|
|
11156
|
+
getOwnPropertyDescriptor(target, methodName) {
|
|
11157
|
+
return {
|
|
11158
|
+
value: this.get(target, methodName),
|
|
11159
|
+
// ensures method is in the cache
|
|
11160
|
+
configurable: true,
|
|
11161
|
+
writable: true,
|
|
11162
|
+
enumerable: true
|
|
11163
|
+
};
|
|
11164
|
+
},
|
|
11165
|
+
defineProperty(target, methodName, descriptor) {
|
|
11166
|
+
Object.defineProperty(target.cache, methodName, descriptor);
|
|
11167
|
+
return true;
|
|
11168
|
+
},
|
|
11169
|
+
deleteProperty(target, methodName) {
|
|
11170
|
+
delete target.cache[methodName];
|
|
11171
|
+
return true;
|
|
11172
|
+
},
|
|
11173
|
+
ownKeys({ scope }) {
|
|
11174
|
+
return [...endpointMethodsMap.get(scope).keys()];
|
|
11175
|
+
},
|
|
11176
|
+
set(target, methodName, value) {
|
|
11177
|
+
return target.cache[methodName] = value;
|
|
11178
|
+
},
|
|
11179
|
+
get({ octokit, scope, cache: cache2 }, methodName) {
|
|
11180
|
+
if (cache2[methodName]) {
|
|
11181
|
+
return cache2[methodName];
|
|
11182
|
+
}
|
|
11183
|
+
const method = endpointMethodsMap.get(scope).get(methodName);
|
|
11184
|
+
if (!method) {
|
|
11185
|
+
return void 0;
|
|
11186
|
+
}
|
|
11187
|
+
const { endpointDefaults, decorations } = method;
|
|
11188
|
+
if (decorations) {
|
|
11189
|
+
cache2[methodName] = decorate(
|
|
11190
|
+
octokit,
|
|
11191
|
+
scope,
|
|
11192
|
+
methodName,
|
|
11193
|
+
endpointDefaults,
|
|
11194
|
+
decorations
|
|
11195
|
+
);
|
|
11196
|
+
} else {
|
|
11197
|
+
cache2[methodName] = octokit.request.defaults(endpointDefaults);
|
|
11198
|
+
}
|
|
11199
|
+
return cache2[methodName];
|
|
11200
|
+
}
|
|
11201
|
+
};
|
|
11202
|
+
function endpointsToMethods(octokit) {
|
|
11203
|
+
const newMethods = {};
|
|
11204
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
11205
|
+
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
|
11206
|
+
}
|
|
11207
|
+
return newMethods;
|
|
11208
|
+
}
|
|
11209
|
+
function decorate(octokit, scope, methodName, defaults2, decorations) {
|
|
11210
|
+
const requestWithDefaults = octokit.request.defaults(defaults2);
|
|
11211
|
+
function withDecorations(...args) {
|
|
11212
|
+
let options = requestWithDefaults.endpoint.merge(...args);
|
|
11213
|
+
if (decorations.mapToData) {
|
|
11214
|
+
options = Object.assign({}, options, {
|
|
11215
|
+
data: options[decorations.mapToData],
|
|
11216
|
+
[decorations.mapToData]: void 0
|
|
11217
|
+
});
|
|
11218
|
+
return requestWithDefaults(options);
|
|
11219
|
+
}
|
|
11220
|
+
if (decorations.renamed) {
|
|
11221
|
+
const [newScope, newMethodName] = decorations.renamed;
|
|
11222
|
+
octokit.log.warn(
|
|
11223
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
11224
|
+
);
|
|
11225
|
+
}
|
|
11226
|
+
if (decorations.deprecated) {
|
|
11227
|
+
octokit.log.warn(decorations.deprecated);
|
|
11228
|
+
}
|
|
11229
|
+
if (decorations.renamedParameters) {
|
|
11230
|
+
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
11231
|
+
for (const [name, alias] of Object.entries(
|
|
11232
|
+
decorations.renamedParameters
|
|
11233
|
+
)) {
|
|
11234
|
+
if (name in options2) {
|
|
11235
|
+
octokit.log.warn(
|
|
11236
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
11237
|
+
);
|
|
11238
|
+
if (!(alias in options2)) {
|
|
11239
|
+
options2[alias] = options2[name];
|
|
11240
|
+
}
|
|
11241
|
+
delete options2[name];
|
|
11242
|
+
}
|
|
11243
|
+
}
|
|
11244
|
+
return requestWithDefaults(options2);
|
|
11245
|
+
}
|
|
11246
|
+
return requestWithDefaults(...args);
|
|
11247
|
+
}
|
|
11248
|
+
return Object.assign(withDecorations, requestWithDefaults);
|
|
11249
|
+
}
|
|
11250
|
+
|
|
11251
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
11252
|
+
function restEndpointMethods(octokit) {
|
|
11253
|
+
const api = endpointsToMethods(octokit);
|
|
11254
|
+
return {
|
|
11255
|
+
rest: api
|
|
11256
|
+
};
|
|
11257
|
+
}
|
|
11258
|
+
restEndpointMethods.VERSION = VERSION7;
|
|
11259
|
+
function legacyRestEndpointMethods(octokit) {
|
|
11260
|
+
const api = endpointsToMethods(octokit);
|
|
11261
|
+
return {
|
|
11262
|
+
...api,
|
|
11263
|
+
rest: api
|
|
11264
|
+
};
|
|
11265
|
+
}
|
|
11266
|
+
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
11267
|
+
|
|
11268
|
+
// ../../node_modules/.pnpm/@octokit+rest@20.1.2/node_modules/@octokit/rest/dist-web/index.js
|
|
11269
|
+
var VERSION8 = "20.1.2";
|
|
11270
|
+
var Octokit2 = Octokit.plugin(
|
|
11271
|
+
requestLog,
|
|
11272
|
+
legacyRestEndpointMethods,
|
|
11273
|
+
paginateRest
|
|
11274
|
+
).defaults({
|
|
11275
|
+
userAgent: `octokit-rest.js/${VERSION8}`
|
|
11276
|
+
});
|
|
11277
|
+
|
|
7546
11278
|
// src/github/GitHub.ts
|
|
7547
|
-
var import_rest = require("@octokit/rest");
|
|
7548
11279
|
var GitHub = class {
|
|
7549
11280
|
githubConfig;
|
|
7550
11281
|
constructor({
|
|
@@ -7615,7 +11346,7 @@ var GitHub = class {
|
|
|
7615
11346
|
await this.restoreFiles(repository, fernIgnoreFiles);
|
|
7616
11347
|
await repository.commit("SDK Generation");
|
|
7617
11348
|
await repository.push();
|
|
7618
|
-
const octokit = new
|
|
11349
|
+
const octokit = new Octokit2({
|
|
7619
11350
|
auth: this.githubConfig.token
|
|
7620
11351
|
});
|
|
7621
11352
|
const parsedRepo = parseRepository(this.githubConfig.uri);
|