@cloudsnorkel/cdk-github-runners 0.10.5 → 0.10.7
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/.jsii +120 -120
- package/README.md +1 -1
- package/assets/delete-failed-runner.lambda/index.js +2117 -972
- package/assets/docker-images/codebuild/linux-arm64/Dockerfile +1 -2
- package/assets/docker-images/codebuild/linux-x64/Dockerfile +1 -2
- package/assets/docker-images/fargate/linux-arm64/Dockerfile +1 -2
- package/assets/docker-images/fargate/linux-x64/Dockerfile +1 -2
- package/assets/idle-runner-repear.lambda/index.js +2113 -968
- package/assets/image-builders/aws-image-builder/versioner.lambda/index.js +118 -54
- package/assets/setup.lambda/index.html +13 -13
- package/assets/setup.lambda/index.js +1552 -616
- package/assets/status.lambda/index.js +704 -432
- package/assets/token-retriever.lambda/index.js +2115 -970
- package/assets/webhook-handler.lambda/index.js +10 -8
- package/lib/access.js +1 -1
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +9 -9
- package/lib/image-builders/aws-image-builder/deprecated/common.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/common.js +10 -10
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +11 -12
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/components.js +3 -4
- package/lib/image-builders/static.js +1 -1
- package/lib/providers/codebuild.js +7 -5
- package/lib/providers/common.d.ts +2 -1
- package/lib/providers/common.js +5 -6
- package/lib/providers/ec2.d.ts +1 -0
- package/lib/providers/ec2.js +16 -11
- package/lib/providers/ecs.js +12 -5
- package/lib/providers/fargate.js +6 -3
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/lib/status.lambda.js +12 -7
- package/lib/utils.d.ts +19 -1
- package/lib/utils.js +48 -2
- package/lib/webhook-handler.lambda.js +11 -9
- package/package.json +12 -11
|
@@ -46,6 +46,7 @@ var require_dist_node = __commonJS({
|
|
|
46
46
|
// node_modules/before-after-hook/lib/register.js
|
|
47
47
|
var require_register = __commonJS({
|
|
48
48
|
"node_modules/before-after-hook/lib/register.js"(exports2, module2) {
|
|
49
|
+
"use strict";
|
|
49
50
|
module2.exports = register;
|
|
50
51
|
function register(state, name, method, options) {
|
|
51
52
|
if (typeof method !== "function") {
|
|
@@ -74,6 +75,7 @@ var require_register = __commonJS({
|
|
|
74
75
|
// node_modules/before-after-hook/lib/add.js
|
|
75
76
|
var require_add = __commonJS({
|
|
76
77
|
"node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
78
|
+
"use strict";
|
|
77
79
|
module2.exports = addHook;
|
|
78
80
|
function addHook(state, kind, name, hook) {
|
|
79
81
|
var orig = hook;
|
|
@@ -114,6 +116,7 @@ var require_add = __commonJS({
|
|
|
114
116
|
// node_modules/before-after-hook/lib/remove.js
|
|
115
117
|
var require_remove = __commonJS({
|
|
116
118
|
"node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
|
|
119
|
+
"use strict";
|
|
117
120
|
module2.exports = removeHook;
|
|
118
121
|
function removeHook(state, name, method) {
|
|
119
122
|
if (!state.registry[name]) {
|
|
@@ -133,6 +136,7 @@ var require_remove = __commonJS({
|
|
|
133
136
|
// node_modules/before-after-hook/index.js
|
|
134
137
|
var require_before_after_hook = __commonJS({
|
|
135
138
|
"node_modules/before-after-hook/index.js"(exports2, module2) {
|
|
139
|
+
"use strict";
|
|
136
140
|
var register = require_register();
|
|
137
141
|
var addHook = require_add();
|
|
138
142
|
var removeHook = require_remove();
|
|
@@ -215,11 +219,30 @@ var require_is_plain_object = __commonJS({
|
|
|
215
219
|
|
|
216
220
|
// node_modules/@octokit/endpoint/dist-node/index.js
|
|
217
221
|
var require_dist_node2 = __commonJS({
|
|
218
|
-
"node_modules/@octokit/endpoint/dist-node/index.js"(exports2) {
|
|
222
|
+
"node_modules/@octokit/endpoint/dist-node/index.js"(exports2, module2) {
|
|
219
223
|
"use strict";
|
|
220
|
-
Object.defineProperty
|
|
221
|
-
var
|
|
222
|
-
var
|
|
224
|
+
var __defProp2 = Object.defineProperty;
|
|
225
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
226
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
227
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
228
|
+
var __export = (target, all) => {
|
|
229
|
+
for (var name in all)
|
|
230
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
231
|
+
};
|
|
232
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
233
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
234
|
+
for (let key of __getOwnPropNames2(from))
|
|
235
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
236
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
237
|
+
}
|
|
238
|
+
return to;
|
|
239
|
+
};
|
|
240
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
241
|
+
var dist_src_exports = {};
|
|
242
|
+
__export(dist_src_exports, {
|
|
243
|
+
endpoint: () => endpoint
|
|
244
|
+
});
|
|
245
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
223
246
|
function lowercaseKeys(object) {
|
|
224
247
|
if (!object) {
|
|
225
248
|
return {};
|
|
@@ -229,20 +252,17 @@ var require_dist_node2 = __commonJS({
|
|
|
229
252
|
return newObj;
|
|
230
253
|
}, {});
|
|
231
254
|
}
|
|
255
|
+
var import_is_plain_object = require_is_plain_object();
|
|
232
256
|
function mergeDeep(defaults, options) {
|
|
233
257
|
const result = Object.assign({}, defaults);
|
|
234
258
|
Object.keys(options).forEach((key) => {
|
|
235
|
-
if (
|
|
259
|
+
if ((0, import_is_plain_object.isPlainObject)(options[key])) {
|
|
236
260
|
if (!(key in defaults))
|
|
237
|
-
Object.assign(result, {
|
|
238
|
-
[key]: options[key]
|
|
239
|
-
});
|
|
261
|
+
Object.assign(result, { [key]: options[key] });
|
|
240
262
|
else
|
|
241
263
|
result[key] = mergeDeep(defaults[key], options[key]);
|
|
242
264
|
} else {
|
|
243
|
-
Object.assign(result, {
|
|
244
|
-
[key]: options[key]
|
|
245
|
-
});
|
|
265
|
+
Object.assign(result, { [key]: options[key] });
|
|
246
266
|
}
|
|
247
267
|
});
|
|
248
268
|
return result;
|
|
@@ -258,12 +278,7 @@ var require_dist_node2 = __commonJS({
|
|
|
258
278
|
function merge(defaults, route, options) {
|
|
259
279
|
if (typeof route === "string") {
|
|
260
280
|
let [method, url] = route.split(" ");
|
|
261
|
-
options = Object.assign(url ? {
|
|
262
|
-
method,
|
|
263
|
-
url
|
|
264
|
-
} : {
|
|
265
|
-
url: method
|
|
266
|
-
}, options);
|
|
281
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
267
282
|
} else {
|
|
268
283
|
options = Object.assign({}, route);
|
|
269
284
|
}
|
|
@@ -274,7 +289,9 @@ var require_dist_node2 = __commonJS({
|
|
|
274
289
|
if (defaults && defaults.mediaType.previews.length) {
|
|
275
290
|
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter((preview) => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
|
|
276
291
|
}
|
|
277
|
-
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
|
|
292
|
+
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
|
|
293
|
+
(preview) => preview.replace(/-preview/, "")
|
|
294
|
+
);
|
|
278
295
|
return mergedOptions;
|
|
279
296
|
}
|
|
280
297
|
function addQueryParameters(url, parameters) {
|
|
@@ -342,12 +359,16 @@ var require_dist_node2 = __commonJS({
|
|
|
342
359
|
if (modifier && modifier !== "*") {
|
|
343
360
|
value = value.substring(0, parseInt(modifier, 10));
|
|
344
361
|
}
|
|
345
|
-
result.push(
|
|
362
|
+
result.push(
|
|
363
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
364
|
+
);
|
|
346
365
|
} else {
|
|
347
366
|
if (modifier === "*") {
|
|
348
367
|
if (Array.isArray(value)) {
|
|
349
368
|
value.filter(isDefined).forEach(function(value2) {
|
|
350
|
-
result.push(
|
|
369
|
+
result.push(
|
|
370
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
371
|
+
);
|
|
351
372
|
});
|
|
352
373
|
} else {
|
|
353
374
|
Object.keys(value).forEach(function(k) {
|
|
@@ -397,40 +418,50 @@ var require_dist_node2 = __commonJS({
|
|
|
397
418
|
}
|
|
398
419
|
function expand(template, context) {
|
|
399
420
|
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
400
|
-
return template.replace(
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
if (operator
|
|
415
|
-
separator = "
|
|
416
|
-
|
|
417
|
-
|
|
421
|
+
return template.replace(
|
|
422
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
423
|
+
function(_, expression, literal) {
|
|
424
|
+
if (expression) {
|
|
425
|
+
let operator = "";
|
|
426
|
+
const values = [];
|
|
427
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
428
|
+
operator = expression.charAt(0);
|
|
429
|
+
expression = expression.substr(1);
|
|
430
|
+
}
|
|
431
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
432
|
+
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
433
|
+
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
|
434
|
+
});
|
|
435
|
+
if (operator && operator !== "+") {
|
|
436
|
+
var separator = ",";
|
|
437
|
+
if (operator === "?") {
|
|
438
|
+
separator = "&";
|
|
439
|
+
} else if (operator !== "#") {
|
|
440
|
+
separator = operator;
|
|
441
|
+
}
|
|
442
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
443
|
+
} else {
|
|
444
|
+
return values.join(",");
|
|
418
445
|
}
|
|
419
|
-
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
420
446
|
} else {
|
|
421
|
-
return
|
|
447
|
+
return encodeReserved(literal);
|
|
422
448
|
}
|
|
423
|
-
} else {
|
|
424
|
-
return encodeReserved(literal);
|
|
425
449
|
}
|
|
426
|
-
|
|
450
|
+
);
|
|
427
451
|
}
|
|
428
452
|
function parse(options) {
|
|
429
453
|
let method = options.method.toUpperCase();
|
|
430
454
|
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
431
455
|
let headers = Object.assign({}, options.headers);
|
|
432
456
|
let body;
|
|
433
|
-
let parameters = omit(options, [
|
|
457
|
+
let parameters = omit(options, [
|
|
458
|
+
"method",
|
|
459
|
+
"baseUrl",
|
|
460
|
+
"url",
|
|
461
|
+
"headers",
|
|
462
|
+
"request",
|
|
463
|
+
"mediaType"
|
|
464
|
+
]);
|
|
434
465
|
const urlVariableNames = extractUrlVariableNames(url);
|
|
435
466
|
url = parseUrl(url).expand(parameters);
|
|
436
467
|
if (!/^http/.test(url)) {
|
|
@@ -441,7 +472,12 @@ var require_dist_node2 = __commonJS({
|
|
|
441
472
|
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
442
473
|
if (!isBinaryRequest) {
|
|
443
474
|
if (options.mediaType.format) {
|
|
444
|
-
headers.accept = headers.accept.split(/,/).map(
|
|
475
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
476
|
+
(preview) => preview.replace(
|
|
477
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
478
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
479
|
+
)
|
|
480
|
+
).join(",");
|
|
445
481
|
}
|
|
446
482
|
if (options.mediaType.previews.length) {
|
|
447
483
|
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
@@ -468,15 +504,11 @@ var require_dist_node2 = __commonJS({
|
|
|
468
504
|
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
469
505
|
body = "";
|
|
470
506
|
}
|
|
471
|
-
return Object.assign(
|
|
472
|
-
method,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
body
|
|
477
|
-
} : null, options.request ? {
|
|
478
|
-
request: options.request
|
|
479
|
-
} : null);
|
|
507
|
+
return Object.assign(
|
|
508
|
+
{ method, url, headers },
|
|
509
|
+
typeof body !== "undefined" ? { body } : null,
|
|
510
|
+
options.request ? { request: options.request } : null
|
|
511
|
+
);
|
|
480
512
|
}
|
|
481
513
|
function endpointWithDefaults(defaults, route, options) {
|
|
482
514
|
return parse(merge(defaults, route, options));
|
|
@@ -491,8 +523,9 @@ var require_dist_node2 = __commonJS({
|
|
|
491
523
|
parse
|
|
492
524
|
});
|
|
493
525
|
}
|
|
494
|
-
var
|
|
495
|
-
var
|
|
526
|
+
var import_universal_user_agent = require_dist_node();
|
|
527
|
+
var VERSION = "7.0.6";
|
|
528
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
|
496
529
|
var DEFAULTS = {
|
|
497
530
|
method: "GET",
|
|
498
531
|
baseUrl: "https://api.github.com",
|
|
@@ -506,7 +539,6 @@ var require_dist_node2 = __commonJS({
|
|
|
506
539
|
}
|
|
507
540
|
};
|
|
508
541
|
var endpoint = withDefaults(null, DEFAULTS);
|
|
509
|
-
exports2.endpoint = endpoint;
|
|
510
542
|
}
|
|
511
543
|
});
|
|
512
544
|
|
|
@@ -6010,7 +6042,7 @@ var require_lib3 = __commonJS({
|
|
|
6010
6042
|
var Readable = Stream.Readable;
|
|
6011
6043
|
var BUFFER = Symbol("buffer");
|
|
6012
6044
|
var TYPE = Symbol("type");
|
|
6013
|
-
var Blob = class {
|
|
6045
|
+
var Blob = class _Blob {
|
|
6014
6046
|
constructor() {
|
|
6015
6047
|
this[TYPE] = "";
|
|
6016
6048
|
const blobParts = arguments[0];
|
|
@@ -6029,7 +6061,7 @@ var require_lib3 = __commonJS({
|
|
|
6029
6061
|
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
|
6030
6062
|
} else if (element instanceof ArrayBuffer) {
|
|
6031
6063
|
buffer = Buffer.from(element);
|
|
6032
|
-
} else if (element instanceof
|
|
6064
|
+
} else if (element instanceof _Blob) {
|
|
6033
6065
|
buffer = element[BUFFER];
|
|
6034
6066
|
} else {
|
|
6035
6067
|
buffer = Buffer.from(typeof element === "string" ? element : String(element));
|
|
@@ -6091,7 +6123,7 @@ var require_lib3 = __commonJS({
|
|
|
6091
6123
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
6092
6124
|
const buffer = this[BUFFER];
|
|
6093
6125
|
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
|
6094
|
-
const blob = new
|
|
6126
|
+
const blob = new _Blob([], { type: arguments[2] });
|
|
6095
6127
|
blob[BUFFER] = slicedBuffer;
|
|
6096
6128
|
return blob;
|
|
6097
6129
|
}
|
|
@@ -6468,7 +6500,7 @@ var require_lib3 = __commonJS({
|
|
|
6468
6500
|
return void 0;
|
|
6469
6501
|
}
|
|
6470
6502
|
var MAP = Symbol("map");
|
|
6471
|
-
var Headers = class {
|
|
6503
|
+
var Headers = class _Headers {
|
|
6472
6504
|
/**
|
|
6473
6505
|
* Headers class
|
|
6474
6506
|
*
|
|
@@ -6478,7 +6510,7 @@ var require_lib3 = __commonJS({
|
|
|
6478
6510
|
constructor() {
|
|
6479
6511
|
let init = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
|
|
6480
6512
|
this[MAP] = /* @__PURE__ */ Object.create(null);
|
|
6481
|
-
if (init instanceof
|
|
6513
|
+
if (init instanceof _Headers) {
|
|
6482
6514
|
const rawHeaders = init.raw();
|
|
6483
6515
|
const headerNames = Object.keys(rawHeaders);
|
|
6484
6516
|
for (const headerName of headerNames) {
|
|
@@ -6747,7 +6779,7 @@ var require_lib3 = __commonJS({
|
|
|
6747
6779
|
}
|
|
6748
6780
|
var INTERNALS$1 = Symbol("Response internals");
|
|
6749
6781
|
var STATUS_CODES = http.STATUS_CODES;
|
|
6750
|
-
var Response = class {
|
|
6782
|
+
var Response = class _Response {
|
|
6751
6783
|
constructor() {
|
|
6752
6784
|
let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
6753
6785
|
let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -6795,7 +6827,7 @@ var require_lib3 = __commonJS({
|
|
|
6795
6827
|
* @return Response
|
|
6796
6828
|
*/
|
|
6797
6829
|
clone() {
|
|
6798
|
-
return new
|
|
6830
|
+
return new _Response(clone(this), {
|
|
6799
6831
|
url: this.url,
|
|
6800
6832
|
status: this.status,
|
|
6801
6833
|
statusText: this.statusText,
|
|
@@ -6839,7 +6871,7 @@ var require_lib3 = __commonJS({
|
|
|
6839
6871
|
const proto = signal && typeof signal === "object" && Object.getPrototypeOf(signal);
|
|
6840
6872
|
return !!(proto && proto.constructor.name === "AbortSignal");
|
|
6841
6873
|
}
|
|
6842
|
-
var Request = class {
|
|
6874
|
+
var Request = class _Request {
|
|
6843
6875
|
constructor(input) {
|
|
6844
6876
|
let init = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6845
6877
|
let parsedURL;
|
|
@@ -6909,7 +6941,7 @@ var require_lib3 = __commonJS({
|
|
|
6909
6941
|
* @return Request
|
|
6910
6942
|
*/
|
|
6911
6943
|
clone() {
|
|
6912
|
-
return new
|
|
6944
|
+
return new _Request(this);
|
|
6913
6945
|
}
|
|
6914
6946
|
};
|
|
6915
6947
|
Body.mixIn(Request.prototype);
|
|
@@ -7210,7 +7242,7 @@ var require_lib3 = __commonJS({
|
|
|
7210
7242
|
const headers = response2.headers;
|
|
7211
7243
|
if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) {
|
|
7212
7244
|
response2.once("close", function(hadError) {
|
|
7213
|
-
const hasDataListener = socket.listenerCount("data") > 0;
|
|
7245
|
+
const hasDataListener = socket && socket.listenerCount("data") > 0;
|
|
7214
7246
|
if (hasDataListener && !hadError) {
|
|
7215
7247
|
const err = new Error("Premature close");
|
|
7216
7248
|
err.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
@@ -7263,6 +7295,7 @@ var require_dist_node3 = __commonJS({
|
|
|
7263
7295
|
// node_modules/wrappy/wrappy.js
|
|
7264
7296
|
var require_wrappy = __commonJS({
|
|
7265
7297
|
"node_modules/wrappy/wrappy.js"(exports2, module2) {
|
|
7298
|
+
"use strict";
|
|
7266
7299
|
module2.exports = wrappy;
|
|
7267
7300
|
function wrappy(fn, cb) {
|
|
7268
7301
|
if (fn && cb)
|
|
@@ -7294,6 +7327,7 @@ var require_wrappy = __commonJS({
|
|
|
7294
7327
|
// node_modules/once/once.js
|
|
7295
7328
|
var require_once = __commonJS({
|
|
7296
7329
|
"node_modules/once/once.js"(exports2, module2) {
|
|
7330
|
+
"use strict";
|
|
7297
7331
|
var wrappy = require_wrappy();
|
|
7298
7332
|
module2.exports = wrappy(once);
|
|
7299
7333
|
module2.exports.strict = wrappy(onceStrict);
|
|
@@ -7428,7 +7462,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7428
7462
|
module2.exports = __toCommonJS(dist_src_exports);
|
|
7429
7463
|
var import_endpoint = require_dist_node2();
|
|
7430
7464
|
var import_universal_user_agent = require_dist_node();
|
|
7431
|
-
var VERSION = "6.2.
|
|
7465
|
+
var VERSION = "6.2.8";
|
|
7432
7466
|
var import_is_plain_object = require_is_plain_object();
|
|
7433
7467
|
var import_node_fetch = __toESM2(require_lib3());
|
|
7434
7468
|
var import_request_error = require_dist_node4();
|
|
@@ -7721,9 +7755,30 @@ var require_dist_node6 = __commonJS({
|
|
|
7721
7755
|
|
|
7722
7756
|
// node_modules/@octokit/auth-token/dist-node/index.js
|
|
7723
7757
|
var require_dist_node7 = __commonJS({
|
|
7724
|
-
"node_modules/@octokit/auth-token/dist-node/index.js"(exports2) {
|
|
7758
|
+
"node_modules/@octokit/auth-token/dist-node/index.js"(exports2, module2) {
|
|
7725
7759
|
"use strict";
|
|
7726
|
-
Object.defineProperty
|
|
7760
|
+
var __defProp2 = Object.defineProperty;
|
|
7761
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7762
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7763
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7764
|
+
var __export = (target, all) => {
|
|
7765
|
+
for (var name in all)
|
|
7766
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7767
|
+
};
|
|
7768
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7769
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7770
|
+
for (let key of __getOwnPropNames2(from))
|
|
7771
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7772
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7773
|
+
}
|
|
7774
|
+
return to;
|
|
7775
|
+
};
|
|
7776
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7777
|
+
var dist_src_exports = {};
|
|
7778
|
+
__export(dist_src_exports, {
|
|
7779
|
+
createTokenAuth: () => createTokenAuth
|
|
7780
|
+
});
|
|
7781
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7727
7782
|
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
7728
7783
|
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
7729
7784
|
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
@@ -7745,7 +7800,10 @@ var require_dist_node7 = __commonJS({
|
|
|
7745
7800
|
return `token ${token}`;
|
|
7746
7801
|
}
|
|
7747
7802
|
async function hook(token, request, route, parameters) {
|
|
7748
|
-
const endpoint = request.endpoint.merge(
|
|
7803
|
+
const endpoint = request.endpoint.merge(
|
|
7804
|
+
route,
|
|
7805
|
+
parameters
|
|
7806
|
+
);
|
|
7749
7807
|
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
|
7750
7808
|
return request(endpoint);
|
|
7751
7809
|
}
|
|
@@ -7754,14 +7812,15 @@ var require_dist_node7 = __commonJS({
|
|
|
7754
7812
|
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
7755
7813
|
}
|
|
7756
7814
|
if (typeof token !== "string") {
|
|
7757
|
-
throw new Error(
|
|
7815
|
+
throw new Error(
|
|
7816
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
7817
|
+
);
|
|
7758
7818
|
}
|
|
7759
7819
|
token = token.replace(/^(token|bearer) +/i, "");
|
|
7760
7820
|
return Object.assign(auth.bind(null, token), {
|
|
7761
7821
|
hook: hook.bind(null, token)
|
|
7762
7822
|
});
|
|
7763
7823
|
};
|
|
7764
|
-
exports2.createTokenAuth = createTokenAuth;
|
|
7765
7824
|
}
|
|
7766
7825
|
});
|
|
7767
7826
|
|
|
@@ -7796,7 +7855,7 @@ var require_dist_node8 = __commonJS({
|
|
|
7796
7855
|
var import_request = require_dist_node5();
|
|
7797
7856
|
var import_graphql = require_dist_node6();
|
|
7798
7857
|
var import_auth_token = require_dist_node7();
|
|
7799
|
-
var VERSION = "4.2.
|
|
7858
|
+
var VERSION = "4.2.4";
|
|
7800
7859
|
var Octokit2 = class {
|
|
7801
7860
|
static defaults(defaults) {
|
|
7802
7861
|
const OctokitWithDefaults = class extends this {
|
|
@@ -8313,166 +8372,401 @@ var require_dist_node10 = __commonJS({
|
|
|
8313
8372
|
|
|
8314
8373
|
// node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js
|
|
8315
8374
|
var require_dist_node11 = __commonJS({
|
|
8316
|
-
"node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js"(exports2) {
|
|
8375
|
+
"node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js"(exports2, module2) {
|
|
8317
8376
|
"use strict";
|
|
8318
|
-
Object.defineProperty
|
|
8377
|
+
var __defProp2 = Object.defineProperty;
|
|
8378
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8379
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8380
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8381
|
+
var __export = (target, all) => {
|
|
8382
|
+
for (var name in all)
|
|
8383
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8384
|
+
};
|
|
8385
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
8386
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8387
|
+
for (let key of __getOwnPropNames2(from))
|
|
8388
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8389
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8390
|
+
}
|
|
8391
|
+
return to;
|
|
8392
|
+
};
|
|
8393
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8394
|
+
var dist_src_exports = {};
|
|
8395
|
+
__export(dist_src_exports, {
|
|
8396
|
+
legacyRestEndpointMethods: () => legacyRestEndpointMethods,
|
|
8397
|
+
restEndpointMethods: () => restEndpointMethods
|
|
8398
|
+
});
|
|
8399
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
8400
|
+
var VERSION = "7.2.3";
|
|
8319
8401
|
var Endpoints = {
|
|
8320
8402
|
actions: {
|
|
8321
|
-
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8403
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
8404
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8405
|
+
],
|
|
8406
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
8407
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8408
|
+
],
|
|
8409
|
+
addSelectedRepoToOrgSecret: [
|
|
8410
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
8411
|
+
],
|
|
8412
|
+
addSelectedRepoToOrgVariable: [
|
|
8413
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
8414
|
+
],
|
|
8415
|
+
addSelectedRepoToRequiredWorkflow: [
|
|
8416
|
+
"PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
8417
|
+
],
|
|
8418
|
+
approveWorkflowRun: [
|
|
8419
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
8420
|
+
],
|
|
8421
|
+
cancelWorkflowRun: [
|
|
8422
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
8423
|
+
],
|
|
8424
|
+
createEnvironmentVariable: [
|
|
8425
|
+
"POST /repositories/{repository_id}/environments/{environment_name}/variables"
|
|
8426
|
+
],
|
|
8427
|
+
createOrUpdateEnvironmentSecret: [
|
|
8428
|
+
"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8429
|
+
],
|
|
8330
8430
|
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
8331
|
-
createOrUpdateRepoSecret: [
|
|
8431
|
+
createOrUpdateRepoSecret: [
|
|
8432
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8433
|
+
],
|
|
8332
8434
|
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
8333
|
-
createRegistrationTokenForOrg: [
|
|
8334
|
-
|
|
8435
|
+
createRegistrationTokenForOrg: [
|
|
8436
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
8437
|
+
],
|
|
8438
|
+
createRegistrationTokenForRepo: [
|
|
8439
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
8440
|
+
],
|
|
8335
8441
|
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
8336
|
-
createRemoveTokenForRepo: [
|
|
8442
|
+
createRemoveTokenForRepo: [
|
|
8443
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
8444
|
+
],
|
|
8337
8445
|
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
8338
8446
|
createRequiredWorkflow: ["POST /orgs/{org}/actions/required_workflows"],
|
|
8339
|
-
createWorkflowDispatch: [
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8447
|
+
createWorkflowDispatch: [
|
|
8448
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
8449
|
+
],
|
|
8450
|
+
deleteActionsCacheById: [
|
|
8451
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
8452
|
+
],
|
|
8453
|
+
deleteActionsCacheByKey: [
|
|
8454
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
8455
|
+
],
|
|
8456
|
+
deleteArtifact: [
|
|
8457
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
8458
|
+
],
|
|
8459
|
+
deleteEnvironmentSecret: [
|
|
8460
|
+
"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8461
|
+
],
|
|
8462
|
+
deleteEnvironmentVariable: [
|
|
8463
|
+
"DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8464
|
+
],
|
|
8345
8465
|
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
8346
8466
|
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
8347
|
-
deleteRepoSecret: [
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8467
|
+
deleteRepoSecret: [
|
|
8468
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8469
|
+
],
|
|
8470
|
+
deleteRepoVariable: [
|
|
8471
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
8472
|
+
],
|
|
8473
|
+
deleteRequiredWorkflow: [
|
|
8474
|
+
"DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8475
|
+
],
|
|
8476
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
8477
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
8478
|
+
],
|
|
8479
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
8480
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
8481
|
+
],
|
|
8352
8482
|
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
8353
|
-
deleteWorkflowRunLogs: [
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8483
|
+
deleteWorkflowRunLogs: [
|
|
8484
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
8485
|
+
],
|
|
8486
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
8487
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
8488
|
+
],
|
|
8489
|
+
disableWorkflow: [
|
|
8490
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
8491
|
+
],
|
|
8492
|
+
downloadArtifact: [
|
|
8493
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
8494
|
+
],
|
|
8495
|
+
downloadJobLogsForWorkflowRun: [
|
|
8496
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
8497
|
+
],
|
|
8498
|
+
downloadWorkflowRunAttemptLogs: [
|
|
8499
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
8500
|
+
],
|
|
8501
|
+
downloadWorkflowRunLogs: [
|
|
8502
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
8503
|
+
],
|
|
8504
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
8505
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
8506
|
+
],
|
|
8507
|
+
enableWorkflow: [
|
|
8508
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
8509
|
+
],
|
|
8510
|
+
generateRunnerJitconfigForOrg: [
|
|
8511
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
8512
|
+
],
|
|
8513
|
+
generateRunnerJitconfigForRepo: [
|
|
8514
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
8515
|
+
],
|
|
8362
8516
|
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
8363
8517
|
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
8364
|
-
getActionsCacheUsageByRepoForOrg: [
|
|
8518
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
8519
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
8520
|
+
],
|
|
8365
8521
|
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
8366
|
-
getAllowedActionsOrganization: [
|
|
8367
|
-
|
|
8522
|
+
getAllowedActionsOrganization: [
|
|
8523
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
8524
|
+
],
|
|
8525
|
+
getAllowedActionsRepository: [
|
|
8526
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
8527
|
+
],
|
|
8368
8528
|
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
8369
|
-
getEnvironmentPublicKey: [
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8529
|
+
getEnvironmentPublicKey: [
|
|
8530
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
|
8531
|
+
],
|
|
8532
|
+
getEnvironmentSecret: [
|
|
8533
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
8534
|
+
],
|
|
8535
|
+
getEnvironmentVariable: [
|
|
8536
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8537
|
+
],
|
|
8538
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
8539
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
8540
|
+
],
|
|
8541
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
8542
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
8543
|
+
],
|
|
8544
|
+
getGithubActionsPermissionsOrganization: [
|
|
8545
|
+
"GET /orgs/{org}/actions/permissions"
|
|
8546
|
+
],
|
|
8547
|
+
getGithubActionsPermissionsRepository: [
|
|
8548
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
8549
|
+
],
|
|
8376
8550
|
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
8377
8551
|
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
8378
8552
|
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
8379
8553
|
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
8380
|
-
getPendingDeploymentsForRun: [
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8554
|
+
getPendingDeploymentsForRun: [
|
|
8555
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
8556
|
+
],
|
|
8557
|
+
getRepoPermissions: [
|
|
8558
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
8559
|
+
{},
|
|
8560
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
8561
|
+
],
|
|
8384
8562
|
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
8385
|
-
getRepoRequiredWorkflow: [
|
|
8386
|
-
|
|
8563
|
+
getRepoRequiredWorkflow: [
|
|
8564
|
+
"GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
|
|
8565
|
+
],
|
|
8566
|
+
getRepoRequiredWorkflowUsage: [
|
|
8567
|
+
"GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
|
|
8568
|
+
],
|
|
8387
8569
|
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
8388
8570
|
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
8389
|
-
getRequiredWorkflow: [
|
|
8390
|
-
|
|
8571
|
+
getRequiredWorkflow: [
|
|
8572
|
+
"GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8573
|
+
],
|
|
8574
|
+
getReviewsForRun: [
|
|
8575
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
8576
|
+
],
|
|
8391
8577
|
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
8392
|
-
getSelfHostedRunnerForRepo: [
|
|
8578
|
+
getSelfHostedRunnerForRepo: [
|
|
8579
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
8580
|
+
],
|
|
8393
8581
|
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
8394
|
-
getWorkflowAccessToRepository: [
|
|
8582
|
+
getWorkflowAccessToRepository: [
|
|
8583
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
8584
|
+
],
|
|
8395
8585
|
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
8396
|
-
getWorkflowRunAttempt: [
|
|
8397
|
-
|
|
8398
|
-
|
|
8586
|
+
getWorkflowRunAttempt: [
|
|
8587
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
8588
|
+
],
|
|
8589
|
+
getWorkflowRunUsage: [
|
|
8590
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
8591
|
+
],
|
|
8592
|
+
getWorkflowUsage: [
|
|
8593
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
8594
|
+
],
|
|
8399
8595
|
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
8400
|
-
listEnvironmentSecrets: [
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8596
|
+
listEnvironmentSecrets: [
|
|
8597
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets"
|
|
8598
|
+
],
|
|
8599
|
+
listEnvironmentVariables: [
|
|
8600
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables"
|
|
8601
|
+
],
|
|
8602
|
+
listJobsForWorkflowRun: [
|
|
8603
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
8604
|
+
],
|
|
8605
|
+
listJobsForWorkflowRunAttempt: [
|
|
8606
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
8607
|
+
],
|
|
8608
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
8609
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8610
|
+
],
|
|
8611
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
8612
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8613
|
+
],
|
|
8406
8614
|
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
8407
8615
|
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
8408
|
-
listRepoOrganizationSecrets: [
|
|
8409
|
-
|
|
8410
|
-
|
|
8616
|
+
listRepoOrganizationSecrets: [
|
|
8617
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
8618
|
+
],
|
|
8619
|
+
listRepoOrganizationVariables: [
|
|
8620
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
8621
|
+
],
|
|
8622
|
+
listRepoRequiredWorkflows: [
|
|
8623
|
+
"GET /repos/{org}/{repo}/actions/required_workflows"
|
|
8624
|
+
],
|
|
8411
8625
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
8412
8626
|
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
8413
8627
|
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
8414
|
-
listRequiredWorkflowRuns: [
|
|
8628
|
+
listRequiredWorkflowRuns: [
|
|
8629
|
+
"GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
|
|
8630
|
+
],
|
|
8415
8631
|
listRequiredWorkflows: ["GET /orgs/{org}/actions/required_workflows"],
|
|
8416
8632
|
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
8417
|
-
listRunnerApplicationsForRepo: [
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8633
|
+
listRunnerApplicationsForRepo: [
|
|
8634
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
8635
|
+
],
|
|
8636
|
+
listSelectedReposForOrgSecret: [
|
|
8637
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
8638
|
+
],
|
|
8639
|
+
listSelectedReposForOrgVariable: [
|
|
8640
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
8641
|
+
],
|
|
8642
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
8643
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
8644
|
+
],
|
|
8645
|
+
listSelectedRepositoriesRequiredWorkflow: [
|
|
8646
|
+
"GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
8647
|
+
],
|
|
8422
8648
|
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
8423
8649
|
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
8424
|
-
listWorkflowRunArtifacts: [
|
|
8425
|
-
|
|
8650
|
+
listWorkflowRunArtifacts: [
|
|
8651
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
8652
|
+
],
|
|
8653
|
+
listWorkflowRuns: [
|
|
8654
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
8655
|
+
],
|
|
8426
8656
|
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
8427
|
-
reRunJobForWorkflowRun: [
|
|
8657
|
+
reRunJobForWorkflowRun: [
|
|
8658
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
8659
|
+
],
|
|
8428
8660
|
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
8429
|
-
reRunWorkflowFailedJobs: [
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8661
|
+
reRunWorkflowFailedJobs: [
|
|
8662
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
8663
|
+
],
|
|
8664
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
8665
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8666
|
+
],
|
|
8667
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
8668
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8669
|
+
],
|
|
8670
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
8671
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
8672
|
+
],
|
|
8673
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
8674
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
8675
|
+
],
|
|
8676
|
+
removeSelectedRepoFromOrgSecret: [
|
|
8677
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
8678
|
+
],
|
|
8679
|
+
removeSelectedRepoFromOrgVariable: [
|
|
8680
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
8681
|
+
],
|
|
8682
|
+
removeSelectedRepoFromRequiredWorkflow: [
|
|
8683
|
+
"DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
8684
|
+
],
|
|
8685
|
+
reviewCustomGatesForRun: [
|
|
8686
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
8687
|
+
],
|
|
8688
|
+
reviewPendingDeploymentsForRun: [
|
|
8689
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
8690
|
+
],
|
|
8691
|
+
setAllowedActionsOrganization: [
|
|
8692
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
8693
|
+
],
|
|
8694
|
+
setAllowedActionsRepository: [
|
|
8695
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
8696
|
+
],
|
|
8697
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
8698
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
8699
|
+
],
|
|
8700
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
8701
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
8702
|
+
],
|
|
8703
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
8704
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
8705
|
+
],
|
|
8706
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
8707
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
8708
|
+
],
|
|
8709
|
+
setGithubActionsPermissionsOrganization: [
|
|
8710
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
8711
|
+
],
|
|
8712
|
+
setGithubActionsPermissionsRepository: [
|
|
8713
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
8714
|
+
],
|
|
8715
|
+
setSelectedReposForOrgSecret: [
|
|
8716
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
8717
|
+
],
|
|
8718
|
+
setSelectedReposForOrgVariable: [
|
|
8719
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
8720
|
+
],
|
|
8721
|
+
setSelectedReposToRequiredWorkflow: [
|
|
8722
|
+
"PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
8723
|
+
],
|
|
8724
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
8725
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
8726
|
+
],
|
|
8727
|
+
setWorkflowAccessToRepository: [
|
|
8728
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
8729
|
+
],
|
|
8730
|
+
updateEnvironmentVariable: [
|
|
8731
|
+
"PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
8732
|
+
],
|
|
8453
8733
|
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
8454
|
-
updateRepoVariable: [
|
|
8455
|
-
|
|
8734
|
+
updateRepoVariable: [
|
|
8735
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
8736
|
+
],
|
|
8737
|
+
updateRequiredWorkflow: [
|
|
8738
|
+
"PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
8739
|
+
]
|
|
8456
8740
|
},
|
|
8457
8741
|
activity: {
|
|
8458
8742
|
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
8459
8743
|
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
8460
|
-
deleteThreadSubscription: [
|
|
8744
|
+
deleteThreadSubscription: [
|
|
8745
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
8746
|
+
],
|
|
8461
8747
|
getFeeds: ["GET /feeds"],
|
|
8462
8748
|
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
8463
8749
|
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
8464
|
-
getThreadSubscriptionForAuthenticatedUser: [
|
|
8750
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
8751
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
8752
|
+
],
|
|
8465
8753
|
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
8466
8754
|
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
8467
|
-
listOrgEventsForAuthenticatedUser: [
|
|
8755
|
+
listOrgEventsForAuthenticatedUser: [
|
|
8756
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
8757
|
+
],
|
|
8468
8758
|
listPublicEvents: ["GET /events"],
|
|
8469
8759
|
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
8470
8760
|
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
8471
8761
|
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
8472
8762
|
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
8473
|
-
listReceivedPublicEventsForUser: [
|
|
8763
|
+
listReceivedPublicEventsForUser: [
|
|
8764
|
+
"GET /users/{username}/received_events/public"
|
|
8765
|
+
],
|
|
8474
8766
|
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
8475
|
-
listRepoNotificationsForAuthenticatedUser: [
|
|
8767
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
8768
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
8769
|
+
],
|
|
8476
8770
|
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
8477
8771
|
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
8478
8772
|
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
@@ -8483,18 +8777,26 @@ var require_dist_node11 = __commonJS({
|
|
|
8483
8777
|
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
8484
8778
|
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
8485
8779
|
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
8486
|
-
setThreadSubscription: [
|
|
8780
|
+
setThreadSubscription: [
|
|
8781
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
8782
|
+
],
|
|
8487
8783
|
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
8488
8784
|
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
8489
8785
|
},
|
|
8490
8786
|
apps: {
|
|
8491
|
-
addRepoToInstallation: [
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8787
|
+
addRepoToInstallation: [
|
|
8788
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
8789
|
+
{},
|
|
8790
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
8791
|
+
],
|
|
8792
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
8793
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
8794
|
+
],
|
|
8495
8795
|
checkToken: ["POST /applications/{client_id}/token"],
|
|
8496
8796
|
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
8497
|
-
createInstallationAccessToken: [
|
|
8797
|
+
createInstallationAccessToken: [
|
|
8798
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
8799
|
+
],
|
|
8498
8800
|
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
8499
8801
|
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
8500
8802
|
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
@@ -8503,78 +8805,132 @@ var require_dist_node11 = __commonJS({
|
|
|
8503
8805
|
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
8504
8806
|
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
8505
8807
|
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
8506
|
-
getSubscriptionPlanForAccount: [
|
|
8507
|
-
|
|
8808
|
+
getSubscriptionPlanForAccount: [
|
|
8809
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
8810
|
+
],
|
|
8811
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
8812
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
8813
|
+
],
|
|
8508
8814
|
getUserInstallation: ["GET /users/{username}/installation"],
|
|
8509
8815
|
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
8510
8816
|
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
8511
8817
|
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
8512
|
-
listAccountsForPlanStubbed: [
|
|
8513
|
-
|
|
8514
|
-
|
|
8818
|
+
listAccountsForPlanStubbed: [
|
|
8819
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
8820
|
+
],
|
|
8821
|
+
listInstallationReposForAuthenticatedUser: [
|
|
8822
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
8823
|
+
],
|
|
8824
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
8825
|
+
"GET /app/installation-requests"
|
|
8826
|
+
],
|
|
8515
8827
|
listInstallations: ["GET /app/installations"],
|
|
8516
8828
|
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
8517
8829
|
listPlans: ["GET /marketplace_listing/plans"],
|
|
8518
8830
|
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
8519
8831
|
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
8520
8832
|
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
8521
|
-
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
8833
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
8834
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
8835
|
+
],
|
|
8522
8836
|
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
8523
|
-
redeliverWebhookDelivery: [
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8837
|
+
redeliverWebhookDelivery: [
|
|
8838
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
8839
|
+
],
|
|
8840
|
+
removeRepoFromInstallation: [
|
|
8841
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
8842
|
+
{},
|
|
8843
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
8844
|
+
],
|
|
8845
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
8846
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
8847
|
+
],
|
|
8528
8848
|
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
8529
8849
|
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
8530
8850
|
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
8531
8851
|
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
8532
|
-
unsuspendInstallation: [
|
|
8852
|
+
unsuspendInstallation: [
|
|
8853
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
8854
|
+
],
|
|
8533
8855
|
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
8534
8856
|
},
|
|
8535
8857
|
billing: {
|
|
8536
8858
|
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
8537
|
-
getGithubActionsBillingUser: [
|
|
8859
|
+
getGithubActionsBillingUser: [
|
|
8860
|
+
"GET /users/{username}/settings/billing/actions"
|
|
8861
|
+
],
|
|
8538
8862
|
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
8539
|
-
getGithubPackagesBillingUser: [
|
|
8540
|
-
|
|
8541
|
-
|
|
8863
|
+
getGithubPackagesBillingUser: [
|
|
8864
|
+
"GET /users/{username}/settings/billing/packages"
|
|
8865
|
+
],
|
|
8866
|
+
getSharedStorageBillingOrg: [
|
|
8867
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
8868
|
+
],
|
|
8869
|
+
getSharedStorageBillingUser: [
|
|
8870
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
8871
|
+
]
|
|
8542
8872
|
},
|
|
8543
8873
|
checks: {
|
|
8544
8874
|
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
8545
8875
|
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
8546
8876
|
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
8547
8877
|
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
8548
|
-
listAnnotations: [
|
|
8878
|
+
listAnnotations: [
|
|
8879
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
8880
|
+
],
|
|
8549
8881
|
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
8550
|
-
listForSuite: [
|
|
8882
|
+
listForSuite: [
|
|
8883
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
8884
|
+
],
|
|
8551
8885
|
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
8552
|
-
rerequestRun: [
|
|
8553
|
-
|
|
8554
|
-
|
|
8886
|
+
rerequestRun: [
|
|
8887
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
8888
|
+
],
|
|
8889
|
+
rerequestSuite: [
|
|
8890
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
8891
|
+
],
|
|
8892
|
+
setSuitesPreferences: [
|
|
8893
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
8894
|
+
],
|
|
8555
8895
|
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
8556
8896
|
},
|
|
8557
8897
|
codeScanning: {
|
|
8558
|
-
deleteAnalysis: [
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
}
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8898
|
+
deleteAnalysis: [
|
|
8899
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
8900
|
+
],
|
|
8901
|
+
getAlert: [
|
|
8902
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
8903
|
+
{},
|
|
8904
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
8905
|
+
],
|
|
8906
|
+
getAnalysis: [
|
|
8907
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
8908
|
+
],
|
|
8909
|
+
getCodeqlDatabase: [
|
|
8910
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
8911
|
+
],
|
|
8566
8912
|
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
8567
8913
|
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
8568
|
-
listAlertInstances: [
|
|
8914
|
+
listAlertInstances: [
|
|
8915
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
8916
|
+
],
|
|
8569
8917
|
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
8570
8918
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
8571
|
-
listAlertsInstances: [
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8919
|
+
listAlertsInstances: [
|
|
8920
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
8921
|
+
{},
|
|
8922
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
8923
|
+
],
|
|
8924
|
+
listCodeqlDatabases: [
|
|
8925
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
8926
|
+
],
|
|
8575
8927
|
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
8576
|
-
updateAlert: [
|
|
8577
|
-
|
|
8928
|
+
updateAlert: [
|
|
8929
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
8930
|
+
],
|
|
8931
|
+
updateDefaultSetup: [
|
|
8932
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
8933
|
+
],
|
|
8578
8934
|
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
8579
8935
|
},
|
|
8580
8936
|
codesOfConduct: {
|
|
@@ -8582,87 +8938,175 @@ var require_dist_node11 = __commonJS({
|
|
|
8582
8938
|
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
8583
8939
|
},
|
|
8584
8940
|
codespaces: {
|
|
8585
|
-
addRepositoryForSecretForAuthenticatedUser: [
|
|
8586
|
-
|
|
8587
|
-
|
|
8941
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
8942
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
8943
|
+
],
|
|
8944
|
+
addSelectedRepoToOrgSecret: [
|
|
8945
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
8946
|
+
],
|
|
8947
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
8948
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
8949
|
+
],
|
|
8588
8950
|
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
8589
|
-
createOrUpdateOrgSecret: [
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8951
|
+
createOrUpdateOrgSecret: [
|
|
8952
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
8953
|
+
],
|
|
8954
|
+
createOrUpdateRepoSecret: [
|
|
8955
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
8956
|
+
],
|
|
8957
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
8958
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
8959
|
+
],
|
|
8960
|
+
createWithPrForAuthenticatedUser: [
|
|
8961
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
8962
|
+
],
|
|
8963
|
+
createWithRepoForAuthenticatedUser: [
|
|
8964
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
8965
|
+
],
|
|
8966
|
+
deleteCodespacesBillingUsers: [
|
|
8967
|
+
"DELETE /orgs/{org}/codespaces/billing/selected_users"
|
|
8968
|
+
],
|
|
8595
8969
|
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
8596
|
-
deleteFromOrganization: [
|
|
8970
|
+
deleteFromOrganization: [
|
|
8971
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
8972
|
+
],
|
|
8597
8973
|
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
8598
|
-
deleteRepoSecret: [
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8974
|
+
deleteRepoSecret: [
|
|
8975
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
8976
|
+
],
|
|
8977
|
+
deleteSecretForAuthenticatedUser: [
|
|
8978
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
8979
|
+
],
|
|
8980
|
+
exportForAuthenticatedUser: [
|
|
8981
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
8982
|
+
],
|
|
8983
|
+
getCodespacesForUserInOrg: [
|
|
8984
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
8985
|
+
],
|
|
8986
|
+
getExportDetailsForAuthenticatedUser: [
|
|
8987
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
8988
|
+
],
|
|
8603
8989
|
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
8604
8990
|
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
8605
8991
|
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
8606
|
-
getPublicKeyForAuthenticatedUser: [
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8992
|
+
getPublicKeyForAuthenticatedUser: [
|
|
8993
|
+
"GET /user/codespaces/secrets/public-key"
|
|
8994
|
+
],
|
|
8995
|
+
getRepoPublicKey: [
|
|
8996
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
8997
|
+
],
|
|
8998
|
+
getRepoSecret: [
|
|
8999
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
9000
|
+
],
|
|
9001
|
+
getSecretForAuthenticatedUser: [
|
|
9002
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
9003
|
+
],
|
|
9004
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
9005
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
9006
|
+
],
|
|
8611
9007
|
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
8612
|
-
listInOrganization: [
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
}
|
|
8616
|
-
|
|
8617
|
-
listInRepositoryForAuthenticatedUser: [
|
|
9008
|
+
listInOrganization: [
|
|
9009
|
+
"GET /orgs/{org}/codespaces",
|
|
9010
|
+
{},
|
|
9011
|
+
{ renamedParameters: { org_id: "org" } }
|
|
9012
|
+
],
|
|
9013
|
+
listInRepositoryForAuthenticatedUser: [
|
|
9014
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
9015
|
+
],
|
|
8618
9016
|
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
8619
9017
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
8620
|
-
listRepositoriesForSecretForAuthenticatedUser: [
|
|
9018
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
9019
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
9020
|
+
],
|
|
8621
9021
|
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
8622
|
-
listSelectedReposForOrgSecret: [
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
9022
|
+
listSelectedReposForOrgSecret: [
|
|
9023
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9024
|
+
],
|
|
9025
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
9026
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
9027
|
+
],
|
|
9028
|
+
publishForAuthenticatedUser: [
|
|
9029
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
9030
|
+
],
|
|
9031
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
9032
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9033
|
+
],
|
|
9034
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9035
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
9036
|
+
],
|
|
9037
|
+
repoMachinesForAuthenticatedUser: [
|
|
9038
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
9039
|
+
],
|
|
8628
9040
|
setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
|
|
8629
|
-
setCodespacesBillingUsers: [
|
|
8630
|
-
|
|
8631
|
-
|
|
9041
|
+
setCodespacesBillingUsers: [
|
|
9042
|
+
"POST /orgs/{org}/codespaces/billing/selected_users"
|
|
9043
|
+
],
|
|
9044
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
9045
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
9046
|
+
],
|
|
9047
|
+
setSelectedReposForOrgSecret: [
|
|
9048
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
9049
|
+
],
|
|
8632
9050
|
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
8633
9051
|
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
8634
|
-
stopInOrganization: [
|
|
9052
|
+
stopInOrganization: [
|
|
9053
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
9054
|
+
],
|
|
8635
9055
|
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
8636
9056
|
},
|
|
8637
9057
|
dependabot: {
|
|
8638
|
-
addSelectedRepoToOrgSecret: [
|
|
8639
|
-
|
|
8640
|
-
|
|
9058
|
+
addSelectedRepoToOrgSecret: [
|
|
9059
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9060
|
+
],
|
|
9061
|
+
createOrUpdateOrgSecret: [
|
|
9062
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
9063
|
+
],
|
|
9064
|
+
createOrUpdateRepoSecret: [
|
|
9065
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9066
|
+
],
|
|
8641
9067
|
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
8642
|
-
deleteRepoSecret: [
|
|
9068
|
+
deleteRepoSecret: [
|
|
9069
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9070
|
+
],
|
|
8643
9071
|
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
8644
9072
|
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
8645
9073
|
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
8646
|
-
getRepoPublicKey: [
|
|
8647
|
-
|
|
8648
|
-
|
|
9074
|
+
getRepoPublicKey: [
|
|
9075
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
9076
|
+
],
|
|
9077
|
+
getRepoSecret: [
|
|
9078
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
9079
|
+
],
|
|
9080
|
+
listAlertsForEnterprise: [
|
|
9081
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
9082
|
+
],
|
|
8649
9083
|
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
8650
9084
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
8651
9085
|
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
8652
9086
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
8653
|
-
listSelectedReposForOrgSecret: [
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
9087
|
+
listSelectedReposForOrgSecret: [
|
|
9088
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9089
|
+
],
|
|
9090
|
+
removeSelectedRepoFromOrgSecret: [
|
|
9091
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
9092
|
+
],
|
|
9093
|
+
setSelectedReposForOrgSecret: [
|
|
9094
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
9095
|
+
],
|
|
9096
|
+
updateAlert: [
|
|
9097
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
9098
|
+
]
|
|
8657
9099
|
},
|
|
8658
9100
|
dependencyGraph: {
|
|
8659
|
-
createRepositorySnapshot: [
|
|
8660
|
-
|
|
9101
|
+
createRepositorySnapshot: [
|
|
9102
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
9103
|
+
],
|
|
9104
|
+
diffRange: [
|
|
9105
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
9106
|
+
],
|
|
8661
9107
|
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
8662
9108
|
},
|
|
8663
|
-
emojis: {
|
|
8664
|
-
get: ["GET /emojis"]
|
|
8665
|
-
},
|
|
9109
|
+
emojis: { get: ["GET /emojis"] },
|
|
8666
9110
|
gists: {
|
|
8667
9111
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
8668
9112
|
create: ["POST /gists"],
|
|
@@ -8708,34 +9152,52 @@ var require_dist_node11 = __commonJS({
|
|
|
8708
9152
|
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
8709
9153
|
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
8710
9154
|
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
8711
|
-
getRestrictionsForYourPublicRepos: [
|
|
8712
|
-
|
|
8713
|
-
|
|
9155
|
+
getRestrictionsForYourPublicRepos: [
|
|
9156
|
+
"GET /user/interaction-limits",
|
|
9157
|
+
{},
|
|
9158
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
9159
|
+
],
|
|
8714
9160
|
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
8715
9161
|
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
8716
|
-
removeRestrictionsForRepo: [
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
9162
|
+
removeRestrictionsForRepo: [
|
|
9163
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
9164
|
+
],
|
|
9165
|
+
removeRestrictionsForYourPublicRepos: [
|
|
9166
|
+
"DELETE /user/interaction-limits",
|
|
9167
|
+
{},
|
|
9168
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
9169
|
+
],
|
|
8720
9170
|
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
8721
9171
|
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
8722
9172
|
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
8723
|
-
setRestrictionsForYourPublicRepos: [
|
|
8724
|
-
|
|
8725
|
-
|
|
9173
|
+
setRestrictionsForYourPublicRepos: [
|
|
9174
|
+
"PUT /user/interaction-limits",
|
|
9175
|
+
{},
|
|
9176
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
9177
|
+
]
|
|
8726
9178
|
},
|
|
8727
9179
|
issues: {
|
|
8728
|
-
addAssignees: [
|
|
9180
|
+
addAssignees: [
|
|
9181
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9182
|
+
],
|
|
8729
9183
|
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
8730
9184
|
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
8731
|
-
checkUserCanBeAssignedToIssue: [
|
|
9185
|
+
checkUserCanBeAssignedToIssue: [
|
|
9186
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
9187
|
+
],
|
|
8732
9188
|
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
8733
|
-
createComment: [
|
|
9189
|
+
createComment: [
|
|
9190
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
9191
|
+
],
|
|
8734
9192
|
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
8735
9193
|
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
8736
|
-
deleteComment: [
|
|
9194
|
+
deleteComment: [
|
|
9195
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
9196
|
+
],
|
|
8737
9197
|
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
8738
|
-
deleteMilestone: [
|
|
9198
|
+
deleteMilestone: [
|
|
9199
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9200
|
+
],
|
|
8739
9201
|
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
8740
9202
|
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
8741
9203
|
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
@@ -8747,24 +9209,38 @@ var require_dist_node11 = __commonJS({
|
|
|
8747
9209
|
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
8748
9210
|
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
8749
9211
|
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
8750
|
-
listEventsForTimeline: [
|
|
9212
|
+
listEventsForTimeline: [
|
|
9213
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
9214
|
+
],
|
|
8751
9215
|
listForAuthenticatedUser: ["GET /user/issues"],
|
|
8752
9216
|
listForOrg: ["GET /orgs/{org}/issues"],
|
|
8753
9217
|
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
8754
|
-
listLabelsForMilestone: [
|
|
9218
|
+
listLabelsForMilestone: [
|
|
9219
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
9220
|
+
],
|
|
8755
9221
|
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
8756
|
-
listLabelsOnIssue: [
|
|
9222
|
+
listLabelsOnIssue: [
|
|
9223
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9224
|
+
],
|
|
8757
9225
|
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
8758
9226
|
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
8759
|
-
removeAllLabels: [
|
|
8760
|
-
|
|
8761
|
-
|
|
9227
|
+
removeAllLabels: [
|
|
9228
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
9229
|
+
],
|
|
9230
|
+
removeAssignees: [
|
|
9231
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
9232
|
+
],
|
|
9233
|
+
removeLabel: [
|
|
9234
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
9235
|
+
],
|
|
8762
9236
|
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
8763
9237
|
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
8764
9238
|
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
8765
9239
|
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
8766
9240
|
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
8767
|
-
updateMilestone: [
|
|
9241
|
+
updateMilestone: [
|
|
9242
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
9243
|
+
]
|
|
8768
9244
|
},
|
|
8769
9245
|
licenses: {
|
|
8770
9246
|
get: ["GET /licenses/{license}"],
|
|
@@ -8773,11 +9249,10 @@ var require_dist_node11 = __commonJS({
|
|
|
8773
9249
|
},
|
|
8774
9250
|
markdown: {
|
|
8775
9251
|
render: ["POST /markdown"],
|
|
8776
|
-
renderRaw: [
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
}]
|
|
9252
|
+
renderRaw: [
|
|
9253
|
+
"POST /markdown/raw",
|
|
9254
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
9255
|
+
]
|
|
8781
9256
|
},
|
|
8782
9257
|
meta: {
|
|
8783
9258
|
get: ["GET /meta"],
|
|
@@ -8788,10 +9263,18 @@ var require_dist_node11 = __commonJS({
|
|
|
8788
9263
|
},
|
|
8789
9264
|
migrations: {
|
|
8790
9265
|
cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
|
|
8791
|
-
deleteArchiveForAuthenticatedUser: [
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
9266
|
+
deleteArchiveForAuthenticatedUser: [
|
|
9267
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
9268
|
+
],
|
|
9269
|
+
deleteArchiveForOrg: [
|
|
9270
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
9271
|
+
],
|
|
9272
|
+
downloadArchiveForOrg: [
|
|
9273
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
9274
|
+
],
|
|
9275
|
+
getArchiveForAuthenticatedUser: [
|
|
9276
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
9277
|
+
],
|
|
8795
9278
|
getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
|
|
8796
9279
|
getImportStatus: ["GET /repos/{owner}/{repo}/import"],
|
|
8797
9280
|
getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
|
|
@@ -8799,39 +9282,55 @@ var require_dist_node11 = __commonJS({
|
|
|
8799
9282
|
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
8800
9283
|
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
8801
9284
|
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
8802
|
-
listReposForAuthenticatedUser: [
|
|
9285
|
+
listReposForAuthenticatedUser: [
|
|
9286
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
9287
|
+
],
|
|
8803
9288
|
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
8804
|
-
listReposForUser: [
|
|
8805
|
-
|
|
8806
|
-
|
|
9289
|
+
listReposForUser: [
|
|
9290
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
9291
|
+
{},
|
|
9292
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
9293
|
+
],
|
|
8807
9294
|
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
|
|
8808
9295
|
setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
|
|
8809
9296
|
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
8810
9297
|
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
8811
9298
|
startImport: ["PUT /repos/{owner}/{repo}/import"],
|
|
8812
|
-
unlockRepoForAuthenticatedUser: [
|
|
8813
|
-
|
|
9299
|
+
unlockRepoForAuthenticatedUser: [
|
|
9300
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
9301
|
+
],
|
|
9302
|
+
unlockRepoForOrg: [
|
|
9303
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
9304
|
+
],
|
|
8814
9305
|
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
|
|
8815
9306
|
},
|
|
8816
9307
|
orgs: {
|
|
8817
|
-
addSecurityManagerTeam: [
|
|
9308
|
+
addSecurityManagerTeam: [
|
|
9309
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
|
9310
|
+
],
|
|
8818
9311
|
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
8819
9312
|
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
8820
9313
|
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
8821
9314
|
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
8822
9315
|
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
8823
|
-
convertMemberToOutsideCollaborator: [
|
|
9316
|
+
convertMemberToOutsideCollaborator: [
|
|
9317
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
9318
|
+
],
|
|
8824
9319
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
8825
9320
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
8826
9321
|
delete: ["DELETE /orgs/{org}"],
|
|
8827
9322
|
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
8828
|
-
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
9323
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
9324
|
+
"POST /orgs/{org}/{security_product}/{enablement}"
|
|
9325
|
+
],
|
|
8829
9326
|
get: ["GET /orgs/{org}"],
|
|
8830
9327
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
8831
9328
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
8832
9329
|
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
8833
9330
|
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
8834
|
-
getWebhookDelivery: [
|
|
9331
|
+
getWebhookDelivery: [
|
|
9332
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
9333
|
+
],
|
|
8835
9334
|
list: ["GET /organizations"],
|
|
8836
9335
|
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
8837
9336
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
@@ -8842,9 +9341,15 @@ var require_dist_node11 = __commonJS({
|
|
|
8842
9341
|
listMembers: ["GET /orgs/{org}/members"],
|
|
8843
9342
|
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
8844
9343
|
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
8845
|
-
listPatGrantRepositories: [
|
|
8846
|
-
|
|
8847
|
-
|
|
9344
|
+
listPatGrantRepositories: [
|
|
9345
|
+
"GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
9346
|
+
],
|
|
9347
|
+
listPatGrantRequestRepositories: [
|
|
9348
|
+
"GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
9349
|
+
],
|
|
9350
|
+
listPatGrantRequests: [
|
|
9351
|
+
"GET /organizations/{org}/personal-access-token-requests"
|
|
9352
|
+
],
|
|
8848
9353
|
listPatGrants: ["GET /organizations/{org}/personal-access-tokens"],
|
|
8849
9354
|
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
8850
9355
|
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
@@ -8852,58 +9357,133 @@ var require_dist_node11 = __commonJS({
|
|
|
8852
9357
|
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
8853
9358
|
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
8854
9359
|
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
8855
|
-
redeliverWebhookDelivery: [
|
|
9360
|
+
redeliverWebhookDelivery: [
|
|
9361
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
9362
|
+
],
|
|
8856
9363
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
8857
9364
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
8858
|
-
removeOutsideCollaborator: [
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
9365
|
+
removeOutsideCollaborator: [
|
|
9366
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
9367
|
+
],
|
|
9368
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
9369
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
9370
|
+
],
|
|
9371
|
+
removeSecurityManagerTeam: [
|
|
9372
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
|
9373
|
+
],
|
|
9374
|
+
reviewPatGrantRequest: [
|
|
9375
|
+
"POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"
|
|
9376
|
+
],
|
|
9377
|
+
reviewPatGrantRequestsInBulk: [
|
|
9378
|
+
"POST /organizations/{org}/personal-access-token-requests"
|
|
9379
|
+
],
|
|
8863
9380
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
8864
|
-
setPublicMembershipForAuthenticatedUser: [
|
|
9381
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
9382
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
9383
|
+
],
|
|
8865
9384
|
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
8866
9385
|
update: ["PATCH /orgs/{org}"],
|
|
8867
|
-
updateMembershipForAuthenticatedUser: [
|
|
8868
|
-
|
|
9386
|
+
updateMembershipForAuthenticatedUser: [
|
|
9387
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
9388
|
+
],
|
|
9389
|
+
updatePatAccess: [
|
|
9390
|
+
"POST /organizations/{org}/personal-access-tokens/{pat_id}"
|
|
9391
|
+
],
|
|
8869
9392
|
updatePatAccesses: ["POST /organizations/{org}/personal-access-tokens"],
|
|
8870
9393
|
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
8871
9394
|
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
8872
9395
|
},
|
|
8873
9396
|
packages: {
|
|
8874
|
-
deletePackageForAuthenticatedUser: [
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
9397
|
+
deletePackageForAuthenticatedUser: [
|
|
9398
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
9399
|
+
],
|
|
9400
|
+
deletePackageForOrg: [
|
|
9401
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
9402
|
+
],
|
|
9403
|
+
deletePackageForUser: [
|
|
9404
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
9405
|
+
],
|
|
9406
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
9407
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9408
|
+
],
|
|
9409
|
+
deletePackageVersionForOrg: [
|
|
9410
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9411
|
+
],
|
|
9412
|
+
deletePackageVersionForUser: [
|
|
9413
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9414
|
+
],
|
|
9415
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
9416
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
9417
|
+
{},
|
|
9418
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
9419
|
+
],
|
|
9420
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
9421
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
9422
|
+
{},
|
|
9423
|
+
{
|
|
9424
|
+
renamed: [
|
|
9425
|
+
"packages",
|
|
9426
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
9427
|
+
]
|
|
9428
|
+
}
|
|
9429
|
+
],
|
|
9430
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
9431
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
9432
|
+
],
|
|
9433
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
9434
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
9435
|
+
],
|
|
9436
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
9437
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
9438
|
+
],
|
|
9439
|
+
getPackageForAuthenticatedUser: [
|
|
9440
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
9441
|
+
],
|
|
9442
|
+
getPackageForOrganization: [
|
|
9443
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
9444
|
+
],
|
|
9445
|
+
getPackageForUser: [
|
|
9446
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
9447
|
+
],
|
|
9448
|
+
getPackageVersionForAuthenticatedUser: [
|
|
9449
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9450
|
+
],
|
|
9451
|
+
getPackageVersionForOrganization: [
|
|
9452
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9453
|
+
],
|
|
9454
|
+
getPackageVersionForUser: [
|
|
9455
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
9456
|
+
],
|
|
9457
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
9458
|
+
"GET /user/docker/conflicts"
|
|
9459
|
+
],
|
|
9460
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
9461
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
9462
|
+
],
|
|
9463
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
9464
|
+
"GET /users/{username}/docker/conflicts"
|
|
9465
|
+
],
|
|
8898
9466
|
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
8899
9467
|
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
8900
9468
|
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
8901
|
-
restorePackageForAuthenticatedUser: [
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
9469
|
+
restorePackageForAuthenticatedUser: [
|
|
9470
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
9471
|
+
],
|
|
9472
|
+
restorePackageForOrg: [
|
|
9473
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
9474
|
+
],
|
|
9475
|
+
restorePackageForUser: [
|
|
9476
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
9477
|
+
],
|
|
9478
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
9479
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9480
|
+
],
|
|
9481
|
+
restorePackageVersionForOrg: [
|
|
9482
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9483
|
+
],
|
|
9484
|
+
restorePackageVersionForUser: [
|
|
9485
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
9486
|
+
]
|
|
8907
9487
|
},
|
|
8908
9488
|
projects: {
|
|
8909
9489
|
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
@@ -8918,7 +9498,9 @@ var require_dist_node11 = __commonJS({
|
|
|
8918
9498
|
get: ["GET /projects/{project_id}"],
|
|
8919
9499
|
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
8920
9500
|
getColumn: ["GET /projects/columns/{column_id}"],
|
|
8921
|
-
getPermissionForUser: [
|
|
9501
|
+
getPermissionForUser: [
|
|
9502
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
9503
|
+
],
|
|
8922
9504
|
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
8923
9505
|
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
8924
9506
|
listColumns: ["GET /projects/{project_id}/columns"],
|
|
@@ -8927,7 +9509,9 @@ var require_dist_node11 = __commonJS({
|
|
|
8927
9509
|
listForUser: ["GET /users/{username}/projects"],
|
|
8928
9510
|
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
8929
9511
|
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
8930
|
-
removeCollaborator: [
|
|
9512
|
+
removeCollaborator: [
|
|
9513
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
9514
|
+
],
|
|
8931
9515
|
update: ["PATCH /projects/{project_id}"],
|
|
8932
9516
|
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
8933
9517
|
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
@@ -8935,95 +9519,191 @@ var require_dist_node11 = __commonJS({
|
|
|
8935
9519
|
pulls: {
|
|
8936
9520
|
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
8937
9521
|
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
8938
|
-
createReplyForReviewComment: [
|
|
9522
|
+
createReplyForReviewComment: [
|
|
9523
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
9524
|
+
],
|
|
8939
9525
|
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
8940
|
-
createReviewComment: [
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
9526
|
+
createReviewComment: [
|
|
9527
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
9528
|
+
],
|
|
9529
|
+
deletePendingReview: [
|
|
9530
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9531
|
+
],
|
|
9532
|
+
deleteReviewComment: [
|
|
9533
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
9534
|
+
],
|
|
9535
|
+
dismissReview: [
|
|
9536
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
9537
|
+
],
|
|
8944
9538
|
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
8945
|
-
getReview: [
|
|
9539
|
+
getReview: [
|
|
9540
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9541
|
+
],
|
|
8946
9542
|
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
8947
9543
|
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
8948
|
-
listCommentsForReview: [
|
|
9544
|
+
listCommentsForReview: [
|
|
9545
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
9546
|
+
],
|
|
8949
9547
|
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
8950
9548
|
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
8951
|
-
listRequestedReviewers: [
|
|
8952
|
-
|
|
9549
|
+
listRequestedReviewers: [
|
|
9550
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9551
|
+
],
|
|
9552
|
+
listReviewComments: [
|
|
9553
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
9554
|
+
],
|
|
8953
9555
|
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
8954
9556
|
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
8955
9557
|
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
8956
|
-
removeRequestedReviewers: [
|
|
8957
|
-
|
|
8958
|
-
|
|
9558
|
+
removeRequestedReviewers: [
|
|
9559
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9560
|
+
],
|
|
9561
|
+
requestReviewers: [
|
|
9562
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
9563
|
+
],
|
|
9564
|
+
submitReview: [
|
|
9565
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
9566
|
+
],
|
|
8959
9567
|
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
8960
|
-
updateBranch: [
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
9568
|
+
updateBranch: [
|
|
9569
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
9570
|
+
],
|
|
9571
|
+
updateReview: [
|
|
9572
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
9573
|
+
],
|
|
9574
|
+
updateReviewComment: [
|
|
9575
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
9576
|
+
]
|
|
8966
9577
|
},
|
|
9578
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
8967
9579
|
reactions: {
|
|
8968
|
-
createForCommitComment: [
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
9580
|
+
createForCommitComment: [
|
|
9581
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
9582
|
+
],
|
|
9583
|
+
createForIssue: [
|
|
9584
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
9585
|
+
],
|
|
9586
|
+
createForIssueComment: [
|
|
9587
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
9588
|
+
],
|
|
9589
|
+
createForPullRequestReviewComment: [
|
|
9590
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
9591
|
+
],
|
|
9592
|
+
createForRelease: [
|
|
9593
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
9594
|
+
],
|
|
9595
|
+
createForTeamDiscussionCommentInOrg: [
|
|
9596
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
9597
|
+
],
|
|
9598
|
+
createForTeamDiscussionInOrg: [
|
|
9599
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
9600
|
+
],
|
|
9601
|
+
deleteForCommitComment: [
|
|
9602
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
9603
|
+
],
|
|
9604
|
+
deleteForIssue: [
|
|
9605
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
9606
|
+
],
|
|
9607
|
+
deleteForIssueComment: [
|
|
9608
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
9609
|
+
],
|
|
9610
|
+
deleteForPullRequestComment: [
|
|
9611
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
9612
|
+
],
|
|
9613
|
+
deleteForRelease: [
|
|
9614
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
9615
|
+
],
|
|
9616
|
+
deleteForTeamDiscussion: [
|
|
9617
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
9618
|
+
],
|
|
9619
|
+
deleteForTeamDiscussionComment: [
|
|
9620
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
9621
|
+
],
|
|
9622
|
+
listForCommitComment: [
|
|
9623
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
9624
|
+
],
|
|
8983
9625
|
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
8984
|
-
listForIssueComment: [
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
9626
|
+
listForIssueComment: [
|
|
9627
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
9628
|
+
],
|
|
9629
|
+
listForPullRequestReviewComment: [
|
|
9630
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
9631
|
+
],
|
|
9632
|
+
listForRelease: [
|
|
9633
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
9634
|
+
],
|
|
9635
|
+
listForTeamDiscussionCommentInOrg: [
|
|
9636
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
9637
|
+
],
|
|
9638
|
+
listForTeamDiscussionInOrg: [
|
|
9639
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
9640
|
+
]
|
|
8989
9641
|
},
|
|
8990
9642
|
repos: {
|
|
8991
|
-
acceptInvitation: [
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
9643
|
+
acceptInvitation: [
|
|
9644
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
9645
|
+
{},
|
|
9646
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
9647
|
+
],
|
|
9648
|
+
acceptInvitationForAuthenticatedUser: [
|
|
9649
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
9650
|
+
],
|
|
9651
|
+
addAppAccessRestrictions: [
|
|
9652
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9653
|
+
{},
|
|
9654
|
+
{ mapToData: "apps" }
|
|
9655
|
+
],
|
|
8998
9656
|
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
8999
|
-
addStatusCheckContexts: [
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9657
|
+
addStatusCheckContexts: [
|
|
9658
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9659
|
+
{},
|
|
9660
|
+
{ mapToData: "contexts" }
|
|
9661
|
+
],
|
|
9662
|
+
addTeamAccessRestrictions: [
|
|
9663
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9664
|
+
{},
|
|
9665
|
+
{ mapToData: "teams" }
|
|
9666
|
+
],
|
|
9667
|
+
addUserAccessRestrictions: [
|
|
9668
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9669
|
+
{},
|
|
9670
|
+
{ mapToData: "users" }
|
|
9671
|
+
],
|
|
9008
9672
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
9009
|
-
checkVulnerabilityAlerts: [
|
|
9673
|
+
checkVulnerabilityAlerts: [
|
|
9674
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9675
|
+
],
|
|
9010
9676
|
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
9011
9677
|
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
9012
|
-
compareCommitsWithBasehead: [
|
|
9678
|
+
compareCommitsWithBasehead: [
|
|
9679
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
9680
|
+
],
|
|
9013
9681
|
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
9014
|
-
createCommitComment: [
|
|
9015
|
-
|
|
9682
|
+
createCommitComment: [
|
|
9683
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
9684
|
+
],
|
|
9685
|
+
createCommitSignatureProtection: [
|
|
9686
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9687
|
+
],
|
|
9016
9688
|
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
9017
9689
|
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
9018
9690
|
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
9019
|
-
createDeploymentBranchPolicy: [
|
|
9020
|
-
|
|
9021
|
-
|
|
9691
|
+
createDeploymentBranchPolicy: [
|
|
9692
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
9693
|
+
],
|
|
9694
|
+
createDeploymentProtectionRule: [
|
|
9695
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9696
|
+
],
|
|
9697
|
+
createDeploymentStatus: [
|
|
9698
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
9699
|
+
],
|
|
9022
9700
|
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
9023
9701
|
createForAuthenticatedUser: ["POST /user/repos"],
|
|
9024
9702
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
9025
9703
|
createInOrg: ["POST /orgs/{org}/repos"],
|
|
9026
|
-
createOrUpdateEnvironment: [
|
|
9704
|
+
createOrUpdateEnvironment: [
|
|
9705
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9706
|
+
],
|
|
9027
9707
|
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
9028
9708
|
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
9029
9709
|
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
|
|
@@ -9031,75 +9711,141 @@ var require_dist_node11 = __commonJS({
|
|
|
9031
9711
|
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
9032
9712
|
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
9033
9713
|
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
|
9034
|
-
createUsingTemplate: [
|
|
9714
|
+
createUsingTemplate: [
|
|
9715
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
9716
|
+
],
|
|
9035
9717
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
9036
|
-
declineInvitation: [
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9718
|
+
declineInvitation: [
|
|
9719
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
9720
|
+
{},
|
|
9721
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
9722
|
+
],
|
|
9723
|
+
declineInvitationForAuthenticatedUser: [
|
|
9724
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
9725
|
+
],
|
|
9040
9726
|
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
9041
|
-
deleteAccessRestrictions: [
|
|
9042
|
-
|
|
9043
|
-
|
|
9727
|
+
deleteAccessRestrictions: [
|
|
9728
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
9729
|
+
],
|
|
9730
|
+
deleteAdminBranchProtection: [
|
|
9731
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9732
|
+
],
|
|
9733
|
+
deleteAnEnvironment: [
|
|
9734
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9735
|
+
],
|
|
9044
9736
|
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
9045
|
-
deleteBranchProtection: [
|
|
9737
|
+
deleteBranchProtection: [
|
|
9738
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9739
|
+
],
|
|
9046
9740
|
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
9047
|
-
deleteCommitSignatureProtection: [
|
|
9741
|
+
deleteCommitSignatureProtection: [
|
|
9742
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9743
|
+
],
|
|
9048
9744
|
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
9049
|
-
deleteDeployment: [
|
|
9050
|
-
|
|
9745
|
+
deleteDeployment: [
|
|
9746
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
9747
|
+
],
|
|
9748
|
+
deleteDeploymentBranchPolicy: [
|
|
9749
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
9750
|
+
],
|
|
9051
9751
|
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
9052
|
-
deleteInvitation: [
|
|
9752
|
+
deleteInvitation: [
|
|
9753
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
9754
|
+
],
|
|
9053
9755
|
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
9054
9756
|
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
9055
|
-
deletePullRequestReviewProtection: [
|
|
9757
|
+
deletePullRequestReviewProtection: [
|
|
9758
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
9759
|
+
],
|
|
9056
9760
|
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
9057
|
-
deleteReleaseAsset: [
|
|
9761
|
+
deleteReleaseAsset: [
|
|
9762
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
9763
|
+
],
|
|
9058
9764
|
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9059
|
-
deleteTagProtection: [
|
|
9765
|
+
deleteTagProtection: [
|
|
9766
|
+
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
|
9767
|
+
],
|
|
9060
9768
|
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
9061
|
-
disableAutomatedSecurityFixes: [
|
|
9062
|
-
|
|
9769
|
+
disableAutomatedSecurityFixes: [
|
|
9770
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
9771
|
+
],
|
|
9772
|
+
disableDeploymentProtectionRule: [
|
|
9773
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
9774
|
+
],
|
|
9063
9775
|
disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
|
|
9064
|
-
disableVulnerabilityAlerts: [
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9776
|
+
disableVulnerabilityAlerts: [
|
|
9777
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9778
|
+
],
|
|
9779
|
+
downloadArchive: [
|
|
9780
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
9781
|
+
{},
|
|
9782
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
9783
|
+
],
|
|
9068
9784
|
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
9069
9785
|
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
9070
|
-
enableAutomatedSecurityFixes: [
|
|
9786
|
+
enableAutomatedSecurityFixes: [
|
|
9787
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
9788
|
+
],
|
|
9071
9789
|
enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
|
|
9072
|
-
enableVulnerabilityAlerts: [
|
|
9073
|
-
|
|
9790
|
+
enableVulnerabilityAlerts: [
|
|
9791
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
9792
|
+
],
|
|
9793
|
+
generateReleaseNotes: [
|
|
9794
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
9795
|
+
],
|
|
9074
9796
|
get: ["GET /repos/{owner}/{repo}"],
|
|
9075
|
-
getAccessRestrictions: [
|
|
9076
|
-
|
|
9077
|
-
|
|
9797
|
+
getAccessRestrictions: [
|
|
9798
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
9799
|
+
],
|
|
9800
|
+
getAdminBranchProtection: [
|
|
9801
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9802
|
+
],
|
|
9803
|
+
getAllDeploymentProtectionRules: [
|
|
9804
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9805
|
+
],
|
|
9078
9806
|
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
9079
|
-
getAllStatusCheckContexts: [
|
|
9807
|
+
getAllStatusCheckContexts: [
|
|
9808
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
9809
|
+
],
|
|
9080
9810
|
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
9081
|
-
getAppsWithAccessToProtectedBranch: [
|
|
9811
|
+
getAppsWithAccessToProtectedBranch: [
|
|
9812
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
9813
|
+
],
|
|
9082
9814
|
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
9083
9815
|
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
9084
|
-
getBranchProtection: [
|
|
9816
|
+
getBranchProtection: [
|
|
9817
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9818
|
+
],
|
|
9085
9819
|
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
9086
9820
|
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
9087
9821
|
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
9088
|
-
getCollaboratorPermissionLevel: [
|
|
9822
|
+
getCollaboratorPermissionLevel: [
|
|
9823
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
9824
|
+
],
|
|
9089
9825
|
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
9090
9826
|
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
9091
9827
|
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
9092
9828
|
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
9093
|
-
getCommitSignatureProtection: [
|
|
9829
|
+
getCommitSignatureProtection: [
|
|
9830
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
9831
|
+
],
|
|
9094
9832
|
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
9095
9833
|
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
9096
9834
|
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
9097
|
-
getCustomDeploymentProtectionRule: [
|
|
9835
|
+
getCustomDeploymentProtectionRule: [
|
|
9836
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
9837
|
+
],
|
|
9098
9838
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
9099
9839
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
9100
|
-
getDeploymentBranchPolicy: [
|
|
9101
|
-
|
|
9102
|
-
|
|
9840
|
+
getDeploymentBranchPolicy: [
|
|
9841
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
9842
|
+
],
|
|
9843
|
+
getDeploymentStatus: [
|
|
9844
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
9845
|
+
],
|
|
9846
|
+
getEnvironment: [
|
|
9847
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
9848
|
+
],
|
|
9103
9849
|
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
9104
9850
|
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
9105
9851
|
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
@@ -9108,7 +9854,9 @@ var require_dist_node11 = __commonJS({
|
|
|
9108
9854
|
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
9109
9855
|
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
9110
9856
|
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
9111
|
-
getPullRequestReviewProtection: [
|
|
9857
|
+
getPullRequestReviewProtection: [
|
|
9858
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
9859
|
+
],
|
|
9112
9860
|
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
9113
9861
|
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
9114
9862
|
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
@@ -9117,28 +9865,50 @@ var require_dist_node11 = __commonJS({
|
|
|
9117
9865
|
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
9118
9866
|
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9119
9867
|
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
9120
|
-
getStatusChecksProtection: [
|
|
9121
|
-
|
|
9868
|
+
getStatusChecksProtection: [
|
|
9869
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
9870
|
+
],
|
|
9871
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
9872
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
9873
|
+
],
|
|
9122
9874
|
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
9123
9875
|
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
9124
|
-
getUsersWithAccessToProtectedBranch: [
|
|
9876
|
+
getUsersWithAccessToProtectedBranch: [
|
|
9877
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
9878
|
+
],
|
|
9125
9879
|
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
9126
9880
|
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
9127
|
-
getWebhookConfigForRepo: [
|
|
9128
|
-
|
|
9881
|
+
getWebhookConfigForRepo: [
|
|
9882
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
9883
|
+
],
|
|
9884
|
+
getWebhookDelivery: [
|
|
9885
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
9886
|
+
],
|
|
9129
9887
|
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
9130
9888
|
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
9131
|
-
listBranchesForHeadCommit: [
|
|
9889
|
+
listBranchesForHeadCommit: [
|
|
9890
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
9891
|
+
],
|
|
9132
9892
|
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
9133
|
-
listCommentsForCommit: [
|
|
9893
|
+
listCommentsForCommit: [
|
|
9894
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
9895
|
+
],
|
|
9134
9896
|
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
9135
|
-
listCommitStatusesForRef: [
|
|
9897
|
+
listCommitStatusesForRef: [
|
|
9898
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
9899
|
+
],
|
|
9136
9900
|
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
9137
9901
|
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
9138
|
-
listCustomDeploymentRuleIntegrations: [
|
|
9902
|
+
listCustomDeploymentRuleIntegrations: [
|
|
9903
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
9904
|
+
],
|
|
9139
9905
|
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
9140
|
-
listDeploymentBranchPolicies: [
|
|
9141
|
-
|
|
9906
|
+
listDeploymentBranchPolicies: [
|
|
9907
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
9908
|
+
],
|
|
9909
|
+
listDeploymentStatuses: [
|
|
9910
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
9911
|
+
],
|
|
9142
9912
|
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
9143
9913
|
listForAuthenticatedUser: ["GET /user/repos"],
|
|
9144
9914
|
listForOrg: ["GET /orgs/{org}/repos"],
|
|
@@ -9149,70 +9919,117 @@ var require_dist_node11 = __commonJS({
|
|
|
9149
9919
|
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
9150
9920
|
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
9151
9921
|
listPublic: ["GET /repositories"],
|
|
9152
|
-
listPullRequestsAssociatedWithCommit: [
|
|
9153
|
-
|
|
9922
|
+
listPullRequestsAssociatedWithCommit: [
|
|
9923
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
9924
|
+
],
|
|
9925
|
+
listReleaseAssets: [
|
|
9926
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
9927
|
+
],
|
|
9154
9928
|
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
9155
9929
|
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
|
9156
9930
|
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
9157
9931
|
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
9158
|
-
listWebhookDeliveries: [
|
|
9932
|
+
listWebhookDeliveries: [
|
|
9933
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
9934
|
+
],
|
|
9159
9935
|
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
9160
9936
|
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
9161
9937
|
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
9162
9938
|
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
9163
|
-
redeliverWebhookDelivery: [
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
mapToData: "
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9939
|
+
redeliverWebhookDelivery: [
|
|
9940
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
9941
|
+
],
|
|
9942
|
+
removeAppAccessRestrictions: [
|
|
9943
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9944
|
+
{},
|
|
9945
|
+
{ mapToData: "apps" }
|
|
9946
|
+
],
|
|
9947
|
+
removeCollaborator: [
|
|
9948
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
9949
|
+
],
|
|
9950
|
+
removeStatusCheckContexts: [
|
|
9951
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9952
|
+
{},
|
|
9953
|
+
{ mapToData: "contexts" }
|
|
9954
|
+
],
|
|
9955
|
+
removeStatusCheckProtection: [
|
|
9956
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
9957
|
+
],
|
|
9958
|
+
removeTeamAccessRestrictions: [
|
|
9959
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9960
|
+
{},
|
|
9961
|
+
{ mapToData: "teams" }
|
|
9962
|
+
],
|
|
9963
|
+
removeUserAccessRestrictions: [
|
|
9964
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9965
|
+
{},
|
|
9966
|
+
{ mapToData: "users" }
|
|
9967
|
+
],
|
|
9178
9968
|
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
9179
9969
|
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
9180
9970
|
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
9181
|
-
setAdminBranchProtection: [
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
mapToData: "
|
|
9193
|
-
|
|
9971
|
+
setAdminBranchProtection: [
|
|
9972
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
9973
|
+
],
|
|
9974
|
+
setAppAccessRestrictions: [
|
|
9975
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
9976
|
+
{},
|
|
9977
|
+
{ mapToData: "apps" }
|
|
9978
|
+
],
|
|
9979
|
+
setStatusCheckContexts: [
|
|
9980
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
9981
|
+
{},
|
|
9982
|
+
{ mapToData: "contexts" }
|
|
9983
|
+
],
|
|
9984
|
+
setTeamAccessRestrictions: [
|
|
9985
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
9986
|
+
{},
|
|
9987
|
+
{ mapToData: "teams" }
|
|
9988
|
+
],
|
|
9989
|
+
setUserAccessRestrictions: [
|
|
9990
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
9991
|
+
{},
|
|
9992
|
+
{ mapToData: "users" }
|
|
9993
|
+
],
|
|
9194
9994
|
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
9195
9995
|
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
9196
9996
|
update: ["PATCH /repos/{owner}/{repo}"],
|
|
9197
|
-
updateBranchProtection: [
|
|
9997
|
+
updateBranchProtection: [
|
|
9998
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
9999
|
+
],
|
|
9198
10000
|
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
9199
|
-
updateDeploymentBranchPolicy: [
|
|
10001
|
+
updateDeploymentBranchPolicy: [
|
|
10002
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
10003
|
+
],
|
|
9200
10004
|
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
9201
|
-
updateInvitation: [
|
|
10005
|
+
updateInvitation: [
|
|
10006
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10007
|
+
],
|
|
9202
10008
|
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
9203
|
-
updatePullRequestReviewProtection: [
|
|
10009
|
+
updatePullRequestReviewProtection: [
|
|
10010
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
10011
|
+
],
|
|
9204
10012
|
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
9205
|
-
updateReleaseAsset: [
|
|
10013
|
+
updateReleaseAsset: [
|
|
10014
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
10015
|
+
],
|
|
9206
10016
|
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9207
|
-
updateStatusCheckPotection: [
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
10017
|
+
updateStatusCheckPotection: [
|
|
10018
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
10019
|
+
{},
|
|
10020
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
10021
|
+
],
|
|
10022
|
+
updateStatusCheckProtection: [
|
|
10023
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
10024
|
+
],
|
|
9211
10025
|
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
9212
|
-
updateWebhookConfigForRepo: [
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
10026
|
+
updateWebhookConfigForRepo: [
|
|
10027
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10028
|
+
],
|
|
10029
|
+
uploadReleaseAsset: [
|
|
10030
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
10031
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
10032
|
+
]
|
|
9216
10033
|
},
|
|
9217
10034
|
search: {
|
|
9218
10035
|
code: ["GET /search/code"],
|
|
@@ -9224,162 +10041,277 @@ var require_dist_node11 = __commonJS({
|
|
|
9224
10041
|
users: ["GET /search/users"]
|
|
9225
10042
|
},
|
|
9226
10043
|
secretScanning: {
|
|
9227
|
-
getAlert: [
|
|
9228
|
-
|
|
10044
|
+
getAlert: [
|
|
10045
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10046
|
+
],
|
|
10047
|
+
listAlertsForEnterprise: [
|
|
10048
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
10049
|
+
],
|
|
9229
10050
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
9230
10051
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
9231
|
-
listLocationsForAlert: [
|
|
9232
|
-
|
|
10052
|
+
listLocationsForAlert: [
|
|
10053
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
10054
|
+
],
|
|
10055
|
+
updateAlert: [
|
|
10056
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
10057
|
+
]
|
|
9233
10058
|
},
|
|
9234
10059
|
securityAdvisories: {
|
|
9235
|
-
createPrivateVulnerabilityReport: [
|
|
9236
|
-
|
|
9237
|
-
|
|
10060
|
+
createPrivateVulnerabilityReport: [
|
|
10061
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
10062
|
+
],
|
|
10063
|
+
createRepositoryAdvisory: [
|
|
10064
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
10065
|
+
],
|
|
10066
|
+
getRepositoryAdvisory: [
|
|
10067
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10068
|
+
],
|
|
9238
10069
|
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
9239
|
-
updateRepositoryAdvisory: [
|
|
10070
|
+
updateRepositoryAdvisory: [
|
|
10071
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
10072
|
+
]
|
|
9240
10073
|
},
|
|
9241
10074
|
teams: {
|
|
9242
|
-
addOrUpdateMembershipForUserInOrg: [
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
10075
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
10076
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10077
|
+
],
|
|
10078
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
10079
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10080
|
+
],
|
|
10081
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
10082
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10083
|
+
],
|
|
10084
|
+
checkPermissionsForProjectInOrg: [
|
|
10085
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10086
|
+
],
|
|
10087
|
+
checkPermissionsForRepoInOrg: [
|
|
10088
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10089
|
+
],
|
|
9247
10090
|
create: ["POST /orgs/{org}/teams"],
|
|
9248
|
-
createDiscussionCommentInOrg: [
|
|
10091
|
+
createDiscussionCommentInOrg: [
|
|
10092
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10093
|
+
],
|
|
9249
10094
|
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
9250
|
-
deleteDiscussionCommentInOrg: [
|
|
9251
|
-
|
|
10095
|
+
deleteDiscussionCommentInOrg: [
|
|
10096
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10097
|
+
],
|
|
10098
|
+
deleteDiscussionInOrg: [
|
|
10099
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10100
|
+
],
|
|
9252
10101
|
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
9253
10102
|
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
9254
|
-
getDiscussionCommentInOrg: [
|
|
9255
|
-
|
|
9256
|
-
|
|
10103
|
+
getDiscussionCommentInOrg: [
|
|
10104
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10105
|
+
],
|
|
10106
|
+
getDiscussionInOrg: [
|
|
10107
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10108
|
+
],
|
|
10109
|
+
getMembershipForUserInOrg: [
|
|
10110
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10111
|
+
],
|
|
9257
10112
|
list: ["GET /orgs/{org}/teams"],
|
|
9258
10113
|
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
9259
|
-
listDiscussionCommentsInOrg: [
|
|
10114
|
+
listDiscussionCommentsInOrg: [
|
|
10115
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
10116
|
+
],
|
|
9260
10117
|
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
9261
10118
|
listForAuthenticatedUser: ["GET /user/teams"],
|
|
9262
10119
|
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
9263
|
-
listPendingInvitationsInOrg: [
|
|
10120
|
+
listPendingInvitationsInOrg: [
|
|
10121
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
10122
|
+
],
|
|
9264
10123
|
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
9265
10124
|
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
9266
|
-
removeMembershipForUserInOrg: [
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
10125
|
+
removeMembershipForUserInOrg: [
|
|
10126
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
10127
|
+
],
|
|
10128
|
+
removeProjectInOrg: [
|
|
10129
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
10130
|
+
],
|
|
10131
|
+
removeRepoInOrg: [
|
|
10132
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
10133
|
+
],
|
|
10134
|
+
updateDiscussionCommentInOrg: [
|
|
10135
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
10136
|
+
],
|
|
10137
|
+
updateDiscussionInOrg: [
|
|
10138
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
10139
|
+
],
|
|
9271
10140
|
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
9272
10141
|
},
|
|
9273
10142
|
users: {
|
|
9274
|
-
addEmailForAuthenticated: [
|
|
9275
|
-
|
|
9276
|
-
|
|
10143
|
+
addEmailForAuthenticated: [
|
|
10144
|
+
"POST /user/emails",
|
|
10145
|
+
{},
|
|
10146
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
10147
|
+
],
|
|
9277
10148
|
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
9278
10149
|
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
9279
10150
|
block: ["PUT /user/blocks/{username}"],
|
|
9280
10151
|
checkBlocked: ["GET /user/blocks/{username}"],
|
|
9281
10152
|
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
9282
10153
|
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
9283
|
-
createGpgKeyForAuthenticated: [
|
|
9284
|
-
|
|
9285
|
-
|
|
10154
|
+
createGpgKeyForAuthenticated: [
|
|
10155
|
+
"POST /user/gpg_keys",
|
|
10156
|
+
{},
|
|
10157
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
10158
|
+
],
|
|
9286
10159
|
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
9287
|
-
createPublicSshKeyForAuthenticated: [
|
|
9288
|
-
|
|
9289
|
-
|
|
10160
|
+
createPublicSshKeyForAuthenticated: [
|
|
10161
|
+
"POST /user/keys",
|
|
10162
|
+
{},
|
|
10163
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
10164
|
+
],
|
|
9290
10165
|
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
9291
10166
|
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
9292
|
-
deleteEmailForAuthenticated: [
|
|
9293
|
-
|
|
9294
|
-
|
|
10167
|
+
deleteEmailForAuthenticated: [
|
|
10168
|
+
"DELETE /user/emails",
|
|
10169
|
+
{},
|
|
10170
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
10171
|
+
],
|
|
9295
10172
|
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
9296
|
-
deleteGpgKeyForAuthenticated: [
|
|
9297
|
-
|
|
9298
|
-
|
|
10173
|
+
deleteGpgKeyForAuthenticated: [
|
|
10174
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
10175
|
+
{},
|
|
10176
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
10177
|
+
],
|
|
9299
10178
|
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
9300
|
-
deletePublicSshKeyForAuthenticated: [
|
|
9301
|
-
|
|
9302
|
-
|
|
10179
|
+
deletePublicSshKeyForAuthenticated: [
|
|
10180
|
+
"DELETE /user/keys/{key_id}",
|
|
10181
|
+
{},
|
|
10182
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
10183
|
+
],
|
|
9303
10184
|
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
9304
10185
|
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
9305
|
-
deleteSshSigningKeyForAuthenticatedUser: [
|
|
10186
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
10187
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
10188
|
+
],
|
|
9306
10189
|
follow: ["PUT /user/following/{username}"],
|
|
9307
10190
|
getAuthenticated: ["GET /user"],
|
|
9308
10191
|
getByUsername: ["GET /users/{username}"],
|
|
9309
10192
|
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
9310
|
-
getGpgKeyForAuthenticated: [
|
|
9311
|
-
|
|
9312
|
-
|
|
10193
|
+
getGpgKeyForAuthenticated: [
|
|
10194
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
10195
|
+
{},
|
|
10196
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
10197
|
+
],
|
|
9313
10198
|
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
9314
|
-
getPublicSshKeyForAuthenticated: [
|
|
9315
|
-
|
|
9316
|
-
|
|
10199
|
+
getPublicSshKeyForAuthenticated: [
|
|
10200
|
+
"GET /user/keys/{key_id}",
|
|
10201
|
+
{},
|
|
10202
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
10203
|
+
],
|
|
9317
10204
|
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
9318
|
-
getSshSigningKeyForAuthenticatedUser: [
|
|
10205
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
10206
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
10207
|
+
],
|
|
9319
10208
|
list: ["GET /users"],
|
|
9320
|
-
listBlockedByAuthenticated: [
|
|
9321
|
-
|
|
9322
|
-
|
|
10209
|
+
listBlockedByAuthenticated: [
|
|
10210
|
+
"GET /user/blocks",
|
|
10211
|
+
{},
|
|
10212
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
10213
|
+
],
|
|
9323
10214
|
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
9324
|
-
listEmailsForAuthenticated: [
|
|
9325
|
-
|
|
9326
|
-
|
|
10215
|
+
listEmailsForAuthenticated: [
|
|
10216
|
+
"GET /user/emails",
|
|
10217
|
+
{},
|
|
10218
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
10219
|
+
],
|
|
9327
10220
|
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
9328
|
-
listFollowedByAuthenticated: [
|
|
9329
|
-
|
|
9330
|
-
|
|
10221
|
+
listFollowedByAuthenticated: [
|
|
10222
|
+
"GET /user/following",
|
|
10223
|
+
{},
|
|
10224
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
10225
|
+
],
|
|
9331
10226
|
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
9332
10227
|
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
9333
10228
|
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
9334
10229
|
listFollowingForUser: ["GET /users/{username}/following"],
|
|
9335
|
-
listGpgKeysForAuthenticated: [
|
|
9336
|
-
|
|
9337
|
-
|
|
10230
|
+
listGpgKeysForAuthenticated: [
|
|
10231
|
+
"GET /user/gpg_keys",
|
|
10232
|
+
{},
|
|
10233
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
10234
|
+
],
|
|
9338
10235
|
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
9339
10236
|
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
9340
|
-
listPublicEmailsForAuthenticated: [
|
|
9341
|
-
|
|
9342
|
-
|
|
10237
|
+
listPublicEmailsForAuthenticated: [
|
|
10238
|
+
"GET /user/public_emails",
|
|
10239
|
+
{},
|
|
10240
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
10241
|
+
],
|
|
9343
10242
|
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
9344
10243
|
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
9345
|
-
listPublicSshKeysForAuthenticated: [
|
|
9346
|
-
|
|
9347
|
-
|
|
10244
|
+
listPublicSshKeysForAuthenticated: [
|
|
10245
|
+
"GET /user/keys",
|
|
10246
|
+
{},
|
|
10247
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
10248
|
+
],
|
|
9348
10249
|
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
9349
10250
|
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
9350
10251
|
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
9351
10252
|
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
9352
10253
|
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
9353
|
-
setPrimaryEmailVisibilityForAuthenticated: [
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
10254
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
10255
|
+
"PATCH /user/email/visibility",
|
|
10256
|
+
{},
|
|
10257
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
10258
|
+
],
|
|
10259
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
10260
|
+
"PATCH /user/email/visibility"
|
|
10261
|
+
],
|
|
9357
10262
|
unblock: ["DELETE /user/blocks/{username}"],
|
|
9358
10263
|
unfollow: ["DELETE /user/following/{username}"],
|
|
9359
10264
|
updateAuthenticated: ["PATCH /user"]
|
|
9360
10265
|
}
|
|
9361
10266
|
};
|
|
9362
|
-
var
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
for (const [
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
10267
|
+
var endpoints_default = Endpoints;
|
|
10268
|
+
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
10269
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
10270
|
+
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
|
10271
|
+
const [route, defaults, decorations] = endpoint;
|
|
10272
|
+
const [method, url] = route.split(/ /);
|
|
10273
|
+
const endpointDefaults = Object.assign(
|
|
10274
|
+
{
|
|
9370
10275
|
method,
|
|
9371
10276
|
url
|
|
9372
|
-
},
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
10277
|
+
},
|
|
10278
|
+
defaults
|
|
10279
|
+
);
|
|
10280
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
10281
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
10282
|
+
}
|
|
10283
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
10284
|
+
scope,
|
|
10285
|
+
methodName,
|
|
10286
|
+
endpointDefaults,
|
|
10287
|
+
decorations
|
|
10288
|
+
});
|
|
10289
|
+
}
|
|
10290
|
+
}
|
|
10291
|
+
var handler = {
|
|
10292
|
+
get({ octokit, scope, cache }, methodName) {
|
|
10293
|
+
if (cache[methodName]) {
|
|
10294
|
+
return cache[methodName];
|
|
10295
|
+
}
|
|
10296
|
+
const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName);
|
|
10297
|
+
if (decorations) {
|
|
10298
|
+
cache[methodName] = decorate(
|
|
10299
|
+
octokit,
|
|
10300
|
+
scope,
|
|
10301
|
+
methodName,
|
|
10302
|
+
endpointDefaults,
|
|
10303
|
+
decorations
|
|
10304
|
+
);
|
|
10305
|
+
} else {
|
|
10306
|
+
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
|
9382
10307
|
}
|
|
10308
|
+
return cache[methodName];
|
|
10309
|
+
}
|
|
10310
|
+
};
|
|
10311
|
+
function endpointsToMethods(octokit) {
|
|
10312
|
+
const newMethods = {};
|
|
10313
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
10314
|
+
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
|
9383
10315
|
}
|
|
9384
10316
|
return newMethods;
|
|
9385
10317
|
}
|
|
@@ -9396,16 +10328,22 @@ var require_dist_node11 = __commonJS({
|
|
|
9396
10328
|
}
|
|
9397
10329
|
if (decorations.renamed) {
|
|
9398
10330
|
const [newScope, newMethodName] = decorations.renamed;
|
|
9399
|
-
octokit.log.warn(
|
|
10331
|
+
octokit.log.warn(
|
|
10332
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
10333
|
+
);
|
|
9400
10334
|
}
|
|
9401
10335
|
if (decorations.deprecated) {
|
|
9402
10336
|
octokit.log.warn(decorations.deprecated);
|
|
9403
10337
|
}
|
|
9404
10338
|
if (decorations.renamedParameters) {
|
|
9405
10339
|
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
9406
|
-
for (const [name, alias] of Object.entries(
|
|
10340
|
+
for (const [name, alias] of Object.entries(
|
|
10341
|
+
decorations.renamedParameters
|
|
10342
|
+
)) {
|
|
9407
10343
|
if (name in options2) {
|
|
9408
|
-
octokit.log.warn(
|
|
10344
|
+
octokit.log.warn(
|
|
10345
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
10346
|
+
);
|
|
9409
10347
|
if (!(alias in options2)) {
|
|
9410
10348
|
options2[alias] = options2[name];
|
|
9411
10349
|
}
|
|
@@ -9419,22 +10357,20 @@ var require_dist_node11 = __commonJS({
|
|
|
9419
10357
|
return Object.assign(withDecorations, requestWithDefaults);
|
|
9420
10358
|
}
|
|
9421
10359
|
function restEndpointMethods(octokit) {
|
|
9422
|
-
const api = endpointsToMethods(octokit
|
|
10360
|
+
const api = endpointsToMethods(octokit);
|
|
9423
10361
|
return {
|
|
9424
10362
|
rest: api
|
|
9425
10363
|
};
|
|
9426
10364
|
}
|
|
9427
10365
|
restEndpointMethods.VERSION = VERSION;
|
|
9428
10366
|
function legacyRestEndpointMethods(octokit) {
|
|
9429
|
-
const api = endpointsToMethods(octokit
|
|
10367
|
+
const api = endpointsToMethods(octokit);
|
|
9430
10368
|
return {
|
|
9431
10369
|
...api,
|
|
9432
10370
|
rest: api
|
|
9433
10371
|
};
|
|
9434
10372
|
}
|
|
9435
10373
|
legacyRestEndpointMethods.VERSION = VERSION;
|
|
9436
|
-
exports2.legacyRestEndpointMethods = legacyRestEndpointMethods;
|
|
9437
|
-
exports2.restEndpointMethods = restEndpointMethods;
|
|
9438
10374
|
}
|
|
9439
10375
|
});
|
|
9440
10376
|
|
|
@@ -9468,7 +10404,7 @@ var require_dist_node12 = __commonJS({
|
|
|
9468
10404
|
var import_plugin_request_log = require_dist_node9();
|
|
9469
10405
|
var import_plugin_paginate_rest = require_dist_node10();
|
|
9470
10406
|
var import_plugin_rest_endpoint_methods = require_dist_node11();
|
|
9471
|
-
var VERSION = "19.0.
|
|
10407
|
+
var VERSION = "19.0.13";
|
|
9472
10408
|
var Octokit2 = import_core.Octokit.plugin(
|
|
9473
10409
|
import_plugin_request_log.requestLog,
|
|
9474
10410
|
import_plugin_rest_endpoint_methods.legacyRestEndpointMethods,
|