@cloudsnorkel/cdk-github-runners 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -1
- package/.jsii +66 -27
- package/API.md +42 -7
- package/SETUP_GITHUB.md +16 -12
- package/TESTING.md +61 -0
- package/assets/{delete-runner.lambda → delete-failed-runner.lambda}/index.js +2031 -518
- package/assets/idle-runner-repear.lambda/index.js +2052 -522
- package/assets/image-builders/aws-image-builder/versioner.lambda/index.js +1 -1
- package/assets/setup.lambda/index.html +1 -1
- package/assets/setup.lambda/index.js +577 -159
- package/assets/status.lambda/index.js +1652 -473
- package/assets/token-retriever.lambda/index.js +2025 -521
- package/lib/access.d.ts +4 -2
- package/lib/access.js +7 -5
- package/lib/delete-failed-runner-function.d.ts +13 -0
- package/lib/delete-failed-runner-function.js +23 -0
- package/lib/delete-failed-runner.lambda.js +51 -0
- package/lib/idle-runner-repear.lambda.js +43 -10
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/components.js +1 -1
- package/lib/image-builders/static.js +1 -1
- package/lib/lambda-github.d.ts +8 -4
- package/lib/lambda-github.js +23 -2
- package/lib/lambda-helpers.d.ts +5 -1
- package/lib/lambda-helpers.js +1 -1
- package/lib/providers/codebuild.js +2 -2
- package/lib/providers/common.d.ts +2 -0
- package/lib/providers/common.js +4 -4
- package/lib/providers/ec2.js +2 -2
- package/lib/providers/ecs.js +1 -1
- package/lib/providers/fargate.js +2 -2
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.d.ts +1 -1
- package/lib/runner.js +26 -25
- package/lib/secrets.d.ts +2 -2
- package/lib/secrets.js +2 -2
- package/lib/setup.lambda.js +2 -2
- package/lib/status.lambda.js +4 -4
- package/lib/token-retriever.lambda.js +2 -2
- package/lib/webhook.js +2 -2
- package/package.json +14 -14
- package/lib/delete-runner-function.d.ts +0 -13
- package/lib/delete-runner-function.js +0 -23
- package/lib/delete-runner.lambda.js +0 -41
- /package/lib/{delete-runner.lambda.d.ts → delete-failed-runner.lambda.d.ts} +0 -0
|
@@ -7392,42 +7392,76 @@ var require_dist_node4 = __commonJS({
|
|
|
7392
7392
|
|
|
7393
7393
|
// node_modules/@octokit/request/dist-node/index.js
|
|
7394
7394
|
var require_dist_node5 = __commonJS({
|
|
7395
|
-
"node_modules/@octokit/request/dist-node/index.js"(exports2) {
|
|
7395
|
+
"node_modules/@octokit/request/dist-node/index.js"(exports2, module2) {
|
|
7396
7396
|
"use strict";
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
var
|
|
7402
|
-
var
|
|
7403
|
-
var
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7397
|
+
var __create2 = Object.create;
|
|
7398
|
+
var __defProp2 = Object.defineProperty;
|
|
7399
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7400
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7401
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
7402
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7403
|
+
var __export = (target, all) => {
|
|
7404
|
+
for (var name in all)
|
|
7405
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7406
|
+
};
|
|
7407
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7408
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7409
|
+
for (let key of __getOwnPropNames2(from))
|
|
7410
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7411
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7412
|
+
}
|
|
7413
|
+
return to;
|
|
7414
|
+
};
|
|
7415
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7416
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
7417
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
7418
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7419
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7420
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
7421
|
+
mod
|
|
7422
|
+
));
|
|
7423
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7424
|
+
var dist_src_exports = {};
|
|
7425
|
+
__export(dist_src_exports, {
|
|
7426
|
+
request: () => request
|
|
7427
|
+
});
|
|
7428
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7429
|
+
var import_endpoint = require_dist_node2();
|
|
7430
|
+
var import_universal_user_agent = require_dist_node();
|
|
7431
|
+
var VERSION = "6.2.5";
|
|
7432
|
+
var import_is_plain_object = require_is_plain_object();
|
|
7433
|
+
var import_node_fetch = __toESM2(require_lib3());
|
|
7434
|
+
var import_request_error = require_dist_node4();
|
|
7407
7435
|
function getBufferResponse(response2) {
|
|
7408
7436
|
return response2.arrayBuffer();
|
|
7409
7437
|
}
|
|
7410
7438
|
function fetchWrapper(requestOptions) {
|
|
7411
7439
|
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
7412
|
-
if (
|
|
7440
|
+
if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
7413
7441
|
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
7414
7442
|
}
|
|
7415
7443
|
let headers = {};
|
|
7416
7444
|
let status;
|
|
7417
7445
|
let url;
|
|
7418
7446
|
const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch || /* istanbul ignore next */
|
|
7419
|
-
|
|
7420
|
-
return fetch(
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7447
|
+
import_node_fetch.default;
|
|
7448
|
+
return fetch(
|
|
7449
|
+
requestOptions.url,
|
|
7450
|
+
Object.assign(
|
|
7451
|
+
{
|
|
7452
|
+
method: requestOptions.method,
|
|
7453
|
+
body: requestOptions.body,
|
|
7454
|
+
headers: requestOptions.headers,
|
|
7455
|
+
redirect: requestOptions.redirect,
|
|
7456
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
7457
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
7458
|
+
...requestOptions.body && { duplex: "half" }
|
|
7459
|
+
},
|
|
7460
|
+
// `requestOptions.request.agent` type is incompatible
|
|
7461
|
+
// see https://github.com/octokit/types.ts/pull/264
|
|
7462
|
+
requestOptions.request
|
|
7463
|
+
)
|
|
7464
|
+
).then(async (response2) => {
|
|
7431
7465
|
url = response2.url;
|
|
7432
7466
|
status = response2.status;
|
|
7433
7467
|
for (const keyAndValue of response2.headers) {
|
|
@@ -7436,7 +7470,9 @@ var require_dist_node5 = __commonJS({
|
|
|
7436
7470
|
if ("deprecation" in headers) {
|
|
7437
7471
|
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
|
|
7438
7472
|
const deprecationLink = matches && matches.pop();
|
|
7439
|
-
log.warn(
|
|
7473
|
+
log.warn(
|
|
7474
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
7475
|
+
);
|
|
7440
7476
|
}
|
|
7441
7477
|
if (status === 204 || status === 205) {
|
|
7442
7478
|
return;
|
|
@@ -7445,7 +7481,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7445
7481
|
if (status < 400) {
|
|
7446
7482
|
return;
|
|
7447
7483
|
}
|
|
7448
|
-
throw new
|
|
7484
|
+
throw new import_request_error.RequestError(response2.statusText, status, {
|
|
7449
7485
|
response: {
|
|
7450
7486
|
url,
|
|
7451
7487
|
status,
|
|
@@ -7456,7 +7492,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7456
7492
|
});
|
|
7457
7493
|
}
|
|
7458
7494
|
if (status === 304) {
|
|
7459
|
-
throw new
|
|
7495
|
+
throw new import_request_error.RequestError("Not modified", status, {
|
|
7460
7496
|
response: {
|
|
7461
7497
|
url,
|
|
7462
7498
|
status,
|
|
@@ -7468,7 +7504,7 @@ var require_dist_node5 = __commonJS({
|
|
|
7468
7504
|
}
|
|
7469
7505
|
if (status >= 400) {
|
|
7470
7506
|
const data = await getResponseData(response2);
|
|
7471
|
-
const error = new
|
|
7507
|
+
const error = new import_request_error.RequestError(toErrorMessage(data), status, {
|
|
7472
7508
|
response: {
|
|
7473
7509
|
url,
|
|
7474
7510
|
status,
|
|
@@ -7488,11 +7524,11 @@ var require_dist_node5 = __commonJS({
|
|
|
7488
7524
|
data
|
|
7489
7525
|
};
|
|
7490
7526
|
}).catch((error) => {
|
|
7491
|
-
if (error instanceof
|
|
7527
|
+
if (error instanceof import_request_error.RequestError)
|
|
7492
7528
|
throw error;
|
|
7493
7529
|
else if (error.name === "AbortError")
|
|
7494
7530
|
throw error;
|
|
7495
|
-
throw new
|
|
7531
|
+
throw new import_request_error.RequestError(error.message, 500, {
|
|
7496
7532
|
request: requestOptions
|
|
7497
7533
|
});
|
|
7498
7534
|
});
|
|
@@ -7526,7 +7562,9 @@ var require_dist_node5 = __commonJS({
|
|
|
7526
7562
|
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
7527
7563
|
}
|
|
7528
7564
|
const request2 = (route2, parameters2) => {
|
|
7529
|
-
return fetchWrapper(
|
|
7565
|
+
return fetchWrapper(
|
|
7566
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
7567
|
+
);
|
|
7530
7568
|
};
|
|
7531
7569
|
Object.assign(request2, {
|
|
7532
7570
|
endpoint: endpoint2,
|
|
@@ -7539,23 +7577,45 @@ var require_dist_node5 = __commonJS({
|
|
|
7539
7577
|
defaults: withDefaults.bind(null, endpoint2)
|
|
7540
7578
|
});
|
|
7541
7579
|
}
|
|
7542
|
-
var request = withDefaults(
|
|
7580
|
+
var request = withDefaults(import_endpoint.endpoint, {
|
|
7543
7581
|
headers: {
|
|
7544
|
-
"user-agent": `octokit-request.js/${VERSION} ${
|
|
7582
|
+
"user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7545
7583
|
}
|
|
7546
7584
|
});
|
|
7547
|
-
exports2.request = request;
|
|
7548
7585
|
}
|
|
7549
7586
|
});
|
|
7550
7587
|
|
|
7551
7588
|
// node_modules/@octokit/graphql/dist-node/index.js
|
|
7552
7589
|
var require_dist_node6 = __commonJS({
|
|
7553
|
-
"node_modules/@octokit/graphql/dist-node/index.js"(exports2) {
|
|
7590
|
+
"node_modules/@octokit/graphql/dist-node/index.js"(exports2, module2) {
|
|
7554
7591
|
"use strict";
|
|
7555
|
-
Object.defineProperty
|
|
7556
|
-
var
|
|
7557
|
-
var
|
|
7558
|
-
var
|
|
7592
|
+
var __defProp2 = Object.defineProperty;
|
|
7593
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7594
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7595
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7596
|
+
var __export = (target, all) => {
|
|
7597
|
+
for (var name in all)
|
|
7598
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7599
|
+
};
|
|
7600
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7601
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7602
|
+
for (let key of __getOwnPropNames2(from))
|
|
7603
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7604
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7605
|
+
}
|
|
7606
|
+
return to;
|
|
7607
|
+
};
|
|
7608
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7609
|
+
var dist_src_exports = {};
|
|
7610
|
+
__export(dist_src_exports, {
|
|
7611
|
+
GraphqlResponseError: () => GraphqlResponseError,
|
|
7612
|
+
graphql: () => graphql2,
|
|
7613
|
+
withCustomRequest: () => withCustomRequest
|
|
7614
|
+
});
|
|
7615
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7616
|
+
var import_request = require_dist_node5();
|
|
7617
|
+
var import_universal_user_agent = require_dist_node();
|
|
7618
|
+
var VERSION = "5.0.6";
|
|
7559
7619
|
function _buildMessageForResponseErrors(data) {
|
|
7560
7620
|
return `Request failed due to following response errors:
|
|
7561
7621
|
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
@@ -7574,24 +7634,36 @@ var require_dist_node6 = __commonJS({
|
|
|
7574
7634
|
}
|
|
7575
7635
|
}
|
|
7576
7636
|
};
|
|
7577
|
-
var NON_VARIABLE_OPTIONS = [
|
|
7637
|
+
var NON_VARIABLE_OPTIONS = [
|
|
7638
|
+
"method",
|
|
7639
|
+
"baseUrl",
|
|
7640
|
+
"url",
|
|
7641
|
+
"headers",
|
|
7642
|
+
"request",
|
|
7643
|
+
"query",
|
|
7644
|
+
"mediaType"
|
|
7645
|
+
];
|
|
7578
7646
|
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
7579
7647
|
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
7580
7648
|
function graphql(request2, query, options) {
|
|
7581
7649
|
if (options) {
|
|
7582
7650
|
if (typeof query === "string" && "query" in options) {
|
|
7583
|
-
return Promise.reject(
|
|
7651
|
+
return Promise.reject(
|
|
7652
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
7653
|
+
);
|
|
7584
7654
|
}
|
|
7585
7655
|
for (const key in options) {
|
|
7586
7656
|
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
|
7587
7657
|
continue;
|
|
7588
|
-
return Promise.reject(
|
|
7658
|
+
return Promise.reject(
|
|
7659
|
+
new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)
|
|
7660
|
+
);
|
|
7589
7661
|
}
|
|
7590
7662
|
}
|
|
7591
|
-
const parsedOptions = typeof query === "string" ? Object.assign({
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7663
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
7664
|
+
const requestOptions = Object.keys(
|
|
7665
|
+
parsedOptions
|
|
7666
|
+
).reduce((result, key) => {
|
|
7595
7667
|
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
7596
7668
|
result[key] = parsedOptions[key];
|
|
7597
7669
|
return result;
|
|
@@ -7612,7 +7684,11 @@ var require_dist_node6 = __commonJS({
|
|
|
7612
7684
|
for (const key of Object.keys(response2.headers)) {
|
|
7613
7685
|
headers[key] = response2.headers[key];
|
|
7614
7686
|
}
|
|
7615
|
-
throw new GraphqlResponseError(
|
|
7687
|
+
throw new GraphqlResponseError(
|
|
7688
|
+
requestOptions,
|
|
7689
|
+
headers,
|
|
7690
|
+
response2.data
|
|
7691
|
+
);
|
|
7616
7692
|
}
|
|
7617
7693
|
return response2.data.data;
|
|
7618
7694
|
});
|
|
@@ -7627,9 +7703,9 @@ var require_dist_node6 = __commonJS({
|
|
|
7627
7703
|
endpoint: newRequest.endpoint
|
|
7628
7704
|
});
|
|
7629
7705
|
}
|
|
7630
|
-
var
|
|
7706
|
+
var graphql2 = withDefaults(import_request.request, {
|
|
7631
7707
|
headers: {
|
|
7632
|
-
"user-agent": `octokit-graphql.js/${VERSION} ${
|
|
7708
|
+
"user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7633
7709
|
},
|
|
7634
7710
|
method: "POST",
|
|
7635
7711
|
url: "/graphql"
|
|
@@ -7640,9 +7716,6 @@ var require_dist_node6 = __commonJS({
|
|
|
7640
7716
|
url: "/graphql"
|
|
7641
7717
|
});
|
|
7642
7718
|
}
|
|
7643
|
-
exports2.GraphqlResponseError = GraphqlResponseError;
|
|
7644
|
-
exports2.graphql = graphql$1;
|
|
7645
|
-
exports2.withCustomRequest = withCustomRequest;
|
|
7646
7719
|
}
|
|
7647
7720
|
});
|
|
7648
7721
|
|
|
@@ -7694,20 +7767,78 @@ var require_dist_node7 = __commonJS({
|
|
|
7694
7767
|
|
|
7695
7768
|
// node_modules/@octokit/core/dist-node/index.js
|
|
7696
7769
|
var require_dist_node8 = __commonJS({
|
|
7697
|
-
"node_modules/@octokit/core/dist-node/index.js"(exports2) {
|
|
7770
|
+
"node_modules/@octokit/core/dist-node/index.js"(exports2, module2) {
|
|
7698
7771
|
"use strict";
|
|
7699
|
-
Object.defineProperty
|
|
7700
|
-
var
|
|
7701
|
-
var
|
|
7702
|
-
var
|
|
7703
|
-
var
|
|
7704
|
-
|
|
7705
|
-
|
|
7772
|
+
var __defProp2 = Object.defineProperty;
|
|
7773
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7774
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7775
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7776
|
+
var __export = (target, all) => {
|
|
7777
|
+
for (var name in all)
|
|
7778
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7779
|
+
};
|
|
7780
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7781
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7782
|
+
for (let key of __getOwnPropNames2(from))
|
|
7783
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7784
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7785
|
+
}
|
|
7786
|
+
return to;
|
|
7787
|
+
};
|
|
7788
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7789
|
+
var dist_src_exports = {};
|
|
7790
|
+
__export(dist_src_exports, {
|
|
7791
|
+
Octokit: () => Octokit2
|
|
7792
|
+
});
|
|
7793
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7794
|
+
var import_universal_user_agent = require_dist_node();
|
|
7795
|
+
var import_before_after_hook = require_before_after_hook();
|
|
7796
|
+
var import_request = require_dist_node5();
|
|
7797
|
+
var import_graphql = require_dist_node6();
|
|
7798
|
+
var import_auth_token = require_dist_node7();
|
|
7799
|
+
var VERSION = "4.2.1";
|
|
7706
7800
|
var Octokit2 = class {
|
|
7801
|
+
static defaults(defaults) {
|
|
7802
|
+
const OctokitWithDefaults = class extends this {
|
|
7803
|
+
constructor(...args) {
|
|
7804
|
+
const options = args[0] || {};
|
|
7805
|
+
if (typeof defaults === "function") {
|
|
7806
|
+
super(defaults(options));
|
|
7807
|
+
return;
|
|
7808
|
+
}
|
|
7809
|
+
super(
|
|
7810
|
+
Object.assign(
|
|
7811
|
+
{},
|
|
7812
|
+
defaults,
|
|
7813
|
+
options,
|
|
7814
|
+
options.userAgent && defaults.userAgent ? {
|
|
7815
|
+
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
7816
|
+
} : null
|
|
7817
|
+
)
|
|
7818
|
+
);
|
|
7819
|
+
}
|
|
7820
|
+
};
|
|
7821
|
+
return OctokitWithDefaults;
|
|
7822
|
+
}
|
|
7823
|
+
/**
|
|
7824
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
7825
|
+
*
|
|
7826
|
+
* @example
|
|
7827
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
7828
|
+
*/
|
|
7829
|
+
static plugin(...newPlugins) {
|
|
7830
|
+
var _a;
|
|
7831
|
+
const currentPlugins = this.plugins;
|
|
7832
|
+
const NewOctokit = (_a = class extends this {
|
|
7833
|
+
}, _a.plugins = currentPlugins.concat(
|
|
7834
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
7835
|
+
), _a);
|
|
7836
|
+
return NewOctokit;
|
|
7837
|
+
}
|
|
7707
7838
|
constructor(options = {}) {
|
|
7708
|
-
const hook = new
|
|
7839
|
+
const hook = new import_before_after_hook.Collection();
|
|
7709
7840
|
const requestDefaults = {
|
|
7710
|
-
baseUrl:
|
|
7841
|
+
baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
|
|
7711
7842
|
headers: {},
|
|
7712
7843
|
request: Object.assign({}, options.request, {
|
|
7713
7844
|
// @ts-ignore internal usage only, no need to type
|
|
@@ -7718,7 +7849,10 @@ var require_dist_node8 = __commonJS({
|
|
|
7718
7849
|
format: ""
|
|
7719
7850
|
}
|
|
7720
7851
|
};
|
|
7721
|
-
requestDefaults.headers["user-agent"] = [
|
|
7852
|
+
requestDefaults.headers["user-agent"] = [
|
|
7853
|
+
options.userAgent,
|
|
7854
|
+
`octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
7855
|
+
].filter(Boolean).join(" ");
|
|
7722
7856
|
if (options.baseUrl) {
|
|
7723
7857
|
requestDefaults.baseUrl = options.baseUrl;
|
|
7724
7858
|
}
|
|
@@ -7728,16 +7862,19 @@ var require_dist_node8 = __commonJS({
|
|
|
7728
7862
|
if (options.timeZone) {
|
|
7729
7863
|
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
7730
7864
|
}
|
|
7731
|
-
this.request =
|
|
7732
|
-
this.graphql =
|
|
7733
|
-
this.log = Object.assign(
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7865
|
+
this.request = import_request.request.defaults(requestDefaults);
|
|
7866
|
+
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
|
|
7867
|
+
this.log = Object.assign(
|
|
7868
|
+
{
|
|
7869
|
+
debug: () => {
|
|
7870
|
+
},
|
|
7871
|
+
info: () => {
|
|
7872
|
+
},
|
|
7873
|
+
warn: console.warn.bind(console),
|
|
7874
|
+
error: console.error.bind(console)
|
|
7737
7875
|
},
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
}, options.log);
|
|
7876
|
+
options.log
|
|
7877
|
+
);
|
|
7741
7878
|
this.hook = hook;
|
|
7742
7879
|
if (!options.authStrategy) {
|
|
7743
7880
|
if (!options.auth) {
|
|
@@ -7745,26 +7882,28 @@ var require_dist_node8 = __commonJS({
|
|
|
7745
7882
|
type: "unauthenticated"
|
|
7746
7883
|
});
|
|
7747
7884
|
} else {
|
|
7748
|
-
const auth =
|
|
7885
|
+
const auth = (0, import_auth_token.createTokenAuth)(options.auth);
|
|
7749
7886
|
hook.wrap("request", auth.hook);
|
|
7750
7887
|
this.auth = auth;
|
|
7751
7888
|
}
|
|
7752
7889
|
} else {
|
|
7753
|
-
const {
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7890
|
+
const { authStrategy, ...otherOptions } = options;
|
|
7891
|
+
const auth = authStrategy(
|
|
7892
|
+
Object.assign(
|
|
7893
|
+
{
|
|
7894
|
+
request: this.request,
|
|
7895
|
+
log: this.log,
|
|
7896
|
+
// we pass the current octokit instance as well as its constructor options
|
|
7897
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
7898
|
+
// that shares the same internal state as the current one. The original
|
|
7899
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
7900
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
7901
|
+
octokit: this,
|
|
7902
|
+
octokitOptions: otherOptions
|
|
7903
|
+
},
|
|
7904
|
+
options.auth
|
|
7905
|
+
)
|
|
7906
|
+
);
|
|
7768
7907
|
hook.wrap("request", auth.hook);
|
|
7769
7908
|
this.auth = auth;
|
|
7770
7909
|
}
|
|
@@ -7773,38 +7912,9 @@ var require_dist_node8 = __commonJS({
|
|
|
7773
7912
|
Object.assign(this, plugin(this, options));
|
|
7774
7913
|
});
|
|
7775
7914
|
}
|
|
7776
|
-
static defaults(defaults) {
|
|
7777
|
-
const OctokitWithDefaults = class extends this {
|
|
7778
|
-
constructor(...args) {
|
|
7779
|
-
const options = args[0] || {};
|
|
7780
|
-
if (typeof defaults === "function") {
|
|
7781
|
-
super(defaults(options));
|
|
7782
|
-
return;
|
|
7783
|
-
}
|
|
7784
|
-
super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? {
|
|
7785
|
-
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
7786
|
-
} : null));
|
|
7787
|
-
}
|
|
7788
|
-
};
|
|
7789
|
-
return OctokitWithDefaults;
|
|
7790
|
-
}
|
|
7791
|
-
/**
|
|
7792
|
-
* Attach a plugin (or many) to your Octokit instance.
|
|
7793
|
-
*
|
|
7794
|
-
* @example
|
|
7795
|
-
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
7796
|
-
*/
|
|
7797
|
-
static plugin(...newPlugins) {
|
|
7798
|
-
var _a;
|
|
7799
|
-
const currentPlugins = this.plugins;
|
|
7800
|
-
const NewOctokit = (_a = class extends this {
|
|
7801
|
-
}, _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))), _a);
|
|
7802
|
-
return NewOctokit;
|
|
7803
|
-
}
|
|
7804
7915
|
};
|
|
7805
7916
|
Octokit2.VERSION = VERSION;
|
|
7806
7917
|
Octokit2.plugins = [];
|
|
7807
|
-
exports2.Octokit = Octokit2;
|
|
7808
7918
|
}
|
|
7809
7919
|
});
|
|
7810
7920
|
|
|
@@ -7836,10 +7946,34 @@ var require_dist_node9 = __commonJS({
|
|
|
7836
7946
|
|
|
7837
7947
|
// node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
|
|
7838
7948
|
var require_dist_node10 = __commonJS({
|
|
7839
|
-
"node_modules/@octokit/plugin-paginate-rest/dist-node/index.js"(exports2) {
|
|
7949
|
+
"node_modules/@octokit/plugin-paginate-rest/dist-node/index.js"(exports2, module2) {
|
|
7840
7950
|
"use strict";
|
|
7841
|
-
Object.defineProperty
|
|
7842
|
-
var
|
|
7951
|
+
var __defProp2 = Object.defineProperty;
|
|
7952
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7953
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7954
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7955
|
+
var __export = (target, all) => {
|
|
7956
|
+
for (var name in all)
|
|
7957
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7958
|
+
};
|
|
7959
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
7960
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7961
|
+
for (let key of __getOwnPropNames2(from))
|
|
7962
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7963
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
7964
|
+
}
|
|
7965
|
+
return to;
|
|
7966
|
+
};
|
|
7967
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7968
|
+
var dist_src_exports = {};
|
|
7969
|
+
__export(dist_src_exports, {
|
|
7970
|
+
composePaginateRest: () => composePaginateRest,
|
|
7971
|
+
isPaginatingEndpoint: () => isPaginatingEndpoint,
|
|
7972
|
+
paginateRest: () => paginateRest,
|
|
7973
|
+
paginatingEndpoints: () => paginatingEndpoints
|
|
7974
|
+
});
|
|
7975
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
7976
|
+
var VERSION = "6.1.2";
|
|
7843
7977
|
function normalizePaginatedListResponse(response2) {
|
|
7844
7978
|
if (!response2.data) {
|
|
7845
7979
|
return {
|
|
@@ -7878,20 +8012,14 @@ var require_dist_node10 = __commonJS({
|
|
|
7878
8012
|
[Symbol.asyncIterator]: () => ({
|
|
7879
8013
|
async next() {
|
|
7880
8014
|
if (!url)
|
|
7881
|
-
return {
|
|
7882
|
-
done: true
|
|
7883
|
-
};
|
|
8015
|
+
return { done: true };
|
|
7884
8016
|
try {
|
|
7885
|
-
const response2 = await requestMethod({
|
|
7886
|
-
method,
|
|
7887
|
-
url,
|
|
7888
|
-
headers
|
|
7889
|
-
});
|
|
8017
|
+
const response2 = await requestMethod({ method, url, headers });
|
|
7890
8018
|
const normalizedResponse = normalizePaginatedListResponse(response2);
|
|
7891
|
-
url = ((normalizedResponse.headers.link || "").match(
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
};
|
|
8019
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
8020
|
+
/<([^>]+)>;\s*rel="next"/
|
|
8021
|
+
) || [])[1];
|
|
8022
|
+
return { value: normalizedResponse };
|
|
7895
8023
|
} catch (error) {
|
|
7896
8024
|
if (error.status !== 409)
|
|
7897
8025
|
throw error;
|
|
@@ -7913,7 +8041,12 @@ var require_dist_node10 = __commonJS({
|
|
|
7913
8041
|
mapFn = parameters;
|
|
7914
8042
|
parameters = void 0;
|
|
7915
8043
|
}
|
|
7916
|
-
return gather(
|
|
8044
|
+
return gather(
|
|
8045
|
+
octokit,
|
|
8046
|
+
[],
|
|
8047
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
8048
|
+
mapFn
|
|
8049
|
+
);
|
|
7917
8050
|
}
|
|
7918
8051
|
function gather(octokit, results, iterator2, mapFn) {
|
|
7919
8052
|
return iterator2.next().then((result) => {
|
|
@@ -7924,7 +8057,9 @@ var require_dist_node10 = __commonJS({
|
|
|
7924
8057
|
function done() {
|
|
7925
8058
|
earlyExit = true;
|
|
7926
8059
|
}
|
|
7927
|
-
results = results.concat(
|
|
8060
|
+
results = results.concat(
|
|
8061
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
8062
|
+
);
|
|
7928
8063
|
if (earlyExit) {
|
|
7929
8064
|
return results;
|
|
7930
8065
|
}
|
|
@@ -7934,7 +8069,230 @@ var require_dist_node10 = __commonJS({
|
|
|
7934
8069
|
var composePaginateRest = Object.assign(paginate, {
|
|
7935
8070
|
iterator
|
|
7936
8071
|
});
|
|
7937
|
-
var paginatingEndpoints = [
|
|
8072
|
+
var paginatingEndpoints = [
|
|
8073
|
+
"GET /app/hook/deliveries",
|
|
8074
|
+
"GET /app/installation-requests",
|
|
8075
|
+
"GET /app/installations",
|
|
8076
|
+
"GET /enterprises/{enterprise}/dependabot/alerts",
|
|
8077
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
|
8078
|
+
"GET /events",
|
|
8079
|
+
"GET /gists",
|
|
8080
|
+
"GET /gists/public",
|
|
8081
|
+
"GET /gists/starred",
|
|
8082
|
+
"GET /gists/{gist_id}/comments",
|
|
8083
|
+
"GET /gists/{gist_id}/commits",
|
|
8084
|
+
"GET /gists/{gist_id}/forks",
|
|
8085
|
+
"GET /installation/repositories",
|
|
8086
|
+
"GET /issues",
|
|
8087
|
+
"GET /licenses",
|
|
8088
|
+
"GET /marketplace_listing/plans",
|
|
8089
|
+
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
|
8090
|
+
"GET /marketplace_listing/stubbed/plans",
|
|
8091
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
|
8092
|
+
"GET /networks/{owner}/{repo}/events",
|
|
8093
|
+
"GET /notifications",
|
|
8094
|
+
"GET /organizations",
|
|
8095
|
+
"GET /organizations/{org}/personal-access-token-requests",
|
|
8096
|
+
"GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
|
8097
|
+
"GET /organizations/{org}/personal-access-tokens",
|
|
8098
|
+
"GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories",
|
|
8099
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
|
8100
|
+
"GET /orgs/{org}/actions/permissions/repositories",
|
|
8101
|
+
"GET /orgs/{org}/actions/required_workflows",
|
|
8102
|
+
"GET /orgs/{org}/actions/runners",
|
|
8103
|
+
"GET /orgs/{org}/actions/secrets",
|
|
8104
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
|
8105
|
+
"GET /orgs/{org}/actions/variables",
|
|
8106
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
|
8107
|
+
"GET /orgs/{org}/blocks",
|
|
8108
|
+
"GET /orgs/{org}/code-scanning/alerts",
|
|
8109
|
+
"GET /orgs/{org}/codespaces",
|
|
8110
|
+
"GET /orgs/{org}/codespaces/secrets",
|
|
8111
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
|
8112
|
+
"GET /orgs/{org}/dependabot/alerts",
|
|
8113
|
+
"GET /orgs/{org}/dependabot/secrets",
|
|
8114
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
|
8115
|
+
"GET /orgs/{org}/events",
|
|
8116
|
+
"GET /orgs/{org}/failed_invitations",
|
|
8117
|
+
"GET /orgs/{org}/hooks",
|
|
8118
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
|
8119
|
+
"GET /orgs/{org}/installations",
|
|
8120
|
+
"GET /orgs/{org}/invitations",
|
|
8121
|
+
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
|
8122
|
+
"GET /orgs/{org}/issues",
|
|
8123
|
+
"GET /orgs/{org}/members",
|
|
8124
|
+
"GET /orgs/{org}/members/{username}/codespaces",
|
|
8125
|
+
"GET /orgs/{org}/migrations",
|
|
8126
|
+
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
|
8127
|
+
"GET /orgs/{org}/outside_collaborators",
|
|
8128
|
+
"GET /orgs/{org}/packages",
|
|
8129
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
8130
|
+
"GET /orgs/{org}/projects",
|
|
8131
|
+
"GET /orgs/{org}/public_members",
|
|
8132
|
+
"GET /orgs/{org}/repos",
|
|
8133
|
+
"GET /orgs/{org}/secret-scanning/alerts",
|
|
8134
|
+
"GET /orgs/{org}/teams",
|
|
8135
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
|
8136
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
|
8137
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
8138
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
|
8139
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
|
8140
|
+
"GET /orgs/{org}/teams/{team_slug}/members",
|
|
8141
|
+
"GET /orgs/{org}/teams/{team_slug}/projects",
|
|
8142
|
+
"GET /orgs/{org}/teams/{team_slug}/repos",
|
|
8143
|
+
"GET /orgs/{org}/teams/{team_slug}/teams",
|
|
8144
|
+
"GET /projects/columns/{column_id}/cards",
|
|
8145
|
+
"GET /projects/{project_id}/collaborators",
|
|
8146
|
+
"GET /projects/{project_id}/columns",
|
|
8147
|
+
"GET /repos/{org}/{repo}/actions/required_workflows",
|
|
8148
|
+
"GET /repos/{owner}/{repo}/actions/artifacts",
|
|
8149
|
+
"GET /repos/{owner}/{repo}/actions/caches",
|
|
8150
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
|
8151
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
|
8152
|
+
"GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs",
|
|
8153
|
+
"GET /repos/{owner}/{repo}/actions/runners",
|
|
8154
|
+
"GET /repos/{owner}/{repo}/actions/runs",
|
|
8155
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
|
8156
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
|
8157
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
|
8158
|
+
"GET /repos/{owner}/{repo}/actions/secrets",
|
|
8159
|
+
"GET /repos/{owner}/{repo}/actions/variables",
|
|
8160
|
+
"GET /repos/{owner}/{repo}/actions/workflows",
|
|
8161
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
|
8162
|
+
"GET /repos/{owner}/{repo}/assignees",
|
|
8163
|
+
"GET /repos/{owner}/{repo}/branches",
|
|
8164
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
|
8165
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
|
8166
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
|
8167
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
8168
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
|
8169
|
+
"GET /repos/{owner}/{repo}/codespaces",
|
|
8170
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
|
8171
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
|
8172
|
+
"GET /repos/{owner}/{repo}/collaborators",
|
|
8173
|
+
"GET /repos/{owner}/{repo}/comments",
|
|
8174
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
|
8175
|
+
"GET /repos/{owner}/{repo}/commits",
|
|
8176
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
|
8177
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
|
8178
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
|
8179
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
|
8180
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
|
8181
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
|
8182
|
+
"GET /repos/{owner}/{repo}/contributors",
|
|
8183
|
+
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
|
8184
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
|
8185
|
+
"GET /repos/{owner}/{repo}/deployments",
|
|
8186
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
|
8187
|
+
"GET /repos/{owner}/{repo}/environments",
|
|
8188
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
|
8189
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
|
8190
|
+
"GET /repos/{owner}/{repo}/events",
|
|
8191
|
+
"GET /repos/{owner}/{repo}/forks",
|
|
8192
|
+
"GET /repos/{owner}/{repo}/hooks",
|
|
8193
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
|
8194
|
+
"GET /repos/{owner}/{repo}/invitations",
|
|
8195
|
+
"GET /repos/{owner}/{repo}/issues",
|
|
8196
|
+
"GET /repos/{owner}/{repo}/issues/comments",
|
|
8197
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
|
8198
|
+
"GET /repos/{owner}/{repo}/issues/events",
|
|
8199
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
8200
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
|
8201
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
8202
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
|
8203
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
|
8204
|
+
"GET /repos/{owner}/{repo}/keys",
|
|
8205
|
+
"GET /repos/{owner}/{repo}/labels",
|
|
8206
|
+
"GET /repos/{owner}/{repo}/milestones",
|
|
8207
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
|
8208
|
+
"GET /repos/{owner}/{repo}/notifications",
|
|
8209
|
+
"GET /repos/{owner}/{repo}/pages/builds",
|
|
8210
|
+
"GET /repos/{owner}/{repo}/projects",
|
|
8211
|
+
"GET /repos/{owner}/{repo}/pulls",
|
|
8212
|
+
"GET /repos/{owner}/{repo}/pulls/comments",
|
|
8213
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
|
8214
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
|
8215
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
|
8216
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
|
8217
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
|
8218
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
|
8219
|
+
"GET /repos/{owner}/{repo}/releases",
|
|
8220
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
|
8221
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
|
8222
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
|
8223
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
|
8224
|
+
"GET /repos/{owner}/{repo}/security-advisories",
|
|
8225
|
+
"GET /repos/{owner}/{repo}/stargazers",
|
|
8226
|
+
"GET /repos/{owner}/{repo}/subscribers",
|
|
8227
|
+
"GET /repos/{owner}/{repo}/tags",
|
|
8228
|
+
"GET /repos/{owner}/{repo}/teams",
|
|
8229
|
+
"GET /repos/{owner}/{repo}/topics",
|
|
8230
|
+
"GET /repositories",
|
|
8231
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/secrets",
|
|
8232
|
+
"GET /repositories/{repository_id}/environments/{environment_name}/variables",
|
|
8233
|
+
"GET /search/code",
|
|
8234
|
+
"GET /search/commits",
|
|
8235
|
+
"GET /search/issues",
|
|
8236
|
+
"GET /search/labels",
|
|
8237
|
+
"GET /search/repositories",
|
|
8238
|
+
"GET /search/topics",
|
|
8239
|
+
"GET /search/users",
|
|
8240
|
+
"GET /teams/{team_id}/discussions",
|
|
8241
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
|
8242
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
8243
|
+
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
|
8244
|
+
"GET /teams/{team_id}/invitations",
|
|
8245
|
+
"GET /teams/{team_id}/members",
|
|
8246
|
+
"GET /teams/{team_id}/projects",
|
|
8247
|
+
"GET /teams/{team_id}/repos",
|
|
8248
|
+
"GET /teams/{team_id}/teams",
|
|
8249
|
+
"GET /user/blocks",
|
|
8250
|
+
"GET /user/codespaces",
|
|
8251
|
+
"GET /user/codespaces/secrets",
|
|
8252
|
+
"GET /user/emails",
|
|
8253
|
+
"GET /user/followers",
|
|
8254
|
+
"GET /user/following",
|
|
8255
|
+
"GET /user/gpg_keys",
|
|
8256
|
+
"GET /user/installations",
|
|
8257
|
+
"GET /user/installations/{installation_id}/repositories",
|
|
8258
|
+
"GET /user/issues",
|
|
8259
|
+
"GET /user/keys",
|
|
8260
|
+
"GET /user/marketplace_purchases",
|
|
8261
|
+
"GET /user/marketplace_purchases/stubbed",
|
|
8262
|
+
"GET /user/memberships/orgs",
|
|
8263
|
+
"GET /user/migrations",
|
|
8264
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
8265
|
+
"GET /user/orgs",
|
|
8266
|
+
"GET /user/packages",
|
|
8267
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
8268
|
+
"GET /user/public_emails",
|
|
8269
|
+
"GET /user/repos",
|
|
8270
|
+
"GET /user/repository_invitations",
|
|
8271
|
+
"GET /user/social_accounts",
|
|
8272
|
+
"GET /user/ssh_signing_keys",
|
|
8273
|
+
"GET /user/starred",
|
|
8274
|
+
"GET /user/subscriptions",
|
|
8275
|
+
"GET /user/teams",
|
|
8276
|
+
"GET /users",
|
|
8277
|
+
"GET /users/{username}/events",
|
|
8278
|
+
"GET /users/{username}/events/orgs/{org}",
|
|
8279
|
+
"GET /users/{username}/events/public",
|
|
8280
|
+
"GET /users/{username}/followers",
|
|
8281
|
+
"GET /users/{username}/following",
|
|
8282
|
+
"GET /users/{username}/gists",
|
|
8283
|
+
"GET /users/{username}/gpg_keys",
|
|
8284
|
+
"GET /users/{username}/keys",
|
|
8285
|
+
"GET /users/{username}/orgs",
|
|
8286
|
+
"GET /users/{username}/packages",
|
|
8287
|
+
"GET /users/{username}/projects",
|
|
8288
|
+
"GET /users/{username}/received_events",
|
|
8289
|
+
"GET /users/{username}/received_events/public",
|
|
8290
|
+
"GET /users/{username}/repos",
|
|
8291
|
+
"GET /users/{username}/social_accounts",
|
|
8292
|
+
"GET /users/{username}/ssh_signing_keys",
|
|
8293
|
+
"GET /users/{username}/starred",
|
|
8294
|
+
"GET /users/{username}/subscriptions"
|
|
8295
|
+
];
|
|
7938
8296
|
function isPaginatingEndpoint(arg) {
|
|
7939
8297
|
if (typeof arg === "string") {
|
|
7940
8298
|
return paginatingEndpoints.includes(arg);
|
|
@@ -7950,10 +8308,6 @@ var require_dist_node10 = __commonJS({
|
|
|
7950
8308
|
};
|
|
7951
8309
|
}
|
|
7952
8310
|
paginateRest.VERSION = VERSION;
|
|
7953
|
-
exports2.composePaginateRest = composePaginateRest;
|
|
7954
|
-
exports2.isPaginatingEndpoint = isPaginatingEndpoint;
|
|
7955
|
-
exports2.paginateRest = paginateRest;
|
|
7956
|
-
exports2.paginatingEndpoints = paginatingEndpoints;
|
|
7957
8311
|
}
|
|
7958
8312
|
});
|
|
7959
8313
|
|
|
@@ -8051,6 +8405,8 @@ var require_dist_node11 = __commonJS({
|
|
|
8051
8405
|
listLabelsForSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
|
|
8052
8406
|
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
8053
8407
|
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
8408
|
+
listRepoOrganizationSecrets: ["GET /repos/{owner}/{repo}/actions/organization-secrets"],
|
|
8409
|
+
listRepoOrganizationVariables: ["GET /repos/{owner}/{repo}/actions/organization-variables"],
|
|
8054
8410
|
listRepoRequiredWorkflows: ["GET /repos/{org}/{repo}/actions/required_workflows"],
|
|
8055
8411
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
8056
8412
|
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
@@ -8078,6 +8434,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8078
8434
|
removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],
|
|
8079
8435
|
removeSelectedRepoFromOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],
|
|
8080
8436
|
removeSelectedRepoFromRequiredWorkflow: ["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],
|
|
8437
|
+
reviewCustomGatesForRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],
|
|
8081
8438
|
reviewPendingDeploymentsForRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],
|
|
8082
8439
|
setAllowedActionsOrganization: ["PUT /orgs/{org}/actions/permissions/selected-actions"],
|
|
8083
8440
|
setAllowedActionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],
|
|
@@ -8154,6 +8511,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8154
8511
|
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
8155
8512
|
listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
|
|
8156
8513
|
listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories"],
|
|
8514
|
+
listInstallationRequestsForAuthenticatedApp: ["GET /app/installation-requests"],
|
|
8157
8515
|
listInstallations: ["GET /app/installations"],
|
|
8158
8516
|
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
8159
8517
|
listPlans: ["GET /marketplace_listing/plans"],
|
|
@@ -8205,6 +8563,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8205
8563
|
}],
|
|
8206
8564
|
getAnalysis: ["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],
|
|
8207
8565
|
getCodeqlDatabase: ["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],
|
|
8566
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
8208
8567
|
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
8209
8568
|
listAlertInstances: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],
|
|
8210
8569
|
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
@@ -8215,6 +8574,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8215
8574
|
listCodeqlDatabases: ["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],
|
|
8216
8575
|
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
8217
8576
|
updateAlert: ["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],
|
|
8577
|
+
updateDefaultSetup: ["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
8218
8578
|
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
8219
8579
|
},
|
|
8220
8580
|
codesOfConduct: {
|
|
@@ -8231,6 +8591,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8231
8591
|
createOrUpdateSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}"],
|
|
8232
8592
|
createWithPrForAuthenticatedUser: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],
|
|
8233
8593
|
createWithRepoForAuthenticatedUser: ["POST /repos/{owner}/{repo}/codespaces"],
|
|
8594
|
+
deleteCodespacesBillingUsers: ["DELETE /orgs/{org}/codespaces/billing/selected_users"],
|
|
8234
8595
|
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
8235
8596
|
deleteFromOrganization: ["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],
|
|
8236
8597
|
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
@@ -8265,6 +8626,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8265
8626
|
removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],
|
|
8266
8627
|
repoMachinesForAuthenticatedUser: ["GET /repos/{owner}/{repo}/codespaces/machines"],
|
|
8267
8628
|
setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
|
|
8629
|
+
setCodespacesBillingUsers: ["POST /orgs/{org}/codespaces/billing/selected_users"],
|
|
8268
8630
|
setRepositoriesForSecretForAuthenticatedUser: ["PUT /user/codespaces/secrets/{secret_name}/repositories"],
|
|
8269
8631
|
setSelectedReposForOrgSecret: ["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],
|
|
8270
8632
|
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
@@ -8295,16 +8657,12 @@ var require_dist_node11 = __commonJS({
|
|
|
8295
8657
|
},
|
|
8296
8658
|
dependencyGraph: {
|
|
8297
8659
|
createRepositorySnapshot: ["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],
|
|
8298
|
-
diffRange: ["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]
|
|
8660
|
+
diffRange: ["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],
|
|
8661
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
8299
8662
|
},
|
|
8300
8663
|
emojis: {
|
|
8301
8664
|
get: ["GET /emojis"]
|
|
8302
8665
|
},
|
|
8303
|
-
enterpriseAdmin: {
|
|
8304
|
-
addCustomLabelsToSelfHostedRunnerForEnterprise: ["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],
|
|
8305
|
-
enableSelectedOrganizationGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],
|
|
8306
|
-
listLabelsForSelfHostedRunnerForEnterprise: ["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"]
|
|
8307
|
-
},
|
|
8308
8666
|
gists: {
|
|
8309
8667
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
8310
8668
|
create: ["POST /gists"],
|
|
@@ -8465,6 +8823,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8465
8823
|
convertMemberToOutsideCollaborator: ["PUT /orgs/{org}/outside_collaborators/{username}"],
|
|
8466
8824
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
8467
8825
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
8826
|
+
delete: ["DELETE /orgs/{org}"],
|
|
8468
8827
|
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
8469
8828
|
enableOrDisableSecurityProductOnAllOrgRepos: ["POST /orgs/{org}/{security_product}/{enablement}"],
|
|
8470
8829
|
get: ["GET /orgs/{org}"],
|
|
@@ -8483,6 +8842,10 @@ var require_dist_node11 = __commonJS({
|
|
|
8483
8842
|
listMembers: ["GET /orgs/{org}/members"],
|
|
8484
8843
|
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
8485
8844
|
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
8845
|
+
listPatGrantRepositories: ["GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"],
|
|
8846
|
+
listPatGrantRequestRepositories: ["GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"],
|
|
8847
|
+
listPatGrantRequests: ["GET /organizations/{org}/personal-access-token-requests"],
|
|
8848
|
+
listPatGrants: ["GET /organizations/{org}/personal-access-tokens"],
|
|
8486
8849
|
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
8487
8850
|
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
8488
8851
|
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
|
@@ -8495,11 +8858,15 @@ var require_dist_node11 = __commonJS({
|
|
|
8495
8858
|
removeOutsideCollaborator: ["DELETE /orgs/{org}/outside_collaborators/{username}"],
|
|
8496
8859
|
removePublicMembershipForAuthenticatedUser: ["DELETE /orgs/{org}/public_members/{username}"],
|
|
8497
8860
|
removeSecurityManagerTeam: ["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],
|
|
8861
|
+
reviewPatGrantRequest: ["POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"],
|
|
8862
|
+
reviewPatGrantRequestsInBulk: ["POST /organizations/{org}/personal-access-token-requests"],
|
|
8498
8863
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
8499
8864
|
setPublicMembershipForAuthenticatedUser: ["PUT /orgs/{org}/public_members/{username}"],
|
|
8500
8865
|
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
8501
8866
|
update: ["PATCH /orgs/{org}"],
|
|
8502
8867
|
updateMembershipForAuthenticatedUser: ["PATCH /user/memberships/orgs/{org}"],
|
|
8868
|
+
updatePatAccess: ["POST /organizations/{org}/personal-access-tokens/{pat_id}"],
|
|
8869
|
+
updatePatAccesses: ["POST /organizations/{org}/personal-access-tokens"],
|
|
8503
8870
|
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
8504
8871
|
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
8505
8872
|
},
|
|
@@ -8525,6 +8892,9 @@ var require_dist_node11 = __commonJS({
|
|
|
8525
8892
|
getPackageVersionForAuthenticatedUser: ["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],
|
|
8526
8893
|
getPackageVersionForOrganization: ["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
|
|
8527
8894
|
getPackageVersionForUser: ["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],
|
|
8895
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: ["GET /user/docker/conflicts"],
|
|
8896
|
+
listDockerMigrationConflictingPackagesForOrganization: ["GET /orgs/{org}/docker/conflicts"],
|
|
8897
|
+
listDockerMigrationConflictingPackagesForUser: ["GET /users/{username}/docker/conflicts"],
|
|
8528
8898
|
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
8529
8899
|
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
8530
8900
|
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
@@ -8647,6 +9017,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8647
9017
|
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
8648
9018
|
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
8649
9019
|
createDeploymentBranchPolicy: ["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],
|
|
9020
|
+
createDeploymentProtectionRule: ["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],
|
|
8650
9021
|
createDeploymentStatus: ["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
|
|
8651
9022
|
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
8652
9023
|
createForAuthenticatedUser: ["POST /user/repos"],
|
|
@@ -8654,9 +9025,11 @@ var require_dist_node11 = __commonJS({
|
|
|
8654
9025
|
createInOrg: ["POST /orgs/{org}/repos"],
|
|
8655
9026
|
createOrUpdateEnvironment: ["PUT /repos/{owner}/{repo}/environments/{environment_name}"],
|
|
8656
9027
|
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
9028
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
8657
9029
|
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
|
|
8658
9030
|
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
8659
9031
|
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
9032
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
8660
9033
|
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
|
8661
9034
|
createUsingTemplate: ["POST /repos/{template_owner}/{template_repo}/generate"],
|
|
8662
9035
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
@@ -8677,13 +9050,16 @@ var require_dist_node11 = __commonJS({
|
|
|
8677
9050
|
deleteDeploymentBranchPolicy: ["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
|
|
8678
9051
|
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
8679
9052
|
deleteInvitation: ["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],
|
|
9053
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
8680
9054
|
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
8681
9055
|
deletePullRequestReviewProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
|
|
8682
9056
|
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8683
9057
|
deleteReleaseAsset: ["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
9058
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
8684
9059
|
deleteTagProtection: ["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],
|
|
8685
9060
|
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
8686
9061
|
disableAutomatedSecurityFixes: ["DELETE /repos/{owner}/{repo}/automated-security-fixes"],
|
|
9062
|
+
disableDeploymentProtectionRule: ["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],
|
|
8687
9063
|
disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
|
|
8688
9064
|
disableVulnerabilityAlerts: ["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],
|
|
8689
9065
|
downloadArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}", {}, {
|
|
@@ -8698,6 +9074,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8698
9074
|
get: ["GET /repos/{owner}/{repo}"],
|
|
8699
9075
|
getAccessRestrictions: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],
|
|
8700
9076
|
getAdminBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],
|
|
9077
|
+
getAllDeploymentProtectionRules: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],
|
|
8701
9078
|
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
8702
9079
|
getAllStatusCheckContexts: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],
|
|
8703
9080
|
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
@@ -8705,6 +9082,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8705
9082
|
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
8706
9083
|
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
8707
9084
|
getBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection"],
|
|
9085
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
8708
9086
|
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
8709
9087
|
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
8710
9088
|
getCollaboratorPermissionLevel: ["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],
|
|
@@ -8716,6 +9094,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8716
9094
|
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
8717
9095
|
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
8718
9096
|
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
9097
|
+
getCustomDeploymentProtectionRule: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],
|
|
8719
9098
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
8720
9099
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
8721
9100
|
getDeploymentBranchPolicy: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
|
|
@@ -8723,6 +9102,8 @@ var require_dist_node11 = __commonJS({
|
|
|
8723
9102
|
getEnvironment: ["GET /repos/{owner}/{repo}/environments/{environment_name}"],
|
|
8724
9103
|
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
8725
9104
|
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
9105
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
9106
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
8726
9107
|
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
8727
9108
|
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
8728
9109
|
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
@@ -8734,6 +9115,8 @@ var require_dist_node11 = __commonJS({
|
|
|
8734
9115
|
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8735
9116
|
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
8736
9117
|
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
9118
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
9119
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
8737
9120
|
getStatusChecksProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],
|
|
8738
9121
|
getTeamsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],
|
|
8739
9122
|
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
@@ -8752,6 +9135,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8752
9135
|
listCommitStatusesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],
|
|
8753
9136
|
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
8754
9137
|
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
9138
|
+
listCustomDeploymentRuleIntegrations: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],
|
|
8755
9139
|
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
8756
9140
|
listDeploymentBranchPolicies: ["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],
|
|
8757
9141
|
listDeploymentStatuses: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],
|
|
@@ -8815,9 +9199,11 @@ var require_dist_node11 = __commonJS({
|
|
|
8815
9199
|
updateDeploymentBranchPolicy: ["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],
|
|
8816
9200
|
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
8817
9201
|
updateInvitation: ["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],
|
|
9202
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
8818
9203
|
updatePullRequestReviewProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],
|
|
8819
9204
|
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
8820
9205
|
updateReleaseAsset: ["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
9206
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
8821
9207
|
updateStatusCheckPotection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", {}, {
|
|
8822
9208
|
renamed: ["repos", "updateStatusCheckProtection"]
|
|
8823
9209
|
}],
|
|
@@ -8839,15 +9225,19 @@ var require_dist_node11 = __commonJS({
|
|
|
8839
9225
|
},
|
|
8840
9226
|
secretScanning: {
|
|
8841
9227
|
getAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],
|
|
8842
|
-
getSecurityAnalysisSettingsForEnterprise: ["GET /enterprises/{enterprise}/code_security_and_analysis"],
|
|
8843
9228
|
listAlertsForEnterprise: ["GET /enterprises/{enterprise}/secret-scanning/alerts"],
|
|
8844
9229
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
8845
9230
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
8846
9231
|
listLocationsForAlert: ["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],
|
|
8847
|
-
patchSecurityAnalysisSettingsForEnterprise: ["PATCH /enterprises/{enterprise}/code_security_and_analysis"],
|
|
8848
|
-
postSecurityProductEnablementForEnterprise: ["POST /enterprises/{enterprise}/{security_product}/{enablement}"],
|
|
8849
9232
|
updateAlert: ["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]
|
|
8850
9233
|
},
|
|
9234
|
+
securityAdvisories: {
|
|
9235
|
+
createPrivateVulnerabilityReport: ["POST /repos/{owner}/{repo}/security-advisories/reports"],
|
|
9236
|
+
createRepositoryAdvisory: ["POST /repos/{owner}/{repo}/security-advisories"],
|
|
9237
|
+
getRepositoryAdvisory: ["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],
|
|
9238
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
9239
|
+
updateRepositoryAdvisory: ["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]
|
|
9240
|
+
},
|
|
8851
9241
|
teams: {
|
|
8852
9242
|
addOrUpdateMembershipForUserInOrg: ["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],
|
|
8853
9243
|
addOrUpdateProjectPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],
|
|
@@ -8885,6 +9275,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8885
9275
|
renamed: ["users", "addEmailForAuthenticatedUser"]
|
|
8886
9276
|
}],
|
|
8887
9277
|
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
9278
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
8888
9279
|
block: ["PUT /user/blocks/{username}"],
|
|
8889
9280
|
checkBlocked: ["GET /user/blocks/{username}"],
|
|
8890
9281
|
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
@@ -8910,6 +9301,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8910
9301
|
renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"]
|
|
8911
9302
|
}],
|
|
8912
9303
|
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
9304
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
8913
9305
|
deleteSshSigningKeyForAuthenticatedUser: ["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],
|
|
8914
9306
|
follow: ["PUT /user/following/{username}"],
|
|
8915
9307
|
getAuthenticated: ["GET /user"],
|
|
@@ -8954,6 +9346,8 @@ var require_dist_node11 = __commonJS({
|
|
|
8954
9346
|
renamed: ["users", "listPublicSshKeysForAuthenticatedUser"]
|
|
8955
9347
|
}],
|
|
8956
9348
|
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
9349
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
9350
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
8957
9351
|
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
8958
9352
|
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
8959
9353
|
setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility", {}, {
|
|
@@ -8965,7 +9359,7 @@ var require_dist_node11 = __commonJS({
|
|
|
8965
9359
|
updateAuthenticated: ["PATCH /user"]
|
|
8966
9360
|
}
|
|
8967
9361
|
};
|
|
8968
|
-
var VERSION = "7.
|
|
9362
|
+
var VERSION = "7.1.2";
|
|
8969
9363
|
function endpointsToMethods(octokit, endpointsMap) {
|
|
8970
9364
|
const newMethods = {};
|
|
8971
9365
|
for (const [scope, endpoints] of Object.entries(endpointsMap)) {
|
|
@@ -9046,18 +9440,42 @@ var require_dist_node11 = __commonJS({
|
|
|
9046
9440
|
|
|
9047
9441
|
// node_modules/@octokit/rest/dist-node/index.js
|
|
9048
9442
|
var require_dist_node12 = __commonJS({
|
|
9049
|
-
"node_modules/@octokit/rest/dist-node/index.js"(exports2) {
|
|
9443
|
+
"node_modules/@octokit/rest/dist-node/index.js"(exports2, module2) {
|
|
9050
9444
|
"use strict";
|
|
9051
|
-
Object.defineProperty
|
|
9052
|
-
var
|
|
9053
|
-
var
|
|
9054
|
-
var
|
|
9055
|
-
var
|
|
9056
|
-
|
|
9057
|
-
|
|
9445
|
+
var __defProp2 = Object.defineProperty;
|
|
9446
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
9447
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
9448
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
9449
|
+
var __export = (target, all) => {
|
|
9450
|
+
for (var name in all)
|
|
9451
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
9452
|
+
};
|
|
9453
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
9454
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9455
|
+
for (let key of __getOwnPropNames2(from))
|
|
9456
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
9457
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
9458
|
+
}
|
|
9459
|
+
return to;
|
|
9460
|
+
};
|
|
9461
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
9462
|
+
var dist_src_exports = {};
|
|
9463
|
+
__export(dist_src_exports, {
|
|
9464
|
+
Octokit: () => Octokit2
|
|
9465
|
+
});
|
|
9466
|
+
module2.exports = __toCommonJS(dist_src_exports);
|
|
9467
|
+
var import_core = require_dist_node8();
|
|
9468
|
+
var import_plugin_request_log = require_dist_node9();
|
|
9469
|
+
var import_plugin_paginate_rest = require_dist_node10();
|
|
9470
|
+
var import_plugin_rest_endpoint_methods = require_dist_node11();
|
|
9471
|
+
var VERSION = "19.0.11";
|
|
9472
|
+
var Octokit2 = import_core.Octokit.plugin(
|
|
9473
|
+
import_plugin_request_log.requestLog,
|
|
9474
|
+
import_plugin_rest_endpoint_methods.legacyRestEndpointMethods,
|
|
9475
|
+
import_plugin_paginate_rest.paginateRest
|
|
9476
|
+
).defaults({
|
|
9058
9477
|
userAgent: `octokit-rest.js/${VERSION}`
|
|
9059
9478
|
});
|
|
9060
|
-
exports2.Octokit = Octokit2;
|
|
9061
9479
|
}
|
|
9062
9480
|
});
|
|
9063
9481
|
|
|
@@ -9145,7 +9563,7 @@ async function handlePat(event) {
|
|
|
9145
9563
|
}
|
|
9146
9564
|
await updateSecretValue(process.env.GITHUB_SECRET_ARN, JSON.stringify({
|
|
9147
9565
|
domain: body.domain,
|
|
9148
|
-
appId:
|
|
9566
|
+
appId: -1,
|
|
9149
9567
|
personalAuthToken: body.pat
|
|
9150
9568
|
}));
|
|
9151
9569
|
await updateSecretValue(process.env.SETUP_SECRET_ARN, JSON.stringify({ token: "" }));
|