zotero-plugin 2.0.21 → 2.0.23
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/bin/branches.js +3581 -23
- package/bin/link.js +53 -23
- package/bin/release.js +9910 -161
- package/bin/zipup.js +26231 -20
- package/loader/json.d.ts +1 -2
- package/loader/json.js +7 -4
- package/loader/peggy.d.ts +1 -2
- package/loader/peggy.js +4 -2
- package/loader/wrap.d.ts +1 -2
- package/loader/wrap.js +4 -2
- package/package.json +5 -2
- package/rdf.js +4 -4
package/bin/branches.js
CHANGED
|
@@ -1,27 +1,3585 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
(() => {
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
10
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
|
+
}) : x)(function(x) {
|
|
12
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
13
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
16
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
27
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
28
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
31
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
32
|
+
mod
|
|
33
|
+
));
|
|
34
|
+
|
|
35
|
+
// node_modules/dotenv/package.json
|
|
36
|
+
var require_package = __commonJS({
|
|
37
|
+
"node_modules/dotenv/package.json"(exports, module) {
|
|
38
|
+
module.exports = {
|
|
39
|
+
name: "dotenv",
|
|
40
|
+
version: "16.4.5",
|
|
41
|
+
description: "Loads environment variables from .env file",
|
|
42
|
+
main: "lib/main.js",
|
|
43
|
+
types: "lib/main.d.ts",
|
|
44
|
+
exports: {
|
|
45
|
+
".": {
|
|
46
|
+
types: "./lib/main.d.ts",
|
|
47
|
+
require: "./lib/main.js",
|
|
48
|
+
default: "./lib/main.js"
|
|
49
|
+
},
|
|
50
|
+
"./config": "./config.js",
|
|
51
|
+
"./config.js": "./config.js",
|
|
52
|
+
"./lib/env-options": "./lib/env-options.js",
|
|
53
|
+
"./lib/env-options.js": "./lib/env-options.js",
|
|
54
|
+
"./lib/cli-options": "./lib/cli-options.js",
|
|
55
|
+
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
56
|
+
"./package.json": "./package.json"
|
|
57
|
+
},
|
|
58
|
+
scripts: {
|
|
59
|
+
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
60
|
+
lint: "standard",
|
|
61
|
+
"lint-readme": "standard-markdown",
|
|
62
|
+
pretest: "npm run lint && npm run dts-check",
|
|
63
|
+
test: "tap tests/*.js --100 -Rspec",
|
|
64
|
+
"test:coverage": "tap --coverage-report=lcov",
|
|
65
|
+
prerelease: "npm test",
|
|
66
|
+
release: "standard-version"
|
|
67
|
+
},
|
|
68
|
+
repository: {
|
|
69
|
+
type: "git",
|
|
70
|
+
url: "git://github.com/motdotla/dotenv.git"
|
|
71
|
+
},
|
|
72
|
+
funding: "https://dotenvx.com",
|
|
73
|
+
keywords: [
|
|
74
|
+
"dotenv",
|
|
75
|
+
"env",
|
|
76
|
+
".env",
|
|
77
|
+
"environment",
|
|
78
|
+
"variables",
|
|
79
|
+
"config",
|
|
80
|
+
"settings"
|
|
81
|
+
],
|
|
82
|
+
readmeFilename: "README.md",
|
|
83
|
+
license: "BSD-2-Clause",
|
|
84
|
+
devDependencies: {
|
|
85
|
+
"@definitelytyped/dtslint": "^0.0.133",
|
|
86
|
+
"@types/node": "^18.11.3",
|
|
87
|
+
decache: "^4.6.1",
|
|
88
|
+
sinon: "^14.0.1",
|
|
89
|
+
standard: "^17.0.0",
|
|
90
|
+
"standard-markdown": "^7.1.0",
|
|
91
|
+
"standard-version": "^9.5.0",
|
|
92
|
+
tap: "^16.3.0",
|
|
93
|
+
tar: "^6.1.11",
|
|
94
|
+
typescript: "^4.8.4"
|
|
95
|
+
},
|
|
96
|
+
engines: {
|
|
97
|
+
node: ">=12"
|
|
98
|
+
},
|
|
99
|
+
browser: {
|
|
100
|
+
fs: false
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// node_modules/dotenv/lib/main.js
|
|
107
|
+
var require_main = __commonJS({
|
|
108
|
+
"node_modules/dotenv/lib/main.js"(exports, module) {
|
|
109
|
+
var fs = __require("fs");
|
|
110
|
+
var path2 = __require("path");
|
|
111
|
+
var os = __require("os");
|
|
112
|
+
var crypto = __require("crypto");
|
|
113
|
+
var packageJson = require_package();
|
|
114
|
+
var version = packageJson.version;
|
|
115
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
116
|
+
function parse2(src) {
|
|
117
|
+
const obj = {};
|
|
118
|
+
let lines = src.toString();
|
|
119
|
+
lines = lines.replace(/\r\n?/mg, "\n");
|
|
120
|
+
let match;
|
|
121
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
122
|
+
const key = match[1];
|
|
123
|
+
let value = match[2] || "";
|
|
124
|
+
value = value.trim();
|
|
125
|
+
const maybeQuote = value[0];
|
|
126
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
127
|
+
if (maybeQuote === '"') {
|
|
128
|
+
value = value.replace(/\\n/g, "\n");
|
|
129
|
+
value = value.replace(/\\r/g, "\r");
|
|
130
|
+
}
|
|
131
|
+
obj[key] = value;
|
|
132
|
+
}
|
|
133
|
+
return obj;
|
|
134
|
+
}
|
|
135
|
+
function _parseVault(options) {
|
|
136
|
+
const vaultPath = _vaultPath(options);
|
|
137
|
+
const result = DotenvModule.configDotenv({ path: vaultPath });
|
|
138
|
+
if (!result.parsed) {
|
|
139
|
+
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
140
|
+
err.code = "MISSING_DATA";
|
|
141
|
+
throw err;
|
|
142
|
+
}
|
|
143
|
+
const keys = _dotenvKey(options).split(",");
|
|
144
|
+
const length = keys.length;
|
|
145
|
+
let decrypted;
|
|
146
|
+
for (let i = 0; i < length; i++) {
|
|
147
|
+
try {
|
|
148
|
+
const key = keys[i].trim();
|
|
149
|
+
const attrs = _instructions(result, key);
|
|
150
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
151
|
+
break;
|
|
152
|
+
} catch (error) {
|
|
153
|
+
if (i + 1 >= length) {
|
|
154
|
+
throw error;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return DotenvModule.parse(decrypted);
|
|
159
|
+
}
|
|
160
|
+
function _log(message) {
|
|
161
|
+
console.log(`[dotenv@${version}][INFO] ${message}`);
|
|
162
|
+
}
|
|
163
|
+
function _warn(message) {
|
|
164
|
+
console.log(`[dotenv@${version}][WARN] ${message}`);
|
|
165
|
+
}
|
|
166
|
+
function _debug(message) {
|
|
167
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
168
|
+
}
|
|
169
|
+
function _dotenvKey(options) {
|
|
170
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
171
|
+
return options.DOTENV_KEY;
|
|
172
|
+
}
|
|
173
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
174
|
+
return process.env.DOTENV_KEY;
|
|
175
|
+
}
|
|
176
|
+
return "";
|
|
177
|
+
}
|
|
178
|
+
function _instructions(result, dotenvKey) {
|
|
179
|
+
let uri;
|
|
180
|
+
try {
|
|
181
|
+
uri = new URL(dotenvKey);
|
|
182
|
+
} catch (error) {
|
|
183
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
184
|
+
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
185
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
186
|
+
throw err;
|
|
187
|
+
}
|
|
188
|
+
throw error;
|
|
189
|
+
}
|
|
190
|
+
const key = uri.password;
|
|
191
|
+
if (!key) {
|
|
192
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
193
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
194
|
+
throw err;
|
|
195
|
+
}
|
|
196
|
+
const environment = uri.searchParams.get("environment");
|
|
197
|
+
if (!environment) {
|
|
198
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
199
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
200
|
+
throw err;
|
|
201
|
+
}
|
|
202
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
203
|
+
const ciphertext = result.parsed[environmentKey];
|
|
204
|
+
if (!ciphertext) {
|
|
205
|
+
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
206
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
207
|
+
throw err;
|
|
208
|
+
}
|
|
209
|
+
return { ciphertext, key };
|
|
210
|
+
}
|
|
211
|
+
function _vaultPath(options) {
|
|
212
|
+
let possibleVaultPath = null;
|
|
213
|
+
if (options && options.path && options.path.length > 0) {
|
|
214
|
+
if (Array.isArray(options.path)) {
|
|
215
|
+
for (const filepath of options.path) {
|
|
216
|
+
if (fs.existsSync(filepath)) {
|
|
217
|
+
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
} else {
|
|
221
|
+
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
222
|
+
}
|
|
223
|
+
} else {
|
|
224
|
+
possibleVaultPath = path2.resolve(process.cwd(), ".env.vault");
|
|
225
|
+
}
|
|
226
|
+
if (fs.existsSync(possibleVaultPath)) {
|
|
227
|
+
return possibleVaultPath;
|
|
228
|
+
}
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
function _resolveHome(envPath) {
|
|
232
|
+
return envPath[0] === "~" ? path2.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
233
|
+
}
|
|
234
|
+
function _configVault(options) {
|
|
235
|
+
_log("Loading env from encrypted .env.vault");
|
|
236
|
+
const parsed = DotenvModule._parseVault(options);
|
|
237
|
+
let processEnv = process.env;
|
|
238
|
+
if (options && options.processEnv != null) {
|
|
239
|
+
processEnv = options.processEnv;
|
|
240
|
+
}
|
|
241
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
242
|
+
return { parsed };
|
|
243
|
+
}
|
|
244
|
+
function configDotenv(options) {
|
|
245
|
+
const dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
246
|
+
let encoding = "utf8";
|
|
247
|
+
const debug = Boolean(options && options.debug);
|
|
248
|
+
if (options && options.encoding) {
|
|
249
|
+
encoding = options.encoding;
|
|
250
|
+
} else {
|
|
251
|
+
if (debug) {
|
|
252
|
+
_debug("No encoding is specified. UTF-8 is used by default");
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
let optionPaths = [dotenvPath];
|
|
256
|
+
if (options && options.path) {
|
|
257
|
+
if (!Array.isArray(options.path)) {
|
|
258
|
+
optionPaths = [_resolveHome(options.path)];
|
|
259
|
+
} else {
|
|
260
|
+
optionPaths = [];
|
|
261
|
+
for (const filepath of options.path) {
|
|
262
|
+
optionPaths.push(_resolveHome(filepath));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
let lastError;
|
|
267
|
+
const parsedAll = {};
|
|
268
|
+
for (const path3 of optionPaths) {
|
|
269
|
+
try {
|
|
270
|
+
const parsed = DotenvModule.parse(fs.readFileSync(path3, { encoding }));
|
|
271
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
272
|
+
} catch (e) {
|
|
273
|
+
if (debug) {
|
|
274
|
+
_debug(`Failed to load ${path3} ${e.message}`);
|
|
275
|
+
}
|
|
276
|
+
lastError = e;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
let processEnv = process.env;
|
|
280
|
+
if (options && options.processEnv != null) {
|
|
281
|
+
processEnv = options.processEnv;
|
|
282
|
+
}
|
|
283
|
+
DotenvModule.populate(processEnv, parsedAll, options);
|
|
284
|
+
if (lastError) {
|
|
285
|
+
return { parsed: parsedAll, error: lastError };
|
|
286
|
+
} else {
|
|
287
|
+
return { parsed: parsedAll };
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function config(options) {
|
|
291
|
+
if (_dotenvKey(options).length === 0) {
|
|
292
|
+
return DotenvModule.configDotenv(options);
|
|
293
|
+
}
|
|
294
|
+
const vaultPath = _vaultPath(options);
|
|
295
|
+
if (!vaultPath) {
|
|
296
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
297
|
+
return DotenvModule.configDotenv(options);
|
|
298
|
+
}
|
|
299
|
+
return DotenvModule._configVault(options);
|
|
300
|
+
}
|
|
301
|
+
function decrypt(encrypted, keyStr) {
|
|
302
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
303
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
304
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
305
|
+
const authTag = ciphertext.subarray(-16);
|
|
306
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
307
|
+
try {
|
|
308
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
309
|
+
aesgcm.setAuthTag(authTag);
|
|
310
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
311
|
+
} catch (error) {
|
|
312
|
+
const isRange = error instanceof RangeError;
|
|
313
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
314
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
315
|
+
if (isRange || invalidKeyLength) {
|
|
316
|
+
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
317
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
318
|
+
throw err;
|
|
319
|
+
} else if (decryptionFailed) {
|
|
320
|
+
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
321
|
+
err.code = "DECRYPTION_FAILED";
|
|
322
|
+
throw err;
|
|
323
|
+
} else {
|
|
324
|
+
throw error;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function populate(processEnv, parsed, options = {}) {
|
|
329
|
+
const debug = Boolean(options && options.debug);
|
|
330
|
+
const override = Boolean(options && options.override);
|
|
331
|
+
if (typeof parsed !== "object") {
|
|
332
|
+
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
333
|
+
err.code = "OBJECT_REQUIRED";
|
|
334
|
+
throw err;
|
|
335
|
+
}
|
|
336
|
+
for (const key of Object.keys(parsed)) {
|
|
337
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
338
|
+
if (override === true) {
|
|
339
|
+
processEnv[key] = parsed[key];
|
|
340
|
+
}
|
|
341
|
+
if (debug) {
|
|
342
|
+
if (override === true) {
|
|
343
|
+
_debug(`"${key}" is already defined and WAS overwritten`);
|
|
344
|
+
} else {
|
|
345
|
+
_debug(`"${key}" is already defined and was NOT overwritten`);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
processEnv[key] = parsed[key];
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
var DotenvModule = {
|
|
354
|
+
configDotenv,
|
|
355
|
+
_configVault,
|
|
356
|
+
_parseVault,
|
|
357
|
+
config,
|
|
358
|
+
decrypt,
|
|
359
|
+
parse: parse2,
|
|
360
|
+
populate
|
|
361
|
+
};
|
|
362
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
363
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
364
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
365
|
+
module.exports.config = DotenvModule.config;
|
|
366
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
367
|
+
module.exports.parse = DotenvModule.parse;
|
|
368
|
+
module.exports.populate = DotenvModule.populate;
|
|
369
|
+
module.exports = DotenvModule;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
// node_modules/dotenv/lib/env-options.js
|
|
374
|
+
var require_env_options = __commonJS({
|
|
375
|
+
"node_modules/dotenv/lib/env-options.js"(exports, module) {
|
|
376
|
+
var options = {};
|
|
377
|
+
if (process.env.DOTENV_CONFIG_ENCODING != null) {
|
|
378
|
+
options.encoding = process.env.DOTENV_CONFIG_ENCODING;
|
|
379
|
+
}
|
|
380
|
+
if (process.env.DOTENV_CONFIG_PATH != null) {
|
|
381
|
+
options.path = process.env.DOTENV_CONFIG_PATH;
|
|
382
|
+
}
|
|
383
|
+
if (process.env.DOTENV_CONFIG_DEBUG != null) {
|
|
384
|
+
options.debug = process.env.DOTENV_CONFIG_DEBUG;
|
|
385
|
+
}
|
|
386
|
+
if (process.env.DOTENV_CONFIG_OVERRIDE != null) {
|
|
387
|
+
options.override = process.env.DOTENV_CONFIG_OVERRIDE;
|
|
388
|
+
}
|
|
389
|
+
if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) {
|
|
390
|
+
options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY;
|
|
391
|
+
}
|
|
392
|
+
module.exports = options;
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
// node_modules/dotenv/lib/cli-options.js
|
|
397
|
+
var require_cli_options = __commonJS({
|
|
398
|
+
"node_modules/dotenv/lib/cli-options.js"(exports, module) {
|
|
399
|
+
var re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;
|
|
400
|
+
module.exports = function optionMatcher(args) {
|
|
401
|
+
return args.reduce(function(acc, cur) {
|
|
402
|
+
const matches = cur.match(re);
|
|
403
|
+
if (matches) {
|
|
404
|
+
acc[matches[1]] = matches[2];
|
|
405
|
+
}
|
|
406
|
+
return acc;
|
|
407
|
+
}, {});
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
// node_modules/dotenv/config.js
|
|
413
|
+
(function() {
|
|
414
|
+
require_main().config(
|
|
415
|
+
Object.assign(
|
|
416
|
+
{},
|
|
417
|
+
require_env_options(),
|
|
418
|
+
require_cli_options()(process.argv)
|
|
419
|
+
)
|
|
420
|
+
);
|
|
421
|
+
})();
|
|
422
|
+
|
|
423
|
+
// bin/branches.ts
|
|
424
|
+
var path = __toESM(__require("path"));
|
|
425
|
+
|
|
426
|
+
// node_modules/@octokit/rest/node_modules/universal-user-agent/index.js
|
|
427
|
+
function getUserAgent() {
|
|
428
|
+
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
429
|
+
return navigator.userAgent;
|
|
430
|
+
}
|
|
431
|
+
if (typeof process === "object" && process.version !== void 0) {
|
|
432
|
+
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
|
433
|
+
}
|
|
434
|
+
return "<environment undetectable>";
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// node_modules/@octokit/rest/node_modules/before-after-hook/lib/register.js
|
|
438
|
+
function register(state, name, method, options) {
|
|
439
|
+
if (typeof method !== "function") {
|
|
440
|
+
throw new Error("method for before hook must be a function");
|
|
441
|
+
}
|
|
442
|
+
if (!options) {
|
|
443
|
+
options = {};
|
|
444
|
+
}
|
|
445
|
+
if (Array.isArray(name)) {
|
|
446
|
+
return name.reverse().reduce((callback, name2) => {
|
|
447
|
+
return register.bind(null, state, name2, callback, options);
|
|
448
|
+
}, method)();
|
|
449
|
+
}
|
|
450
|
+
return Promise.resolve().then(() => {
|
|
451
|
+
if (!state.registry[name]) {
|
|
452
|
+
return method(options);
|
|
453
|
+
}
|
|
454
|
+
return state.registry[name].reduce((method2, registered) => {
|
|
455
|
+
return registered.hook.bind(null, method2, options);
|
|
456
|
+
}, method)();
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// node_modules/@octokit/rest/node_modules/before-after-hook/lib/add.js
|
|
461
|
+
function addHook(state, kind, name, hook2) {
|
|
462
|
+
const orig = hook2;
|
|
463
|
+
if (!state.registry[name]) {
|
|
464
|
+
state.registry[name] = [];
|
|
465
|
+
}
|
|
466
|
+
if (kind === "before") {
|
|
467
|
+
hook2 = (method, options) => {
|
|
468
|
+
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
if (kind === "after") {
|
|
472
|
+
hook2 = (method, options) => {
|
|
473
|
+
let result;
|
|
474
|
+
return Promise.resolve().then(method.bind(null, options)).then((result_) => {
|
|
475
|
+
result = result_;
|
|
476
|
+
return orig(result, options);
|
|
477
|
+
}).then(() => {
|
|
478
|
+
return result;
|
|
479
|
+
});
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
if (kind === "error") {
|
|
483
|
+
hook2 = (method, options) => {
|
|
484
|
+
return Promise.resolve().then(method.bind(null, options)).catch((error) => {
|
|
485
|
+
return orig(error, options);
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
state.registry[name].push({
|
|
490
|
+
hook: hook2,
|
|
491
|
+
orig
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// node_modules/@octokit/rest/node_modules/before-after-hook/lib/remove.js
|
|
496
|
+
function removeHook(state, name, method) {
|
|
497
|
+
if (!state.registry[name]) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
const index = state.registry[name].map((registered) => {
|
|
501
|
+
return registered.orig;
|
|
502
|
+
}).indexOf(method);
|
|
503
|
+
if (index === -1) {
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
state.registry[name].splice(index, 1);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
// node_modules/@octokit/rest/node_modules/before-after-hook/index.js
|
|
510
|
+
var bind = Function.bind;
|
|
511
|
+
var bindable = bind.bind(bind);
|
|
512
|
+
function bindApi(hook2, state, name) {
|
|
513
|
+
const removeHookRef = bindable(removeHook, null).apply(
|
|
514
|
+
null,
|
|
515
|
+
name ? [state, name] : [state]
|
|
516
|
+
);
|
|
517
|
+
hook2.api = { remove: removeHookRef };
|
|
518
|
+
hook2.remove = removeHookRef;
|
|
519
|
+
["before", "error", "after", "wrap"].forEach((kind) => {
|
|
520
|
+
const args = name ? [state, kind, name] : [state, kind];
|
|
521
|
+
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function Singular() {
|
|
525
|
+
const singularHookName = Symbol("Singular");
|
|
526
|
+
const singularHookState = {
|
|
527
|
+
registry: {}
|
|
528
|
+
};
|
|
529
|
+
const singularHook = register.bind(null, singularHookState, singularHookName);
|
|
530
|
+
bindApi(singularHook, singularHookState, singularHookName);
|
|
531
|
+
return singularHook;
|
|
532
|
+
}
|
|
533
|
+
function Collection() {
|
|
534
|
+
const state = {
|
|
535
|
+
registry: {}
|
|
536
|
+
};
|
|
537
|
+
const hook2 = register.bind(null, state);
|
|
538
|
+
bindApi(hook2, state);
|
|
539
|
+
return hook2;
|
|
540
|
+
}
|
|
541
|
+
var before_after_hook_default = { Singular, Collection };
|
|
542
|
+
|
|
543
|
+
// node_modules/@octokit/rest/node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
544
|
+
var VERSION = "0.0.0-development";
|
|
545
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
546
|
+
var DEFAULTS = {
|
|
547
|
+
method: "GET",
|
|
548
|
+
baseUrl: "https://api.github.com",
|
|
549
|
+
headers: {
|
|
550
|
+
accept: "application/vnd.github.v3+json",
|
|
551
|
+
"user-agent": userAgent
|
|
552
|
+
},
|
|
553
|
+
mediaType: {
|
|
554
|
+
format: ""
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
function lowercaseKeys(object) {
|
|
558
|
+
if (!object) {
|
|
559
|
+
return {};
|
|
560
|
+
}
|
|
561
|
+
return Object.keys(object).reduce((newObj, key) => {
|
|
562
|
+
newObj[key.toLowerCase()] = object[key];
|
|
563
|
+
return newObj;
|
|
564
|
+
}, {});
|
|
565
|
+
}
|
|
566
|
+
function isPlainObject(value) {
|
|
567
|
+
if (typeof value !== "object" || value === null)
|
|
568
|
+
return false;
|
|
569
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
570
|
+
return false;
|
|
571
|
+
const proto = Object.getPrototypeOf(value);
|
|
572
|
+
if (proto === null)
|
|
573
|
+
return true;
|
|
574
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
575
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
576
|
+
}
|
|
577
|
+
function mergeDeep(defaults, options) {
|
|
578
|
+
const result = Object.assign({}, defaults);
|
|
579
|
+
Object.keys(options).forEach((key) => {
|
|
580
|
+
if (isPlainObject(options[key])) {
|
|
581
|
+
if (!(key in defaults))
|
|
582
|
+
Object.assign(result, { [key]: options[key] });
|
|
583
|
+
else
|
|
584
|
+
result[key] = mergeDeep(defaults[key], options[key]);
|
|
585
|
+
} else {
|
|
586
|
+
Object.assign(result, { [key]: options[key] });
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
return result;
|
|
590
|
+
}
|
|
591
|
+
function removeUndefinedProperties(obj) {
|
|
592
|
+
for (const key in obj) {
|
|
593
|
+
if (obj[key] === void 0) {
|
|
594
|
+
delete obj[key];
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return obj;
|
|
598
|
+
}
|
|
599
|
+
function merge(defaults, route, options) {
|
|
600
|
+
if (typeof route === "string") {
|
|
601
|
+
let [method, url] = route.split(" ");
|
|
602
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
603
|
+
} else {
|
|
604
|
+
options = Object.assign({}, route);
|
|
605
|
+
}
|
|
606
|
+
options.headers = lowercaseKeys(options.headers);
|
|
607
|
+
removeUndefinedProperties(options);
|
|
608
|
+
removeUndefinedProperties(options.headers);
|
|
609
|
+
const mergedOptions = mergeDeep(defaults || {}, options);
|
|
610
|
+
if (options.url === "/graphql") {
|
|
611
|
+
if (defaults && defaults.mediaType.previews?.length) {
|
|
612
|
+
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
|
613
|
+
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
|
614
|
+
).concat(mergedOptions.mediaType.previews);
|
|
615
|
+
}
|
|
616
|
+
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
|
617
|
+
}
|
|
618
|
+
return mergedOptions;
|
|
619
|
+
}
|
|
620
|
+
function addQueryParameters(url, parameters) {
|
|
621
|
+
const separator = /\?/.test(url) ? "&" : "?";
|
|
622
|
+
const names = Object.keys(parameters);
|
|
623
|
+
if (names.length === 0) {
|
|
624
|
+
return url;
|
|
625
|
+
}
|
|
626
|
+
return url + separator + names.map((name) => {
|
|
627
|
+
if (name === "q") {
|
|
628
|
+
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
629
|
+
}
|
|
630
|
+
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
631
|
+
}).join("&");
|
|
632
|
+
}
|
|
633
|
+
var urlVariableRegex = /\{[^}]+\}/g;
|
|
634
|
+
function removeNonChars(variableName) {
|
|
635
|
+
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
|
636
|
+
}
|
|
637
|
+
function extractUrlVariableNames(url) {
|
|
638
|
+
const matches = url.match(urlVariableRegex);
|
|
639
|
+
if (!matches) {
|
|
640
|
+
return [];
|
|
641
|
+
}
|
|
642
|
+
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
643
|
+
}
|
|
644
|
+
function omit(object, keysToOmit) {
|
|
645
|
+
const result = { __proto__: null };
|
|
646
|
+
for (const key of Object.keys(object)) {
|
|
647
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
648
|
+
result[key] = object[key];
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return result;
|
|
652
|
+
}
|
|
653
|
+
function encodeReserved(str) {
|
|
654
|
+
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
655
|
+
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
656
|
+
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
657
|
+
}
|
|
658
|
+
return part;
|
|
659
|
+
}).join("");
|
|
660
|
+
}
|
|
661
|
+
function encodeUnreserved(str) {
|
|
662
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
|
663
|
+
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
function encodeValue(operator, value, key) {
|
|
667
|
+
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
|
668
|
+
if (key) {
|
|
669
|
+
return encodeUnreserved(key) + "=" + value;
|
|
670
|
+
} else {
|
|
671
|
+
return value;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function isDefined(value) {
|
|
675
|
+
return value !== void 0 && value !== null;
|
|
676
|
+
}
|
|
677
|
+
function isKeyOperator(operator) {
|
|
678
|
+
return operator === ";" || operator === "&" || operator === "?";
|
|
679
|
+
}
|
|
680
|
+
function getValues(context, operator, key, modifier) {
|
|
681
|
+
var value = context[key], result = [];
|
|
682
|
+
if (isDefined(value) && value !== "") {
|
|
683
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
684
|
+
value = value.toString();
|
|
685
|
+
if (modifier && modifier !== "*") {
|
|
686
|
+
value = value.substring(0, parseInt(modifier, 10));
|
|
687
|
+
}
|
|
688
|
+
result.push(
|
|
689
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
690
|
+
);
|
|
691
|
+
} else {
|
|
692
|
+
if (modifier === "*") {
|
|
693
|
+
if (Array.isArray(value)) {
|
|
694
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
695
|
+
result.push(
|
|
696
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
697
|
+
);
|
|
698
|
+
});
|
|
699
|
+
} else {
|
|
700
|
+
Object.keys(value).forEach(function(k) {
|
|
701
|
+
if (isDefined(value[k])) {
|
|
702
|
+
result.push(encodeValue(operator, value[k], k));
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
} else {
|
|
707
|
+
const tmp = [];
|
|
708
|
+
if (Array.isArray(value)) {
|
|
709
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
710
|
+
tmp.push(encodeValue(operator, value2));
|
|
711
|
+
});
|
|
712
|
+
} else {
|
|
713
|
+
Object.keys(value).forEach(function(k) {
|
|
714
|
+
if (isDefined(value[k])) {
|
|
715
|
+
tmp.push(encodeUnreserved(k));
|
|
716
|
+
tmp.push(encodeValue(operator, value[k].toString()));
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
if (isKeyOperator(operator)) {
|
|
721
|
+
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
|
722
|
+
} else if (tmp.length !== 0) {
|
|
723
|
+
result.push(tmp.join(","));
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
} else {
|
|
728
|
+
if (operator === ";") {
|
|
729
|
+
if (isDefined(value)) {
|
|
730
|
+
result.push(encodeUnreserved(key));
|
|
731
|
+
}
|
|
732
|
+
} else if (value === "" && (operator === "&" || operator === "?")) {
|
|
733
|
+
result.push(encodeUnreserved(key) + "=");
|
|
734
|
+
} else if (value === "") {
|
|
735
|
+
result.push("");
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
return result;
|
|
739
|
+
}
|
|
740
|
+
function parseUrl(template) {
|
|
741
|
+
return {
|
|
742
|
+
expand: expand.bind(null, template)
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function expand(template, context) {
|
|
746
|
+
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
747
|
+
template = template.replace(
|
|
748
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
749
|
+
function(_, expression, literal) {
|
|
750
|
+
if (expression) {
|
|
751
|
+
let operator = "";
|
|
752
|
+
const values = [];
|
|
753
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
754
|
+
operator = expression.charAt(0);
|
|
755
|
+
expression = expression.substr(1);
|
|
756
|
+
}
|
|
757
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
758
|
+
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
759
|
+
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
|
760
|
+
});
|
|
761
|
+
if (operator && operator !== "+") {
|
|
762
|
+
var separator = ",";
|
|
763
|
+
if (operator === "?") {
|
|
764
|
+
separator = "&";
|
|
765
|
+
} else if (operator !== "#") {
|
|
766
|
+
separator = operator;
|
|
767
|
+
}
|
|
768
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
769
|
+
} else {
|
|
770
|
+
return values.join(",");
|
|
771
|
+
}
|
|
772
|
+
} else {
|
|
773
|
+
return encodeReserved(literal);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
);
|
|
777
|
+
if (template === "/") {
|
|
778
|
+
return template;
|
|
779
|
+
} else {
|
|
780
|
+
return template.replace(/\/$/, "");
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function parse(options) {
|
|
784
|
+
let method = options.method.toUpperCase();
|
|
785
|
+
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
786
|
+
let headers = Object.assign({}, options.headers);
|
|
787
|
+
let body;
|
|
788
|
+
let parameters = omit(options, [
|
|
789
|
+
"method",
|
|
790
|
+
"baseUrl",
|
|
791
|
+
"url",
|
|
792
|
+
"headers",
|
|
793
|
+
"request",
|
|
794
|
+
"mediaType"
|
|
795
|
+
]);
|
|
796
|
+
const urlVariableNames = extractUrlVariableNames(url);
|
|
797
|
+
url = parseUrl(url).expand(parameters);
|
|
798
|
+
if (!/^http/.test(url)) {
|
|
799
|
+
url = options.baseUrl + url;
|
|
800
|
+
}
|
|
801
|
+
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
802
|
+
const remainingParameters = omit(parameters, omittedParameters);
|
|
803
|
+
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
804
|
+
if (!isBinaryRequest) {
|
|
805
|
+
if (options.mediaType.format) {
|
|
806
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
807
|
+
(format) => format.replace(
|
|
808
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
809
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
810
|
+
)
|
|
811
|
+
).join(",");
|
|
812
|
+
}
|
|
813
|
+
if (url.endsWith("/graphql")) {
|
|
814
|
+
if (options.mediaType.previews?.length) {
|
|
815
|
+
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
816
|
+
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
817
|
+
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
818
|
+
return `application/vnd.github.${preview}-preview${format}`;
|
|
819
|
+
}).join(",");
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
if (["GET", "HEAD"].includes(method)) {
|
|
824
|
+
url = addQueryParameters(url, remainingParameters);
|
|
825
|
+
} else {
|
|
826
|
+
if ("data" in remainingParameters) {
|
|
827
|
+
body = remainingParameters.data;
|
|
828
|
+
} else {
|
|
829
|
+
if (Object.keys(remainingParameters).length) {
|
|
830
|
+
body = remainingParameters;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
if (!headers["content-type"] && typeof body !== "undefined") {
|
|
835
|
+
headers["content-type"] = "application/json; charset=utf-8";
|
|
836
|
+
}
|
|
837
|
+
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
838
|
+
body = "";
|
|
839
|
+
}
|
|
840
|
+
return Object.assign(
|
|
841
|
+
{ method, url, headers },
|
|
842
|
+
typeof body !== "undefined" ? { body } : null,
|
|
843
|
+
options.request ? { request: options.request } : null
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
function endpointWithDefaults(defaults, route, options) {
|
|
847
|
+
return parse(merge(defaults, route, options));
|
|
848
|
+
}
|
|
849
|
+
function withDefaults(oldDefaults, newDefaults) {
|
|
850
|
+
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
|
851
|
+
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
852
|
+
return Object.assign(endpoint2, {
|
|
853
|
+
DEFAULTS: DEFAULTS2,
|
|
854
|
+
defaults: withDefaults.bind(null, DEFAULTS2),
|
|
855
|
+
merge: merge.bind(null, DEFAULTS2),
|
|
856
|
+
parse
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
var endpoint = withDefaults(null, DEFAULTS);
|
|
860
|
+
|
|
861
|
+
// node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js
|
|
862
|
+
var RequestError = class extends Error {
|
|
863
|
+
name;
|
|
864
|
+
/**
|
|
865
|
+
* http status code
|
|
866
|
+
*/
|
|
867
|
+
status;
|
|
868
|
+
/**
|
|
869
|
+
* Request options that lead to the error.
|
|
870
|
+
*/
|
|
871
|
+
request;
|
|
872
|
+
/**
|
|
873
|
+
* Response object if a response was received
|
|
874
|
+
*/
|
|
875
|
+
response;
|
|
876
|
+
constructor(message, statusCode, options) {
|
|
877
|
+
super(message);
|
|
878
|
+
this.name = "HttpError";
|
|
879
|
+
this.status = Number.parseInt(statusCode);
|
|
880
|
+
if (Number.isNaN(this.status)) {
|
|
881
|
+
this.status = 0;
|
|
882
|
+
}
|
|
883
|
+
if ("response" in options) {
|
|
884
|
+
this.response = options.response;
|
|
885
|
+
}
|
|
886
|
+
const requestCopy = Object.assign({}, options.request);
|
|
887
|
+
if (options.request.headers.authorization) {
|
|
888
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
889
|
+
authorization: options.request.headers.authorization.replace(
|
|
890
|
+
/ .*$/,
|
|
891
|
+
" [REDACTED]"
|
|
892
|
+
)
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
896
|
+
this.request = requestCopy;
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
// node_modules/@octokit/rest/node_modules/@octokit/request/dist-bundle/index.js
|
|
901
|
+
var VERSION2 = "0.0.0-development";
|
|
902
|
+
var defaults_default = {
|
|
903
|
+
headers: {
|
|
904
|
+
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
function isPlainObject2(value) {
|
|
908
|
+
if (typeof value !== "object" || value === null) return false;
|
|
909
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
910
|
+
const proto = Object.getPrototypeOf(value);
|
|
911
|
+
if (proto === null) return true;
|
|
912
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
913
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
914
|
+
}
|
|
915
|
+
async function fetchWrapper(requestOptions) {
|
|
916
|
+
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
|
917
|
+
if (!fetch) {
|
|
918
|
+
throw new Error(
|
|
919
|
+
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
|
920
|
+
);
|
|
921
|
+
}
|
|
922
|
+
const log = requestOptions.request?.log || console;
|
|
923
|
+
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
924
|
+
const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
|
|
925
|
+
const requestHeaders = Object.fromEntries(
|
|
926
|
+
Object.entries(requestOptions.headers).map(([name, value]) => [
|
|
927
|
+
name,
|
|
928
|
+
String(value)
|
|
929
|
+
])
|
|
930
|
+
);
|
|
931
|
+
let fetchResponse;
|
|
932
|
+
try {
|
|
933
|
+
fetchResponse = await fetch(requestOptions.url, {
|
|
934
|
+
method: requestOptions.method,
|
|
935
|
+
body,
|
|
936
|
+
redirect: requestOptions.request?.redirect,
|
|
937
|
+
headers: requestHeaders,
|
|
938
|
+
signal: requestOptions.request?.signal,
|
|
939
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
940
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
941
|
+
...requestOptions.body && { duplex: "half" }
|
|
942
|
+
});
|
|
943
|
+
} catch (error) {
|
|
944
|
+
let message = "Unknown Error";
|
|
945
|
+
if (error instanceof Error) {
|
|
946
|
+
if (error.name === "AbortError") {
|
|
947
|
+
error.status = 500;
|
|
948
|
+
throw error;
|
|
21
949
|
}
|
|
22
|
-
|
|
23
|
-
|
|
950
|
+
message = error.message;
|
|
951
|
+
if (error.name === "TypeError" && "cause" in error) {
|
|
952
|
+
if (error.cause instanceof Error) {
|
|
953
|
+
message = error.cause.message;
|
|
954
|
+
} else if (typeof error.cause === "string") {
|
|
955
|
+
message = error.cause;
|
|
956
|
+
}
|
|
24
957
|
}
|
|
958
|
+
}
|
|
959
|
+
const requestError = new RequestError(message, 500, {
|
|
960
|
+
request: requestOptions
|
|
961
|
+
});
|
|
962
|
+
requestError.cause = error;
|
|
963
|
+
throw requestError;
|
|
964
|
+
}
|
|
965
|
+
const status = fetchResponse.status;
|
|
966
|
+
const url = fetchResponse.url;
|
|
967
|
+
const responseHeaders = {};
|
|
968
|
+
for (const [key, value] of fetchResponse.headers) {
|
|
969
|
+
responseHeaders[key] = value;
|
|
970
|
+
}
|
|
971
|
+
const octokitResponse = {
|
|
972
|
+
url,
|
|
973
|
+
status,
|
|
974
|
+
headers: responseHeaders,
|
|
975
|
+
data: ""
|
|
976
|
+
};
|
|
977
|
+
if ("deprecation" in responseHeaders) {
|
|
978
|
+
const matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel="deprecation"/);
|
|
979
|
+
const deprecationLink = matches && matches.pop();
|
|
980
|
+
log.warn(
|
|
981
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
982
|
+
);
|
|
983
|
+
}
|
|
984
|
+
if (status === 204 || status === 205) {
|
|
985
|
+
return octokitResponse;
|
|
986
|
+
}
|
|
987
|
+
if (requestOptions.method === "HEAD") {
|
|
988
|
+
if (status < 400) {
|
|
989
|
+
return octokitResponse;
|
|
990
|
+
}
|
|
991
|
+
throw new RequestError(fetchResponse.statusText, status, {
|
|
992
|
+
response: octokitResponse,
|
|
993
|
+
request: requestOptions
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
if (status === 304) {
|
|
997
|
+
octokitResponse.data = await getResponseData(fetchResponse);
|
|
998
|
+
throw new RequestError("Not modified", status, {
|
|
999
|
+
response: octokitResponse,
|
|
1000
|
+
request: requestOptions
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
if (status >= 400) {
|
|
1004
|
+
octokitResponse.data = await getResponseData(fetchResponse);
|
|
1005
|
+
throw new RequestError(toErrorMessage(octokitResponse.data), status, {
|
|
1006
|
+
response: octokitResponse,
|
|
1007
|
+
request: requestOptions
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
|
|
1011
|
+
return octokitResponse;
|
|
1012
|
+
}
|
|
1013
|
+
async function getResponseData(response) {
|
|
1014
|
+
const contentType = response.headers.get("content-type");
|
|
1015
|
+
if (/application\/json/.test(contentType)) {
|
|
1016
|
+
return response.json().catch(() => response.text()).catch(() => "");
|
|
1017
|
+
}
|
|
1018
|
+
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
|
1019
|
+
return response.text();
|
|
1020
|
+
}
|
|
1021
|
+
return response.arrayBuffer();
|
|
1022
|
+
}
|
|
1023
|
+
function toErrorMessage(data) {
|
|
1024
|
+
if (typeof data === "string") {
|
|
1025
|
+
return data;
|
|
1026
|
+
}
|
|
1027
|
+
if (data instanceof ArrayBuffer) {
|
|
1028
|
+
return "Unknown error";
|
|
1029
|
+
}
|
|
1030
|
+
if ("message" in data) {
|
|
1031
|
+
const suffix = "documentation_url" in data ? ` - ${data.documentation_url}` : "";
|
|
1032
|
+
return Array.isArray(data.errors) ? `${data.message}: ${data.errors.map((v) => JSON.stringify(v)).join(", ")}${suffix}` : `${data.message}${suffix}`;
|
|
1033
|
+
}
|
|
1034
|
+
return `Unknown error: ${JSON.stringify(data)}`;
|
|
1035
|
+
}
|
|
1036
|
+
function withDefaults2(oldEndpoint, newDefaults) {
|
|
1037
|
+
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
1038
|
+
const newApi = function(route, parameters) {
|
|
1039
|
+
const endpointOptions = endpoint2.merge(route, parameters);
|
|
1040
|
+
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
1041
|
+
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
1042
|
+
}
|
|
1043
|
+
const request2 = (route2, parameters2) => {
|
|
1044
|
+
return fetchWrapper(
|
|
1045
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
1046
|
+
);
|
|
1047
|
+
};
|
|
1048
|
+
Object.assign(request2, {
|
|
1049
|
+
endpoint: endpoint2,
|
|
1050
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
1051
|
+
});
|
|
1052
|
+
return endpointOptions.request.hook(request2, endpointOptions);
|
|
1053
|
+
};
|
|
1054
|
+
return Object.assign(newApi, {
|
|
1055
|
+
endpoint: endpoint2,
|
|
1056
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
var request = withDefaults2(endpoint, defaults_default);
|
|
1060
|
+
|
|
1061
|
+
// node_modules/@octokit/rest/node_modules/@octokit/graphql/dist-bundle/index.js
|
|
1062
|
+
var VERSION3 = "0.0.0-development";
|
|
1063
|
+
function _buildMessageForResponseErrors(data) {
|
|
1064
|
+
return `Request failed due to following response errors:
|
|
1065
|
+
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
1066
|
+
}
|
|
1067
|
+
var GraphqlResponseError = class extends Error {
|
|
1068
|
+
constructor(request2, headers, response) {
|
|
1069
|
+
super(_buildMessageForResponseErrors(response));
|
|
1070
|
+
this.request = request2;
|
|
1071
|
+
this.headers = headers;
|
|
1072
|
+
this.response = response;
|
|
1073
|
+
this.errors = response.errors;
|
|
1074
|
+
this.data = response.data;
|
|
1075
|
+
if (Error.captureStackTrace) {
|
|
1076
|
+
Error.captureStackTrace(this, this.constructor);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
name = "GraphqlResponseError";
|
|
1080
|
+
errors;
|
|
1081
|
+
data;
|
|
1082
|
+
};
|
|
1083
|
+
var NON_VARIABLE_OPTIONS = [
|
|
1084
|
+
"method",
|
|
1085
|
+
"baseUrl",
|
|
1086
|
+
"url",
|
|
1087
|
+
"headers",
|
|
1088
|
+
"request",
|
|
1089
|
+
"query",
|
|
1090
|
+
"mediaType"
|
|
1091
|
+
];
|
|
1092
|
+
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
1093
|
+
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
1094
|
+
function graphql(request2, query, options) {
|
|
1095
|
+
if (options) {
|
|
1096
|
+
if (typeof query === "string" && "query" in options) {
|
|
1097
|
+
return Promise.reject(
|
|
1098
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
for (const key in options) {
|
|
1102
|
+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
|
1103
|
+
continue;
|
|
1104
|
+
return Promise.reject(
|
|
1105
|
+
new Error(
|
|
1106
|
+
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
|
1107
|
+
)
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
1112
|
+
const requestOptions = Object.keys(
|
|
1113
|
+
parsedOptions
|
|
1114
|
+
).reduce((result, key) => {
|
|
1115
|
+
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
1116
|
+
result[key] = parsedOptions[key];
|
|
1117
|
+
return result;
|
|
1118
|
+
}
|
|
1119
|
+
if (!result.variables) {
|
|
1120
|
+
result.variables = {};
|
|
1121
|
+
}
|
|
1122
|
+
result.variables[key] = parsedOptions[key];
|
|
1123
|
+
return result;
|
|
1124
|
+
}, {});
|
|
1125
|
+
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
|
1126
|
+
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
1127
|
+
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
|
1128
|
+
}
|
|
1129
|
+
return request2(requestOptions).then((response) => {
|
|
1130
|
+
if (response.data.errors) {
|
|
1131
|
+
const headers = {};
|
|
1132
|
+
for (const key of Object.keys(response.headers)) {
|
|
1133
|
+
headers[key] = response.headers[key];
|
|
1134
|
+
}
|
|
1135
|
+
throw new GraphqlResponseError(
|
|
1136
|
+
requestOptions,
|
|
1137
|
+
headers,
|
|
1138
|
+
response.data
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
return response.data.data;
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
function withDefaults3(request2, newDefaults) {
|
|
1145
|
+
const newRequest = request2.defaults(newDefaults);
|
|
1146
|
+
const newApi = (query, options) => {
|
|
1147
|
+
return graphql(newRequest, query, options);
|
|
1148
|
+
};
|
|
1149
|
+
return Object.assign(newApi, {
|
|
1150
|
+
defaults: withDefaults3.bind(null, newRequest),
|
|
1151
|
+
endpoint: newRequest.endpoint
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
var graphql2 = withDefaults3(request, {
|
|
1155
|
+
headers: {
|
|
1156
|
+
"user-agent": `octokit-graphql.js/${VERSION3} ${getUserAgent()}`
|
|
1157
|
+
},
|
|
1158
|
+
method: "POST",
|
|
1159
|
+
url: "/graphql"
|
|
1160
|
+
});
|
|
1161
|
+
function withCustomRequest(customRequest) {
|
|
1162
|
+
return withDefaults3(customRequest, {
|
|
1163
|
+
method: "POST",
|
|
1164
|
+
url: "/graphql"
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
// node_modules/@octokit/rest/node_modules/@octokit/auth-token/dist-bundle/index.js
|
|
1169
|
+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
1170
|
+
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
1171
|
+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
1172
|
+
async function auth(token) {
|
|
1173
|
+
const isApp = token.split(/\./).length === 3;
|
|
1174
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
1175
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
1176
|
+
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
1177
|
+
return {
|
|
1178
|
+
type: "token",
|
|
1179
|
+
token,
|
|
1180
|
+
tokenType
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
function withAuthorizationPrefix(token) {
|
|
1184
|
+
if (token.split(/\./).length === 3) {
|
|
1185
|
+
return `bearer ${token}`;
|
|
1186
|
+
}
|
|
1187
|
+
return `token ${token}`;
|
|
1188
|
+
}
|
|
1189
|
+
async function hook(token, request2, route, parameters) {
|
|
1190
|
+
const endpoint2 = request2.endpoint.merge(
|
|
1191
|
+
route,
|
|
1192
|
+
parameters
|
|
1193
|
+
);
|
|
1194
|
+
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
1195
|
+
return request2(endpoint2);
|
|
1196
|
+
}
|
|
1197
|
+
var createTokenAuth = function createTokenAuth2(token) {
|
|
1198
|
+
if (!token) {
|
|
1199
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
1200
|
+
}
|
|
1201
|
+
if (typeof token !== "string") {
|
|
1202
|
+
throw new Error(
|
|
1203
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
1204
|
+
);
|
|
1205
|
+
}
|
|
1206
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
1207
|
+
return Object.assign(auth.bind(null, token), {
|
|
1208
|
+
hook: hook.bind(null, token)
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
// node_modules/@octokit/rest/node_modules/@octokit/core/dist-src/version.js
|
|
1213
|
+
var VERSION4 = "6.1.2";
|
|
1214
|
+
|
|
1215
|
+
// node_modules/@octokit/rest/node_modules/@octokit/core/dist-src/index.js
|
|
1216
|
+
var noop = () => {
|
|
1217
|
+
};
|
|
1218
|
+
var consoleWarn = console.warn.bind(console);
|
|
1219
|
+
var consoleError = console.error.bind(console);
|
|
1220
|
+
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
1221
|
+
var Octokit = class {
|
|
1222
|
+
static VERSION = VERSION4;
|
|
1223
|
+
static defaults(defaults) {
|
|
1224
|
+
const OctokitWithDefaults = class extends this {
|
|
1225
|
+
constructor(...args) {
|
|
1226
|
+
const options = args[0] || {};
|
|
1227
|
+
if (typeof defaults === "function") {
|
|
1228
|
+
super(defaults(options));
|
|
1229
|
+
return;
|
|
1230
|
+
}
|
|
1231
|
+
super(
|
|
1232
|
+
Object.assign(
|
|
1233
|
+
{},
|
|
1234
|
+
defaults,
|
|
1235
|
+
options,
|
|
1236
|
+
options.userAgent && defaults.userAgent ? {
|
|
1237
|
+
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
1238
|
+
} : null
|
|
1239
|
+
)
|
|
1240
|
+
);
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
return OctokitWithDefaults;
|
|
1244
|
+
}
|
|
1245
|
+
static plugins = [];
|
|
1246
|
+
/**
|
|
1247
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
1248
|
+
*
|
|
1249
|
+
* @example
|
|
1250
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
1251
|
+
*/
|
|
1252
|
+
static plugin(...newPlugins) {
|
|
1253
|
+
const currentPlugins = this.plugins;
|
|
1254
|
+
const NewOctokit = class extends this {
|
|
1255
|
+
static plugins = currentPlugins.concat(
|
|
1256
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
1257
|
+
);
|
|
1258
|
+
};
|
|
1259
|
+
return NewOctokit;
|
|
1260
|
+
}
|
|
1261
|
+
constructor(options = {}) {
|
|
1262
|
+
const hook2 = new before_after_hook_default.Collection();
|
|
1263
|
+
const requestDefaults = {
|
|
1264
|
+
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
1265
|
+
headers: {},
|
|
1266
|
+
request: Object.assign({}, options.request, {
|
|
1267
|
+
// @ts-ignore internal usage only, no need to type
|
|
1268
|
+
hook: hook2.bind(null, "request")
|
|
1269
|
+
}),
|
|
1270
|
+
mediaType: {
|
|
1271
|
+
previews: [],
|
|
1272
|
+
format: ""
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
|
1276
|
+
if (options.baseUrl) {
|
|
1277
|
+
requestDefaults.baseUrl = options.baseUrl;
|
|
1278
|
+
}
|
|
1279
|
+
if (options.previews) {
|
|
1280
|
+
requestDefaults.mediaType.previews = options.previews;
|
|
1281
|
+
}
|
|
1282
|
+
if (options.timeZone) {
|
|
1283
|
+
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
1284
|
+
}
|
|
1285
|
+
this.request = request.defaults(requestDefaults);
|
|
1286
|
+
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
1287
|
+
this.log = Object.assign(
|
|
1288
|
+
{
|
|
1289
|
+
debug: noop,
|
|
1290
|
+
info: noop,
|
|
1291
|
+
warn: consoleWarn,
|
|
1292
|
+
error: consoleError
|
|
1293
|
+
},
|
|
1294
|
+
options.log
|
|
1295
|
+
);
|
|
1296
|
+
this.hook = hook2;
|
|
1297
|
+
if (!options.authStrategy) {
|
|
1298
|
+
if (!options.auth) {
|
|
1299
|
+
this.auth = async () => ({
|
|
1300
|
+
type: "unauthenticated"
|
|
1301
|
+
});
|
|
1302
|
+
} else {
|
|
1303
|
+
const auth2 = createTokenAuth(options.auth);
|
|
1304
|
+
hook2.wrap("request", auth2.hook);
|
|
1305
|
+
this.auth = auth2;
|
|
1306
|
+
}
|
|
1307
|
+
} else {
|
|
1308
|
+
const { authStrategy, ...otherOptions } = options;
|
|
1309
|
+
const auth2 = authStrategy(
|
|
1310
|
+
Object.assign(
|
|
1311
|
+
{
|
|
1312
|
+
request: this.request,
|
|
1313
|
+
log: this.log,
|
|
1314
|
+
// we pass the current octokit instance as well as its constructor options
|
|
1315
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
1316
|
+
// that shares the same internal state as the current one. The original
|
|
1317
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
1318
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
1319
|
+
octokit: this,
|
|
1320
|
+
octokitOptions: otherOptions
|
|
1321
|
+
},
|
|
1322
|
+
options.auth
|
|
1323
|
+
)
|
|
1324
|
+
);
|
|
1325
|
+
hook2.wrap("request", auth2.hook);
|
|
1326
|
+
this.auth = auth2;
|
|
1327
|
+
}
|
|
1328
|
+
const classConstructor = this.constructor;
|
|
1329
|
+
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
1330
|
+
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
// assigned during constructor
|
|
1334
|
+
request;
|
|
1335
|
+
graphql;
|
|
1336
|
+
log;
|
|
1337
|
+
hook;
|
|
1338
|
+
// TODO: type `octokit.auth` based on passed options.authStrategy
|
|
1339
|
+
auth;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
// node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log/dist-src/version.js
|
|
1343
|
+
var VERSION5 = "5.3.1";
|
|
1344
|
+
|
|
1345
|
+
// node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log/dist-src/index.js
|
|
1346
|
+
function requestLog(octokit2) {
|
|
1347
|
+
octokit2.hook.wrap("request", (request2, options) => {
|
|
1348
|
+
octokit2.log.debug("request", options);
|
|
1349
|
+
const start = Date.now();
|
|
1350
|
+
const requestOptions = octokit2.request.endpoint.parse(options);
|
|
1351
|
+
const path2 = requestOptions.url.replace(options.baseUrl, "");
|
|
1352
|
+
return request2(options).then((response) => {
|
|
1353
|
+
const requestId = response.headers["x-github-request-id"];
|
|
1354
|
+
octokit2.log.info(
|
|
1355
|
+
`${requestOptions.method} ${path2} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
1356
|
+
);
|
|
1357
|
+
return response;
|
|
1358
|
+
}).catch((error) => {
|
|
1359
|
+
const requestId = error.response?.headers["x-github-request-id"] || "UNKNOWN";
|
|
1360
|
+
octokit2.log.error(
|
|
1361
|
+
`${requestOptions.method} ${path2} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
1362
|
+
);
|
|
1363
|
+
throw error;
|
|
1364
|
+
});
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
requestLog.VERSION = VERSION5;
|
|
1368
|
+
|
|
1369
|
+
// node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
1370
|
+
var VERSION6 = "11.3.1";
|
|
1371
|
+
function normalizePaginatedListResponse(response) {
|
|
1372
|
+
if (!response.data) {
|
|
1373
|
+
return {
|
|
1374
|
+
...response,
|
|
1375
|
+
data: []
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
1379
|
+
if (!responseNeedsNormalization)
|
|
1380
|
+
return response;
|
|
1381
|
+
const incompleteResults = response.data.incomplete_results;
|
|
1382
|
+
const repositorySelection = response.data.repository_selection;
|
|
1383
|
+
const totalCount = response.data.total_count;
|
|
1384
|
+
delete response.data.incomplete_results;
|
|
1385
|
+
delete response.data.repository_selection;
|
|
1386
|
+
delete response.data.total_count;
|
|
1387
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
1388
|
+
const data = response.data[namespaceKey];
|
|
1389
|
+
response.data = data;
|
|
1390
|
+
if (typeof incompleteResults !== "undefined") {
|
|
1391
|
+
response.data.incomplete_results = incompleteResults;
|
|
1392
|
+
}
|
|
1393
|
+
if (typeof repositorySelection !== "undefined") {
|
|
1394
|
+
response.data.repository_selection = repositorySelection;
|
|
1395
|
+
}
|
|
1396
|
+
response.data.total_count = totalCount;
|
|
1397
|
+
return response;
|
|
1398
|
+
}
|
|
1399
|
+
function iterator(octokit2, route, parameters) {
|
|
1400
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit2.request.endpoint(route, parameters);
|
|
1401
|
+
const requestMethod = typeof route === "function" ? route : octokit2.request;
|
|
1402
|
+
const method = options.method;
|
|
1403
|
+
const headers = options.headers;
|
|
1404
|
+
let url = options.url;
|
|
1405
|
+
return {
|
|
1406
|
+
[Symbol.asyncIterator]: () => ({
|
|
1407
|
+
async next() {
|
|
1408
|
+
if (!url)
|
|
1409
|
+
return { done: true };
|
|
1410
|
+
try {
|
|
1411
|
+
const response = await requestMethod({ method, url, headers });
|
|
1412
|
+
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
1413
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
1414
|
+
/<([^>]+)>;\s*rel="next"/
|
|
1415
|
+
) || [])[1];
|
|
1416
|
+
return { value: normalizedResponse };
|
|
1417
|
+
} catch (error) {
|
|
1418
|
+
if (error.status !== 409)
|
|
1419
|
+
throw error;
|
|
1420
|
+
url = "";
|
|
1421
|
+
return {
|
|
1422
|
+
value: {
|
|
1423
|
+
status: 200,
|
|
1424
|
+
headers: {},
|
|
1425
|
+
data: []
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
})
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
function paginate(octokit2, route, parameters, mapFn) {
|
|
1434
|
+
if (typeof parameters === "function") {
|
|
1435
|
+
mapFn = parameters;
|
|
1436
|
+
parameters = void 0;
|
|
1437
|
+
}
|
|
1438
|
+
return gather(
|
|
1439
|
+
octokit2,
|
|
1440
|
+
[],
|
|
1441
|
+
iterator(octokit2, route, parameters)[Symbol.asyncIterator](),
|
|
1442
|
+
mapFn
|
|
1443
|
+
);
|
|
1444
|
+
}
|
|
1445
|
+
function gather(octokit2, results, iterator2, mapFn) {
|
|
1446
|
+
return iterator2.next().then((result) => {
|
|
1447
|
+
if (result.done) {
|
|
1448
|
+
return results;
|
|
1449
|
+
}
|
|
1450
|
+
let earlyExit = false;
|
|
1451
|
+
function done() {
|
|
1452
|
+
earlyExit = true;
|
|
1453
|
+
}
|
|
1454
|
+
results = results.concat(
|
|
1455
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
1456
|
+
);
|
|
1457
|
+
if (earlyExit) {
|
|
1458
|
+
return results;
|
|
1459
|
+
}
|
|
1460
|
+
return gather(octokit2, results, iterator2, mapFn);
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
var composePaginateRest = Object.assign(paginate, {
|
|
1464
|
+
iterator
|
|
1465
|
+
});
|
|
1466
|
+
function paginateRest(octokit2) {
|
|
1467
|
+
return {
|
|
1468
|
+
paginate: Object.assign(paginate.bind(null, octokit2), {
|
|
1469
|
+
iterator: iterator.bind(null, octokit2)
|
|
1470
|
+
})
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
paginateRest.VERSION = VERSION6;
|
|
1474
|
+
|
|
1475
|
+
// node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js
|
|
1476
|
+
var VERSION7 = "13.2.2";
|
|
1477
|
+
var Endpoints = {
|
|
1478
|
+
actions: {
|
|
1479
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
1480
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1481
|
+
],
|
|
1482
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
1483
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
1484
|
+
],
|
|
1485
|
+
addSelectedRepoToOrgSecret: [
|
|
1486
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
1487
|
+
],
|
|
1488
|
+
addSelectedRepoToOrgVariable: [
|
|
1489
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
1490
|
+
],
|
|
1491
|
+
approveWorkflowRun: [
|
|
1492
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
1493
|
+
],
|
|
1494
|
+
cancelWorkflowRun: [
|
|
1495
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
1496
|
+
],
|
|
1497
|
+
createEnvironmentVariable: [
|
|
1498
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
1499
|
+
],
|
|
1500
|
+
createOrUpdateEnvironmentSecret: [
|
|
1501
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
1502
|
+
],
|
|
1503
|
+
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
1504
|
+
createOrUpdateRepoSecret: [
|
|
1505
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
1506
|
+
],
|
|
1507
|
+
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
1508
|
+
createRegistrationTokenForOrg: [
|
|
1509
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
1510
|
+
],
|
|
1511
|
+
createRegistrationTokenForRepo: [
|
|
1512
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
1513
|
+
],
|
|
1514
|
+
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
1515
|
+
createRemoveTokenForRepo: [
|
|
1516
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
1517
|
+
],
|
|
1518
|
+
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
1519
|
+
createWorkflowDispatch: [
|
|
1520
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
1521
|
+
],
|
|
1522
|
+
deleteActionsCacheById: [
|
|
1523
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
1524
|
+
],
|
|
1525
|
+
deleteActionsCacheByKey: [
|
|
1526
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
1527
|
+
],
|
|
1528
|
+
deleteArtifact: [
|
|
1529
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
1530
|
+
],
|
|
1531
|
+
deleteEnvironmentSecret: [
|
|
1532
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
1533
|
+
],
|
|
1534
|
+
deleteEnvironmentVariable: [
|
|
1535
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
1536
|
+
],
|
|
1537
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
1538
|
+
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
1539
|
+
deleteRepoSecret: [
|
|
1540
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
1541
|
+
],
|
|
1542
|
+
deleteRepoVariable: [
|
|
1543
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
1544
|
+
],
|
|
1545
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
1546
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
1547
|
+
],
|
|
1548
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
1549
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
1550
|
+
],
|
|
1551
|
+
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
1552
|
+
deleteWorkflowRunLogs: [
|
|
1553
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
1554
|
+
],
|
|
1555
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
1556
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
1557
|
+
],
|
|
1558
|
+
disableWorkflow: [
|
|
1559
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
1560
|
+
],
|
|
1561
|
+
downloadArtifact: [
|
|
1562
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
1563
|
+
],
|
|
1564
|
+
downloadJobLogsForWorkflowRun: [
|
|
1565
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
1566
|
+
],
|
|
1567
|
+
downloadWorkflowRunAttemptLogs: [
|
|
1568
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
1569
|
+
],
|
|
1570
|
+
downloadWorkflowRunLogs: [
|
|
1571
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
1572
|
+
],
|
|
1573
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
1574
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
1575
|
+
],
|
|
1576
|
+
enableWorkflow: [
|
|
1577
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
1578
|
+
],
|
|
1579
|
+
forceCancelWorkflowRun: [
|
|
1580
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
|
1581
|
+
],
|
|
1582
|
+
generateRunnerJitconfigForOrg: [
|
|
1583
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
1584
|
+
],
|
|
1585
|
+
generateRunnerJitconfigForRepo: [
|
|
1586
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
1587
|
+
],
|
|
1588
|
+
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
1589
|
+
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
1590
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
1591
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
1592
|
+
],
|
|
1593
|
+
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
1594
|
+
getAllowedActionsOrganization: [
|
|
1595
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
1596
|
+
],
|
|
1597
|
+
getAllowedActionsRepository: [
|
|
1598
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
1599
|
+
],
|
|
1600
|
+
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
1601
|
+
getCustomOidcSubClaimForRepo: [
|
|
1602
|
+
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
1603
|
+
],
|
|
1604
|
+
getEnvironmentPublicKey: [
|
|
1605
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
|
1606
|
+
],
|
|
1607
|
+
getEnvironmentSecret: [
|
|
1608
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
1609
|
+
],
|
|
1610
|
+
getEnvironmentVariable: [
|
|
1611
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
1612
|
+
],
|
|
1613
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
1614
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
1615
|
+
],
|
|
1616
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
1617
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
1618
|
+
],
|
|
1619
|
+
getGithubActionsPermissionsOrganization: [
|
|
1620
|
+
"GET /orgs/{org}/actions/permissions"
|
|
1621
|
+
],
|
|
1622
|
+
getGithubActionsPermissionsRepository: [
|
|
1623
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
1624
|
+
],
|
|
1625
|
+
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
1626
|
+
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
1627
|
+
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
1628
|
+
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
1629
|
+
getPendingDeploymentsForRun: [
|
|
1630
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
1631
|
+
],
|
|
1632
|
+
getRepoPermissions: [
|
|
1633
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
1634
|
+
{},
|
|
1635
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
1636
|
+
],
|
|
1637
|
+
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
1638
|
+
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
1639
|
+
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
1640
|
+
getReviewsForRun: [
|
|
1641
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
1642
|
+
],
|
|
1643
|
+
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
1644
|
+
getSelfHostedRunnerForRepo: [
|
|
1645
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
1646
|
+
],
|
|
1647
|
+
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
1648
|
+
getWorkflowAccessToRepository: [
|
|
1649
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
1650
|
+
],
|
|
1651
|
+
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
1652
|
+
getWorkflowRunAttempt: [
|
|
1653
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
1654
|
+
],
|
|
1655
|
+
getWorkflowRunUsage: [
|
|
1656
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
1657
|
+
],
|
|
1658
|
+
getWorkflowUsage: [
|
|
1659
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
1660
|
+
],
|
|
1661
|
+
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
1662
|
+
listEnvironmentSecrets: [
|
|
1663
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
1664
|
+
],
|
|
1665
|
+
listEnvironmentVariables: [
|
|
1666
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
1667
|
+
],
|
|
1668
|
+
listJobsForWorkflowRun: [
|
|
1669
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
1670
|
+
],
|
|
1671
|
+
listJobsForWorkflowRunAttempt: [
|
|
1672
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
1673
|
+
],
|
|
1674
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
1675
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1676
|
+
],
|
|
1677
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
1678
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
1679
|
+
],
|
|
1680
|
+
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
1681
|
+
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
1682
|
+
listRepoOrganizationSecrets: [
|
|
1683
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
1684
|
+
],
|
|
1685
|
+
listRepoOrganizationVariables: [
|
|
1686
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
1687
|
+
],
|
|
1688
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
1689
|
+
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
1690
|
+
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
1691
|
+
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
1692
|
+
listRunnerApplicationsForRepo: [
|
|
1693
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
1694
|
+
],
|
|
1695
|
+
listSelectedReposForOrgSecret: [
|
|
1696
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
1697
|
+
],
|
|
1698
|
+
listSelectedReposForOrgVariable: [
|
|
1699
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
1700
|
+
],
|
|
1701
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
1702
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
1703
|
+
],
|
|
1704
|
+
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
1705
|
+
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
1706
|
+
listWorkflowRunArtifacts: [
|
|
1707
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
1708
|
+
],
|
|
1709
|
+
listWorkflowRuns: [
|
|
1710
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
1711
|
+
],
|
|
1712
|
+
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
1713
|
+
reRunJobForWorkflowRun: [
|
|
1714
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
1715
|
+
],
|
|
1716
|
+
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
1717
|
+
reRunWorkflowFailedJobs: [
|
|
1718
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
1719
|
+
],
|
|
1720
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
1721
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1722
|
+
],
|
|
1723
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
1724
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
1725
|
+
],
|
|
1726
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
1727
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
1728
|
+
],
|
|
1729
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
1730
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
1731
|
+
],
|
|
1732
|
+
removeSelectedRepoFromOrgSecret: [
|
|
1733
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
1734
|
+
],
|
|
1735
|
+
removeSelectedRepoFromOrgVariable: [
|
|
1736
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
1737
|
+
],
|
|
1738
|
+
reviewCustomGatesForRun: [
|
|
1739
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
1740
|
+
],
|
|
1741
|
+
reviewPendingDeploymentsForRun: [
|
|
1742
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
1743
|
+
],
|
|
1744
|
+
setAllowedActionsOrganization: [
|
|
1745
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
1746
|
+
],
|
|
1747
|
+
setAllowedActionsRepository: [
|
|
1748
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
1749
|
+
],
|
|
1750
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
1751
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1752
|
+
],
|
|
1753
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
1754
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
1755
|
+
],
|
|
1756
|
+
setCustomOidcSubClaimForRepo: [
|
|
1757
|
+
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
1758
|
+
],
|
|
1759
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
1760
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
1761
|
+
],
|
|
1762
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
1763
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
1764
|
+
],
|
|
1765
|
+
setGithubActionsPermissionsOrganization: [
|
|
1766
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
1767
|
+
],
|
|
1768
|
+
setGithubActionsPermissionsRepository: [
|
|
1769
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
1770
|
+
],
|
|
1771
|
+
setSelectedReposForOrgSecret: [
|
|
1772
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
1773
|
+
],
|
|
1774
|
+
setSelectedReposForOrgVariable: [
|
|
1775
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
1776
|
+
],
|
|
1777
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
1778
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
1779
|
+
],
|
|
1780
|
+
setWorkflowAccessToRepository: [
|
|
1781
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
1782
|
+
],
|
|
1783
|
+
updateEnvironmentVariable: [
|
|
1784
|
+
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
1785
|
+
],
|
|
1786
|
+
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
1787
|
+
updateRepoVariable: [
|
|
1788
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1791
|
+
activity: {
|
|
1792
|
+
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
1793
|
+
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
1794
|
+
deleteThreadSubscription: [
|
|
1795
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
1796
|
+
],
|
|
1797
|
+
getFeeds: ["GET /feeds"],
|
|
1798
|
+
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
1799
|
+
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
1800
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
1801
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
1802
|
+
],
|
|
1803
|
+
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
1804
|
+
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
1805
|
+
listOrgEventsForAuthenticatedUser: [
|
|
1806
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
1807
|
+
],
|
|
1808
|
+
listPublicEvents: ["GET /events"],
|
|
1809
|
+
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
1810
|
+
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
1811
|
+
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
1812
|
+
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
1813
|
+
listReceivedPublicEventsForUser: [
|
|
1814
|
+
"GET /users/{username}/received_events/public"
|
|
1815
|
+
],
|
|
1816
|
+
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
1817
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
1818
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
1819
|
+
],
|
|
1820
|
+
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
1821
|
+
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
1822
|
+
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
1823
|
+
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
|
1824
|
+
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
|
1825
|
+
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
|
1826
|
+
markNotificationsAsRead: ["PUT /notifications"],
|
|
1827
|
+
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
1828
|
+
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
|
1829
|
+
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
1830
|
+
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
1831
|
+
setThreadSubscription: [
|
|
1832
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
1833
|
+
],
|
|
1834
|
+
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
1835
|
+
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
1836
|
+
},
|
|
1837
|
+
apps: {
|
|
1838
|
+
addRepoToInstallation: [
|
|
1839
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
1840
|
+
{},
|
|
1841
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
1842
|
+
],
|
|
1843
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
1844
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
1845
|
+
],
|
|
1846
|
+
checkToken: ["POST /applications/{client_id}/token"],
|
|
1847
|
+
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
1848
|
+
createInstallationAccessToken: [
|
|
1849
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
1850
|
+
],
|
|
1851
|
+
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
1852
|
+
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
1853
|
+
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
1854
|
+
getAuthenticated: ["GET /app"],
|
|
1855
|
+
getBySlug: ["GET /apps/{app_slug}"],
|
|
1856
|
+
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
1857
|
+
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
1858
|
+
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
1859
|
+
getSubscriptionPlanForAccount: [
|
|
1860
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
1861
|
+
],
|
|
1862
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
1863
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
1864
|
+
],
|
|
1865
|
+
getUserInstallation: ["GET /users/{username}/installation"],
|
|
1866
|
+
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
1867
|
+
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
1868
|
+
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
1869
|
+
listAccountsForPlanStubbed: [
|
|
1870
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
1871
|
+
],
|
|
1872
|
+
listInstallationReposForAuthenticatedUser: [
|
|
1873
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
1874
|
+
],
|
|
1875
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
1876
|
+
"GET /app/installation-requests"
|
|
1877
|
+
],
|
|
1878
|
+
listInstallations: ["GET /app/installations"],
|
|
1879
|
+
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
1880
|
+
listPlans: ["GET /marketplace_listing/plans"],
|
|
1881
|
+
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
1882
|
+
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
1883
|
+
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
1884
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
1885
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
1886
|
+
],
|
|
1887
|
+
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
1888
|
+
redeliverWebhookDelivery: [
|
|
1889
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
1890
|
+
],
|
|
1891
|
+
removeRepoFromInstallation: [
|
|
1892
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
1893
|
+
{},
|
|
1894
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
1895
|
+
],
|
|
1896
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
1897
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
1898
|
+
],
|
|
1899
|
+
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
1900
|
+
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
1901
|
+
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
1902
|
+
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
1903
|
+
unsuspendInstallation: [
|
|
1904
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
1905
|
+
],
|
|
1906
|
+
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
1907
|
+
},
|
|
1908
|
+
billing: {
|
|
1909
|
+
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
1910
|
+
getGithubActionsBillingUser: [
|
|
1911
|
+
"GET /users/{username}/settings/billing/actions"
|
|
1912
|
+
],
|
|
1913
|
+
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
1914
|
+
getGithubPackagesBillingUser: [
|
|
1915
|
+
"GET /users/{username}/settings/billing/packages"
|
|
1916
|
+
],
|
|
1917
|
+
getSharedStorageBillingOrg: [
|
|
1918
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
1919
|
+
],
|
|
1920
|
+
getSharedStorageBillingUser: [
|
|
1921
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
1922
|
+
]
|
|
1923
|
+
},
|
|
1924
|
+
checks: {
|
|
1925
|
+
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
1926
|
+
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
1927
|
+
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
1928
|
+
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
1929
|
+
listAnnotations: [
|
|
1930
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
1931
|
+
],
|
|
1932
|
+
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
1933
|
+
listForSuite: [
|
|
1934
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
1935
|
+
],
|
|
1936
|
+
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
1937
|
+
rerequestRun: [
|
|
1938
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
1939
|
+
],
|
|
1940
|
+
rerequestSuite: [
|
|
1941
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
1942
|
+
],
|
|
1943
|
+
setSuitesPreferences: [
|
|
1944
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
1945
|
+
],
|
|
1946
|
+
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
1947
|
+
},
|
|
1948
|
+
codeScanning: {
|
|
1949
|
+
deleteAnalysis: [
|
|
1950
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
1951
|
+
],
|
|
1952
|
+
getAlert: [
|
|
1953
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
1954
|
+
{},
|
|
1955
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
1956
|
+
],
|
|
1957
|
+
getAnalysis: [
|
|
1958
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
1959
|
+
],
|
|
1960
|
+
getCodeqlDatabase: [
|
|
1961
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
1962
|
+
],
|
|
1963
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
1964
|
+
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
1965
|
+
listAlertInstances: [
|
|
1966
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
1967
|
+
],
|
|
1968
|
+
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
1969
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
1970
|
+
listAlertsInstances: [
|
|
1971
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
1972
|
+
{},
|
|
1973
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
1974
|
+
],
|
|
1975
|
+
listCodeqlDatabases: [
|
|
1976
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
1977
|
+
],
|
|
1978
|
+
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
1979
|
+
updateAlert: [
|
|
1980
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
1981
|
+
],
|
|
1982
|
+
updateDefaultSetup: [
|
|
1983
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
1984
|
+
],
|
|
1985
|
+
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
1986
|
+
},
|
|
1987
|
+
codesOfConduct: {
|
|
1988
|
+
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
|
1989
|
+
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
1990
|
+
},
|
|
1991
|
+
codespaces: {
|
|
1992
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
1993
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
1994
|
+
],
|
|
1995
|
+
addSelectedRepoToOrgSecret: [
|
|
1996
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
1997
|
+
],
|
|
1998
|
+
checkPermissionsForDevcontainer: [
|
|
1999
|
+
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
|
2000
|
+
],
|
|
2001
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
2002
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
2003
|
+
],
|
|
2004
|
+
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
2005
|
+
createOrUpdateOrgSecret: [
|
|
2006
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
2007
|
+
],
|
|
2008
|
+
createOrUpdateRepoSecret: [
|
|
2009
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
2010
|
+
],
|
|
2011
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
2012
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
2013
|
+
],
|
|
2014
|
+
createWithPrForAuthenticatedUser: [
|
|
2015
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
2016
|
+
],
|
|
2017
|
+
createWithRepoForAuthenticatedUser: [
|
|
2018
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
2019
|
+
],
|
|
2020
|
+
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
2021
|
+
deleteFromOrganization: [
|
|
2022
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
2023
|
+
],
|
|
2024
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
2025
|
+
deleteRepoSecret: [
|
|
2026
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
2027
|
+
],
|
|
2028
|
+
deleteSecretForAuthenticatedUser: [
|
|
2029
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
2030
|
+
],
|
|
2031
|
+
exportForAuthenticatedUser: [
|
|
2032
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
2033
|
+
],
|
|
2034
|
+
getCodespacesForUserInOrg: [
|
|
2035
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
2036
|
+
],
|
|
2037
|
+
getExportDetailsForAuthenticatedUser: [
|
|
2038
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
2039
|
+
],
|
|
2040
|
+
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
2041
|
+
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
2042
|
+
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
2043
|
+
getPublicKeyForAuthenticatedUser: [
|
|
2044
|
+
"GET /user/codespaces/secrets/public-key"
|
|
2045
|
+
],
|
|
2046
|
+
getRepoPublicKey: [
|
|
2047
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
2048
|
+
],
|
|
2049
|
+
getRepoSecret: [
|
|
2050
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
2051
|
+
],
|
|
2052
|
+
getSecretForAuthenticatedUser: [
|
|
2053
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
2054
|
+
],
|
|
2055
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
2056
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
2057
|
+
],
|
|
2058
|
+
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
2059
|
+
listInOrganization: [
|
|
2060
|
+
"GET /orgs/{org}/codespaces",
|
|
2061
|
+
{},
|
|
2062
|
+
{ renamedParameters: { org_id: "org" } }
|
|
2063
|
+
],
|
|
2064
|
+
listInRepositoryForAuthenticatedUser: [
|
|
2065
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
2066
|
+
],
|
|
2067
|
+
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
2068
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
2069
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
2070
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
2071
|
+
],
|
|
2072
|
+
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
2073
|
+
listSelectedReposForOrgSecret: [
|
|
2074
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
2075
|
+
],
|
|
2076
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
2077
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
2078
|
+
],
|
|
2079
|
+
publishForAuthenticatedUser: [
|
|
2080
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
2081
|
+
],
|
|
2082
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
2083
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
2084
|
+
],
|
|
2085
|
+
removeSelectedRepoFromOrgSecret: [
|
|
2086
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
2087
|
+
],
|
|
2088
|
+
repoMachinesForAuthenticatedUser: [
|
|
2089
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
2090
|
+
],
|
|
2091
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
2092
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
2093
|
+
],
|
|
2094
|
+
setSelectedReposForOrgSecret: [
|
|
2095
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
2096
|
+
],
|
|
2097
|
+
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
2098
|
+
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
2099
|
+
stopInOrganization: [
|
|
2100
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
2101
|
+
],
|
|
2102
|
+
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
2103
|
+
},
|
|
2104
|
+
copilot: {
|
|
2105
|
+
addCopilotSeatsForTeams: [
|
|
2106
|
+
"POST /orgs/{org}/copilot/billing/selected_teams"
|
|
2107
|
+
],
|
|
2108
|
+
addCopilotSeatsForUsers: [
|
|
2109
|
+
"POST /orgs/{org}/copilot/billing/selected_users"
|
|
2110
|
+
],
|
|
2111
|
+
cancelCopilotSeatAssignmentForTeams: [
|
|
2112
|
+
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
|
2113
|
+
],
|
|
2114
|
+
cancelCopilotSeatAssignmentForUsers: [
|
|
2115
|
+
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
|
2116
|
+
],
|
|
2117
|
+
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
|
2118
|
+
getCopilotSeatDetailsForUser: [
|
|
2119
|
+
"GET /orgs/{org}/members/{username}/copilot"
|
|
2120
|
+
],
|
|
2121
|
+
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
2122
|
+
usageMetricsForEnterprise: ["GET /enterprises/{enterprise}/copilot/usage"],
|
|
2123
|
+
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
2124
|
+
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
2125
|
+
},
|
|
2126
|
+
dependabot: {
|
|
2127
|
+
addSelectedRepoToOrgSecret: [
|
|
2128
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
2129
|
+
],
|
|
2130
|
+
createOrUpdateOrgSecret: [
|
|
2131
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
2132
|
+
],
|
|
2133
|
+
createOrUpdateRepoSecret: [
|
|
2134
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
2135
|
+
],
|
|
2136
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
2137
|
+
deleteRepoSecret: [
|
|
2138
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
2139
|
+
],
|
|
2140
|
+
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
2141
|
+
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
2142
|
+
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
2143
|
+
getRepoPublicKey: [
|
|
2144
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
2145
|
+
],
|
|
2146
|
+
getRepoSecret: [
|
|
2147
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
2148
|
+
],
|
|
2149
|
+
listAlertsForEnterprise: [
|
|
2150
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
2151
|
+
],
|
|
2152
|
+
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
2153
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
2154
|
+
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
2155
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
2156
|
+
listSelectedReposForOrgSecret: [
|
|
2157
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
2158
|
+
],
|
|
2159
|
+
removeSelectedRepoFromOrgSecret: [
|
|
2160
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
2161
|
+
],
|
|
2162
|
+
setSelectedReposForOrgSecret: [
|
|
2163
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
2164
|
+
],
|
|
2165
|
+
updateAlert: [
|
|
2166
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2169
|
+
dependencyGraph: {
|
|
2170
|
+
createRepositorySnapshot: [
|
|
2171
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
2172
|
+
],
|
|
2173
|
+
diffRange: [
|
|
2174
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
2175
|
+
],
|
|
2176
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
2177
|
+
},
|
|
2178
|
+
emojis: { get: ["GET /emojis"] },
|
|
2179
|
+
gists: {
|
|
2180
|
+
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
2181
|
+
create: ["POST /gists"],
|
|
2182
|
+
createComment: ["POST /gists/{gist_id}/comments"],
|
|
2183
|
+
delete: ["DELETE /gists/{gist_id}"],
|
|
2184
|
+
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
|
2185
|
+
fork: ["POST /gists/{gist_id}/forks"],
|
|
2186
|
+
get: ["GET /gists/{gist_id}"],
|
|
2187
|
+
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
|
2188
|
+
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
|
2189
|
+
list: ["GET /gists"],
|
|
2190
|
+
listComments: ["GET /gists/{gist_id}/comments"],
|
|
2191
|
+
listCommits: ["GET /gists/{gist_id}/commits"],
|
|
2192
|
+
listForUser: ["GET /users/{username}/gists"],
|
|
2193
|
+
listForks: ["GET /gists/{gist_id}/forks"],
|
|
2194
|
+
listPublic: ["GET /gists/public"],
|
|
2195
|
+
listStarred: ["GET /gists/starred"],
|
|
2196
|
+
star: ["PUT /gists/{gist_id}/star"],
|
|
2197
|
+
unstar: ["DELETE /gists/{gist_id}/star"],
|
|
2198
|
+
update: ["PATCH /gists/{gist_id}"],
|
|
2199
|
+
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
|
2200
|
+
},
|
|
2201
|
+
git: {
|
|
2202
|
+
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
|
2203
|
+
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
|
2204
|
+
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
|
2205
|
+
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
|
2206
|
+
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
|
2207
|
+
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
|
2208
|
+
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
|
2209
|
+
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
|
2210
|
+
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
|
2211
|
+
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
|
2212
|
+
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
|
2213
|
+
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
|
2214
|
+
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
|
2215
|
+
},
|
|
2216
|
+
gitignore: {
|
|
2217
|
+
getAllTemplates: ["GET /gitignore/templates"],
|
|
2218
|
+
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
2219
|
+
},
|
|
2220
|
+
interactions: {
|
|
2221
|
+
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
2222
|
+
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
2223
|
+
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
2224
|
+
getRestrictionsForYourPublicRepos: [
|
|
2225
|
+
"GET /user/interaction-limits",
|
|
2226
|
+
{},
|
|
2227
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
2228
|
+
],
|
|
2229
|
+
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
2230
|
+
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
2231
|
+
removeRestrictionsForRepo: [
|
|
2232
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
2233
|
+
],
|
|
2234
|
+
removeRestrictionsForYourPublicRepos: [
|
|
2235
|
+
"DELETE /user/interaction-limits",
|
|
2236
|
+
{},
|
|
2237
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
2238
|
+
],
|
|
2239
|
+
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
2240
|
+
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
2241
|
+
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
2242
|
+
setRestrictionsForYourPublicRepos: [
|
|
2243
|
+
"PUT /user/interaction-limits",
|
|
2244
|
+
{},
|
|
2245
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
2246
|
+
]
|
|
2247
|
+
},
|
|
2248
|
+
issues: {
|
|
2249
|
+
addAssignees: [
|
|
2250
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
2251
|
+
],
|
|
2252
|
+
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
2253
|
+
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
2254
|
+
checkUserCanBeAssignedToIssue: [
|
|
2255
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
2256
|
+
],
|
|
2257
|
+
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
2258
|
+
createComment: [
|
|
2259
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
2260
|
+
],
|
|
2261
|
+
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
2262
|
+
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
2263
|
+
deleteComment: [
|
|
2264
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
2265
|
+
],
|
|
2266
|
+
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
2267
|
+
deleteMilestone: [
|
|
2268
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
2269
|
+
],
|
|
2270
|
+
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
2271
|
+
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
2272
|
+
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
2273
|
+
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
2274
|
+
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
2275
|
+
list: ["GET /issues"],
|
|
2276
|
+
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
2277
|
+
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
2278
|
+
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
2279
|
+
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
2280
|
+
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
2281
|
+
listEventsForTimeline: [
|
|
2282
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
2283
|
+
],
|
|
2284
|
+
listForAuthenticatedUser: ["GET /user/issues"],
|
|
2285
|
+
listForOrg: ["GET /orgs/{org}/issues"],
|
|
2286
|
+
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
2287
|
+
listLabelsForMilestone: [
|
|
2288
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
2289
|
+
],
|
|
2290
|
+
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
2291
|
+
listLabelsOnIssue: [
|
|
2292
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
2293
|
+
],
|
|
2294
|
+
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
2295
|
+
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
2296
|
+
removeAllLabels: [
|
|
2297
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
2298
|
+
],
|
|
2299
|
+
removeAssignees: [
|
|
2300
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
2301
|
+
],
|
|
2302
|
+
removeLabel: [
|
|
2303
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
2304
|
+
],
|
|
2305
|
+
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
2306
|
+
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
2307
|
+
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
2308
|
+
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
2309
|
+
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
2310
|
+
updateMilestone: [
|
|
2311
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
2312
|
+
]
|
|
2313
|
+
},
|
|
2314
|
+
licenses: {
|
|
2315
|
+
get: ["GET /licenses/{license}"],
|
|
2316
|
+
getAllCommonlyUsed: ["GET /licenses"],
|
|
2317
|
+
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
|
2318
|
+
},
|
|
2319
|
+
markdown: {
|
|
2320
|
+
render: ["POST /markdown"],
|
|
2321
|
+
renderRaw: [
|
|
2322
|
+
"POST /markdown/raw",
|
|
2323
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
2324
|
+
]
|
|
2325
|
+
},
|
|
2326
|
+
meta: {
|
|
2327
|
+
get: ["GET /meta"],
|
|
2328
|
+
getAllVersions: ["GET /versions"],
|
|
2329
|
+
getOctocat: ["GET /octocat"],
|
|
2330
|
+
getZen: ["GET /zen"],
|
|
2331
|
+
root: ["GET /"]
|
|
2332
|
+
},
|
|
2333
|
+
migrations: {
|
|
2334
|
+
deleteArchiveForAuthenticatedUser: [
|
|
2335
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
2336
|
+
],
|
|
2337
|
+
deleteArchiveForOrg: [
|
|
2338
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
2339
|
+
],
|
|
2340
|
+
downloadArchiveForOrg: [
|
|
2341
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
2342
|
+
],
|
|
2343
|
+
getArchiveForAuthenticatedUser: [
|
|
2344
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
2345
|
+
],
|
|
2346
|
+
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
|
2347
|
+
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
2348
|
+
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
2349
|
+
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
2350
|
+
listReposForAuthenticatedUser: [
|
|
2351
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
2352
|
+
],
|
|
2353
|
+
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
2354
|
+
listReposForUser: [
|
|
2355
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
2356
|
+
{},
|
|
2357
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
2358
|
+
],
|
|
2359
|
+
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
2360
|
+
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
2361
|
+
unlockRepoForAuthenticatedUser: [
|
|
2362
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
2363
|
+
],
|
|
2364
|
+
unlockRepoForOrg: [
|
|
2365
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
2366
|
+
]
|
|
2367
|
+
},
|
|
2368
|
+
oidc: {
|
|
2369
|
+
getOidcCustomSubTemplateForOrg: [
|
|
2370
|
+
"GET /orgs/{org}/actions/oidc/customization/sub"
|
|
2371
|
+
],
|
|
2372
|
+
updateOidcCustomSubTemplateForOrg: [
|
|
2373
|
+
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2376
|
+
orgs: {
|
|
2377
|
+
addSecurityManagerTeam: [
|
|
2378
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
|
2379
|
+
],
|
|
2380
|
+
assignTeamToOrgRole: [
|
|
2381
|
+
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
2382
|
+
],
|
|
2383
|
+
assignUserToOrgRole: [
|
|
2384
|
+
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
2385
|
+
],
|
|
2386
|
+
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
2387
|
+
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
2388
|
+
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
2389
|
+
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
2390
|
+
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
2391
|
+
convertMemberToOutsideCollaborator: [
|
|
2392
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
2393
|
+
],
|
|
2394
|
+
createCustomOrganizationRole: ["POST /orgs/{org}/organization-roles"],
|
|
2395
|
+
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
2396
|
+
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
2397
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
2398
|
+
"PATCH /orgs/{org}/properties/values"
|
|
2399
|
+
],
|
|
2400
|
+
createOrUpdateCustomProperty: [
|
|
2401
|
+
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
2402
|
+
],
|
|
2403
|
+
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
2404
|
+
delete: ["DELETE /orgs/{org}"],
|
|
2405
|
+
deleteCustomOrganizationRole: [
|
|
2406
|
+
"DELETE /orgs/{org}/organization-roles/{role_id}"
|
|
2407
|
+
],
|
|
2408
|
+
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
2409
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
2410
|
+
"POST /orgs/{org}/{security_product}/{enablement}"
|
|
2411
|
+
],
|
|
2412
|
+
get: ["GET /orgs/{org}"],
|
|
2413
|
+
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
2414
|
+
getCustomProperty: [
|
|
2415
|
+
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
2416
|
+
],
|
|
2417
|
+
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
2418
|
+
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
2419
|
+
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
2420
|
+
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
2421
|
+
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
2422
|
+
getWebhookDelivery: [
|
|
2423
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
2424
|
+
],
|
|
2425
|
+
list: ["GET /organizations"],
|
|
2426
|
+
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
2427
|
+
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
2428
|
+
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
2429
|
+
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
2430
|
+
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
2431
|
+
listForUser: ["GET /users/{username}/orgs"],
|
|
2432
|
+
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
2433
|
+
listMembers: ["GET /orgs/{org}/members"],
|
|
2434
|
+
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
2435
|
+
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
2436
|
+
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
|
2437
|
+
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
|
2438
|
+
listOrganizationFineGrainedPermissions: [
|
|
2439
|
+
"GET /orgs/{org}/organization-fine-grained-permissions"
|
|
2440
|
+
],
|
|
2441
|
+
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
2442
|
+
listPatGrantRepositories: [
|
|
2443
|
+
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
2444
|
+
],
|
|
2445
|
+
listPatGrantRequestRepositories: [
|
|
2446
|
+
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
2447
|
+
],
|
|
2448
|
+
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
|
2449
|
+
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
|
2450
|
+
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
2451
|
+
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
2452
|
+
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
|
2453
|
+
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
2454
|
+
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
2455
|
+
patchCustomOrganizationRole: [
|
|
2456
|
+
"PATCH /orgs/{org}/organization-roles/{role_id}"
|
|
2457
|
+
],
|
|
2458
|
+
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
2459
|
+
redeliverWebhookDelivery: [
|
|
2460
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
2461
|
+
],
|
|
2462
|
+
removeCustomProperty: [
|
|
2463
|
+
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
2464
|
+
],
|
|
2465
|
+
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
2466
|
+
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
2467
|
+
removeOutsideCollaborator: [
|
|
2468
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
2469
|
+
],
|
|
2470
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
2471
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
2472
|
+
],
|
|
2473
|
+
removeSecurityManagerTeam: [
|
|
2474
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
|
2475
|
+
],
|
|
2476
|
+
reviewPatGrantRequest: [
|
|
2477
|
+
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
2478
|
+
],
|
|
2479
|
+
reviewPatGrantRequestsInBulk: [
|
|
2480
|
+
"POST /orgs/{org}/personal-access-token-requests"
|
|
2481
|
+
],
|
|
2482
|
+
revokeAllOrgRolesTeam: [
|
|
2483
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
|
2484
|
+
],
|
|
2485
|
+
revokeAllOrgRolesUser: [
|
|
2486
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
|
2487
|
+
],
|
|
2488
|
+
revokeOrgRoleTeam: [
|
|
2489
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
2490
|
+
],
|
|
2491
|
+
revokeOrgRoleUser: [
|
|
2492
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
2493
|
+
],
|
|
2494
|
+
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
2495
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
2496
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
2497
|
+
],
|
|
2498
|
+
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
2499
|
+
update: ["PATCH /orgs/{org}"],
|
|
2500
|
+
updateMembershipForAuthenticatedUser: [
|
|
2501
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
2502
|
+
],
|
|
2503
|
+
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
|
2504
|
+
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
|
2505
|
+
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
2506
|
+
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
2507
|
+
},
|
|
2508
|
+
packages: {
|
|
2509
|
+
deletePackageForAuthenticatedUser: [
|
|
2510
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
2511
|
+
],
|
|
2512
|
+
deletePackageForOrg: [
|
|
2513
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
2514
|
+
],
|
|
2515
|
+
deletePackageForUser: [
|
|
2516
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
2517
|
+
],
|
|
2518
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
2519
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2520
|
+
],
|
|
2521
|
+
deletePackageVersionForOrg: [
|
|
2522
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2523
|
+
],
|
|
2524
|
+
deletePackageVersionForUser: [
|
|
2525
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2526
|
+
],
|
|
2527
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
2528
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
2529
|
+
{},
|
|
2530
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
2531
|
+
],
|
|
2532
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
2533
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
2534
|
+
{},
|
|
2535
|
+
{
|
|
2536
|
+
renamed: [
|
|
2537
|
+
"packages",
|
|
2538
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
2539
|
+
]
|
|
2540
|
+
}
|
|
2541
|
+
],
|
|
2542
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
2543
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
2544
|
+
],
|
|
2545
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
2546
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
2547
|
+
],
|
|
2548
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
2549
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
2550
|
+
],
|
|
2551
|
+
getPackageForAuthenticatedUser: [
|
|
2552
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
2553
|
+
],
|
|
2554
|
+
getPackageForOrganization: [
|
|
2555
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
2556
|
+
],
|
|
2557
|
+
getPackageForUser: [
|
|
2558
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
2559
|
+
],
|
|
2560
|
+
getPackageVersionForAuthenticatedUser: [
|
|
2561
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2562
|
+
],
|
|
2563
|
+
getPackageVersionForOrganization: [
|
|
2564
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2565
|
+
],
|
|
2566
|
+
getPackageVersionForUser: [
|
|
2567
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
2568
|
+
],
|
|
2569
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
2570
|
+
"GET /user/docker/conflicts"
|
|
2571
|
+
],
|
|
2572
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
2573
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
2574
|
+
],
|
|
2575
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
2576
|
+
"GET /users/{username}/docker/conflicts"
|
|
2577
|
+
],
|
|
2578
|
+
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
2579
|
+
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
2580
|
+
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
2581
|
+
restorePackageForAuthenticatedUser: [
|
|
2582
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
2583
|
+
],
|
|
2584
|
+
restorePackageForOrg: [
|
|
2585
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
2586
|
+
],
|
|
2587
|
+
restorePackageForUser: [
|
|
2588
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
2589
|
+
],
|
|
2590
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
2591
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
2592
|
+
],
|
|
2593
|
+
restorePackageVersionForOrg: [
|
|
2594
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
2595
|
+
],
|
|
2596
|
+
restorePackageVersionForUser: [
|
|
2597
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
2598
|
+
]
|
|
2599
|
+
},
|
|
2600
|
+
projects: {
|
|
2601
|
+
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
2602
|
+
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
2603
|
+
createColumn: ["POST /projects/{project_id}/columns"],
|
|
2604
|
+
createForAuthenticatedUser: ["POST /user/projects"],
|
|
2605
|
+
createForOrg: ["POST /orgs/{org}/projects"],
|
|
2606
|
+
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
2607
|
+
delete: ["DELETE /projects/{project_id}"],
|
|
2608
|
+
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
2609
|
+
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
2610
|
+
get: ["GET /projects/{project_id}"],
|
|
2611
|
+
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
2612
|
+
getColumn: ["GET /projects/columns/{column_id}"],
|
|
2613
|
+
getPermissionForUser: [
|
|
2614
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
2615
|
+
],
|
|
2616
|
+
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
2617
|
+
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
2618
|
+
listColumns: ["GET /projects/{project_id}/columns"],
|
|
2619
|
+
listForOrg: ["GET /orgs/{org}/projects"],
|
|
2620
|
+
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
2621
|
+
listForUser: ["GET /users/{username}/projects"],
|
|
2622
|
+
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
2623
|
+
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
2624
|
+
removeCollaborator: [
|
|
2625
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
2626
|
+
],
|
|
2627
|
+
update: ["PATCH /projects/{project_id}"],
|
|
2628
|
+
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
2629
|
+
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
2630
|
+
},
|
|
2631
|
+
pulls: {
|
|
2632
|
+
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
2633
|
+
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
2634
|
+
createReplyForReviewComment: [
|
|
2635
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
2636
|
+
],
|
|
2637
|
+
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
2638
|
+
createReviewComment: [
|
|
2639
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
2640
|
+
],
|
|
2641
|
+
deletePendingReview: [
|
|
2642
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
2643
|
+
],
|
|
2644
|
+
deleteReviewComment: [
|
|
2645
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
2646
|
+
],
|
|
2647
|
+
dismissReview: [
|
|
2648
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
2649
|
+
],
|
|
2650
|
+
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
2651
|
+
getReview: [
|
|
2652
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
2653
|
+
],
|
|
2654
|
+
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
2655
|
+
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
2656
|
+
listCommentsForReview: [
|
|
2657
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
2658
|
+
],
|
|
2659
|
+
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
2660
|
+
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
2661
|
+
listRequestedReviewers: [
|
|
2662
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
2663
|
+
],
|
|
2664
|
+
listReviewComments: [
|
|
2665
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
2666
|
+
],
|
|
2667
|
+
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
2668
|
+
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
2669
|
+
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
2670
|
+
removeRequestedReviewers: [
|
|
2671
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
2672
|
+
],
|
|
2673
|
+
requestReviewers: [
|
|
2674
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
2675
|
+
],
|
|
2676
|
+
submitReview: [
|
|
2677
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
2678
|
+
],
|
|
2679
|
+
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
2680
|
+
updateBranch: [
|
|
2681
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
2682
|
+
],
|
|
2683
|
+
updateReview: [
|
|
2684
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
2685
|
+
],
|
|
2686
|
+
updateReviewComment: [
|
|
2687
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
2688
|
+
]
|
|
2689
|
+
},
|
|
2690
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
2691
|
+
reactions: {
|
|
2692
|
+
createForCommitComment: [
|
|
2693
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
2694
|
+
],
|
|
2695
|
+
createForIssue: [
|
|
2696
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
2697
|
+
],
|
|
2698
|
+
createForIssueComment: [
|
|
2699
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
2700
|
+
],
|
|
2701
|
+
createForPullRequestReviewComment: [
|
|
2702
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
2703
|
+
],
|
|
2704
|
+
createForRelease: [
|
|
2705
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
2706
|
+
],
|
|
2707
|
+
createForTeamDiscussionCommentInOrg: [
|
|
2708
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
2709
|
+
],
|
|
2710
|
+
createForTeamDiscussionInOrg: [
|
|
2711
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
2712
|
+
],
|
|
2713
|
+
deleteForCommitComment: [
|
|
2714
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
2715
|
+
],
|
|
2716
|
+
deleteForIssue: [
|
|
2717
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
2718
|
+
],
|
|
2719
|
+
deleteForIssueComment: [
|
|
2720
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
2721
|
+
],
|
|
2722
|
+
deleteForPullRequestComment: [
|
|
2723
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
2724
|
+
],
|
|
2725
|
+
deleteForRelease: [
|
|
2726
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
2727
|
+
],
|
|
2728
|
+
deleteForTeamDiscussion: [
|
|
2729
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
2730
|
+
],
|
|
2731
|
+
deleteForTeamDiscussionComment: [
|
|
2732
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
2733
|
+
],
|
|
2734
|
+
listForCommitComment: [
|
|
2735
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
2736
|
+
],
|
|
2737
|
+
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
2738
|
+
listForIssueComment: [
|
|
2739
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
2740
|
+
],
|
|
2741
|
+
listForPullRequestReviewComment: [
|
|
2742
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
2743
|
+
],
|
|
2744
|
+
listForRelease: [
|
|
2745
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
2746
|
+
],
|
|
2747
|
+
listForTeamDiscussionCommentInOrg: [
|
|
2748
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
2749
|
+
],
|
|
2750
|
+
listForTeamDiscussionInOrg: [
|
|
2751
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
2752
|
+
]
|
|
2753
|
+
},
|
|
2754
|
+
repos: {
|
|
2755
|
+
acceptInvitation: [
|
|
2756
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
2757
|
+
{},
|
|
2758
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
2759
|
+
],
|
|
2760
|
+
acceptInvitationForAuthenticatedUser: [
|
|
2761
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
2762
|
+
],
|
|
2763
|
+
addAppAccessRestrictions: [
|
|
2764
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
2765
|
+
{},
|
|
2766
|
+
{ mapToData: "apps" }
|
|
2767
|
+
],
|
|
2768
|
+
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
2769
|
+
addStatusCheckContexts: [
|
|
2770
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
2771
|
+
{},
|
|
2772
|
+
{ mapToData: "contexts" }
|
|
2773
|
+
],
|
|
2774
|
+
addTeamAccessRestrictions: [
|
|
2775
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
2776
|
+
{},
|
|
2777
|
+
{ mapToData: "teams" }
|
|
2778
|
+
],
|
|
2779
|
+
addUserAccessRestrictions: [
|
|
2780
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
2781
|
+
{},
|
|
2782
|
+
{ mapToData: "users" }
|
|
2783
|
+
],
|
|
2784
|
+
cancelPagesDeployment: [
|
|
2785
|
+
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
|
2786
|
+
],
|
|
2787
|
+
checkAutomatedSecurityFixes: [
|
|
2788
|
+
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
2789
|
+
],
|
|
2790
|
+
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
2791
|
+
checkPrivateVulnerabilityReporting: [
|
|
2792
|
+
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
2793
|
+
],
|
|
2794
|
+
checkVulnerabilityAlerts: [
|
|
2795
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
2796
|
+
],
|
|
2797
|
+
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
2798
|
+
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
2799
|
+
compareCommitsWithBasehead: [
|
|
2800
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
2801
|
+
],
|
|
2802
|
+
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
2803
|
+
createCommitComment: [
|
|
2804
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
2805
|
+
],
|
|
2806
|
+
createCommitSignatureProtection: [
|
|
2807
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
2808
|
+
],
|
|
2809
|
+
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
2810
|
+
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
2811
|
+
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
2812
|
+
createDeploymentBranchPolicy: [
|
|
2813
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
2814
|
+
],
|
|
2815
|
+
createDeploymentProtectionRule: [
|
|
2816
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
2817
|
+
],
|
|
2818
|
+
createDeploymentStatus: [
|
|
2819
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
2820
|
+
],
|
|
2821
|
+
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
2822
|
+
createForAuthenticatedUser: ["POST /user/repos"],
|
|
2823
|
+
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
2824
|
+
createInOrg: ["POST /orgs/{org}/repos"],
|
|
2825
|
+
createOrUpdateCustomPropertiesValues: [
|
|
2826
|
+
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
2827
|
+
],
|
|
2828
|
+
createOrUpdateEnvironment: [
|
|
2829
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
2830
|
+
],
|
|
2831
|
+
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
2832
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
2833
|
+
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
|
2834
|
+
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
2835
|
+
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
2836
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
2837
|
+
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
|
2838
|
+
createUsingTemplate: [
|
|
2839
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
2840
|
+
],
|
|
2841
|
+
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
2842
|
+
declineInvitation: [
|
|
2843
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
2844
|
+
{},
|
|
2845
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
2846
|
+
],
|
|
2847
|
+
declineInvitationForAuthenticatedUser: [
|
|
2848
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
2849
|
+
],
|
|
2850
|
+
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
2851
|
+
deleteAccessRestrictions: [
|
|
2852
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
2853
|
+
],
|
|
2854
|
+
deleteAdminBranchProtection: [
|
|
2855
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
2856
|
+
],
|
|
2857
|
+
deleteAnEnvironment: [
|
|
2858
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
2859
|
+
],
|
|
2860
|
+
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
2861
|
+
deleteBranchProtection: [
|
|
2862
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
2863
|
+
],
|
|
2864
|
+
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
2865
|
+
deleteCommitSignatureProtection: [
|
|
2866
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
2867
|
+
],
|
|
2868
|
+
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
2869
|
+
deleteDeployment: [
|
|
2870
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
2871
|
+
],
|
|
2872
|
+
deleteDeploymentBranchPolicy: [
|
|
2873
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
2874
|
+
],
|
|
2875
|
+
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
2876
|
+
deleteInvitation: [
|
|
2877
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
2878
|
+
],
|
|
2879
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
2880
|
+
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
2881
|
+
deletePullRequestReviewProtection: [
|
|
2882
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
2883
|
+
],
|
|
2884
|
+
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
2885
|
+
deleteReleaseAsset: [
|
|
2886
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
2887
|
+
],
|
|
2888
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
2889
|
+
deleteTagProtection: [
|
|
2890
|
+
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
|
2891
|
+
],
|
|
2892
|
+
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
2893
|
+
disableAutomatedSecurityFixes: [
|
|
2894
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
2895
|
+
],
|
|
2896
|
+
disableDeploymentProtectionRule: [
|
|
2897
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
2898
|
+
],
|
|
2899
|
+
disablePrivateVulnerabilityReporting: [
|
|
2900
|
+
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
2901
|
+
],
|
|
2902
|
+
disableVulnerabilityAlerts: [
|
|
2903
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
2904
|
+
],
|
|
2905
|
+
downloadArchive: [
|
|
2906
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
2907
|
+
{},
|
|
2908
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
2909
|
+
],
|
|
2910
|
+
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
2911
|
+
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
2912
|
+
enableAutomatedSecurityFixes: [
|
|
2913
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
2914
|
+
],
|
|
2915
|
+
enablePrivateVulnerabilityReporting: [
|
|
2916
|
+
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
2917
|
+
],
|
|
2918
|
+
enableVulnerabilityAlerts: [
|
|
2919
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
2920
|
+
],
|
|
2921
|
+
generateReleaseNotes: [
|
|
2922
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
2923
|
+
],
|
|
2924
|
+
get: ["GET /repos/{owner}/{repo}"],
|
|
2925
|
+
getAccessRestrictions: [
|
|
2926
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
2927
|
+
],
|
|
2928
|
+
getAdminBranchProtection: [
|
|
2929
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
2930
|
+
],
|
|
2931
|
+
getAllDeploymentProtectionRules: [
|
|
2932
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
2933
|
+
],
|
|
2934
|
+
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
2935
|
+
getAllStatusCheckContexts: [
|
|
2936
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
2937
|
+
],
|
|
2938
|
+
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
2939
|
+
getAppsWithAccessToProtectedBranch: [
|
|
2940
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
2941
|
+
],
|
|
2942
|
+
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
2943
|
+
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
2944
|
+
getBranchProtection: [
|
|
2945
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
2946
|
+
],
|
|
2947
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
2948
|
+
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
2949
|
+
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
2950
|
+
getCollaboratorPermissionLevel: [
|
|
2951
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
2952
|
+
],
|
|
2953
|
+
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
2954
|
+
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
2955
|
+
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
2956
|
+
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
2957
|
+
getCommitSignatureProtection: [
|
|
2958
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
2959
|
+
],
|
|
2960
|
+
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
2961
|
+
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
2962
|
+
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
2963
|
+
getCustomDeploymentProtectionRule: [
|
|
2964
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
2965
|
+
],
|
|
2966
|
+
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
2967
|
+
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
2968
|
+
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
2969
|
+
getDeploymentBranchPolicy: [
|
|
2970
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
2971
|
+
],
|
|
2972
|
+
getDeploymentStatus: [
|
|
2973
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
2974
|
+
],
|
|
2975
|
+
getEnvironment: [
|
|
2976
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
2977
|
+
],
|
|
2978
|
+
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
2979
|
+
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
2980
|
+
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
|
2981
|
+
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
|
2982
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
2983
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
2984
|
+
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
2985
|
+
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
2986
|
+
getPagesDeployment: [
|
|
2987
|
+
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
|
2988
|
+
],
|
|
2989
|
+
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
2990
|
+
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
2991
|
+
getPullRequestReviewProtection: [
|
|
2992
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
2993
|
+
],
|
|
2994
|
+
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
2995
|
+
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
2996
|
+
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
2997
|
+
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
2998
|
+
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
2999
|
+
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
3000
|
+
getRepoRuleSuite: [
|
|
3001
|
+
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
|
3002
|
+
],
|
|
3003
|
+
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
3004
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
3005
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
3006
|
+
getStatusChecksProtection: [
|
|
3007
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
3008
|
+
],
|
|
3009
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
3010
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
3011
|
+
],
|
|
3012
|
+
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
3013
|
+
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
3014
|
+
getUsersWithAccessToProtectedBranch: [
|
|
3015
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
3016
|
+
],
|
|
3017
|
+
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
3018
|
+
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
3019
|
+
getWebhookConfigForRepo: [
|
|
3020
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
3021
|
+
],
|
|
3022
|
+
getWebhookDelivery: [
|
|
3023
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
3024
|
+
],
|
|
3025
|
+
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
|
3026
|
+
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
3027
|
+
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
3028
|
+
listBranchesForHeadCommit: [
|
|
3029
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
3030
|
+
],
|
|
3031
|
+
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
3032
|
+
listCommentsForCommit: [
|
|
3033
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
3034
|
+
],
|
|
3035
|
+
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
3036
|
+
listCommitStatusesForRef: [
|
|
3037
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
3038
|
+
],
|
|
3039
|
+
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
3040
|
+
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
3041
|
+
listCustomDeploymentRuleIntegrations: [
|
|
3042
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
3043
|
+
],
|
|
3044
|
+
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
3045
|
+
listDeploymentBranchPolicies: [
|
|
3046
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
3047
|
+
],
|
|
3048
|
+
listDeploymentStatuses: [
|
|
3049
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
3050
|
+
],
|
|
3051
|
+
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
3052
|
+
listForAuthenticatedUser: ["GET /user/repos"],
|
|
3053
|
+
listForOrg: ["GET /orgs/{org}/repos"],
|
|
3054
|
+
listForUser: ["GET /users/{username}/repos"],
|
|
3055
|
+
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
|
3056
|
+
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
|
3057
|
+
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
|
3058
|
+
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
3059
|
+
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
3060
|
+
listPublic: ["GET /repositories"],
|
|
3061
|
+
listPullRequestsAssociatedWithCommit: [
|
|
3062
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
3063
|
+
],
|
|
3064
|
+
listReleaseAssets: [
|
|
3065
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
3066
|
+
],
|
|
3067
|
+
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
3068
|
+
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
|
3069
|
+
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
3070
|
+
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
3071
|
+
listWebhookDeliveries: [
|
|
3072
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
3073
|
+
],
|
|
3074
|
+
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
3075
|
+
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
3076
|
+
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
3077
|
+
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
3078
|
+
redeliverWebhookDelivery: [
|
|
3079
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
3080
|
+
],
|
|
3081
|
+
removeAppAccessRestrictions: [
|
|
3082
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
3083
|
+
{},
|
|
3084
|
+
{ mapToData: "apps" }
|
|
3085
|
+
],
|
|
3086
|
+
removeCollaborator: [
|
|
3087
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
3088
|
+
],
|
|
3089
|
+
removeStatusCheckContexts: [
|
|
3090
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
3091
|
+
{},
|
|
3092
|
+
{ mapToData: "contexts" }
|
|
3093
|
+
],
|
|
3094
|
+
removeStatusCheckProtection: [
|
|
3095
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
3096
|
+
],
|
|
3097
|
+
removeTeamAccessRestrictions: [
|
|
3098
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
3099
|
+
{},
|
|
3100
|
+
{ mapToData: "teams" }
|
|
3101
|
+
],
|
|
3102
|
+
removeUserAccessRestrictions: [
|
|
3103
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
3104
|
+
{},
|
|
3105
|
+
{ mapToData: "users" }
|
|
3106
|
+
],
|
|
3107
|
+
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
3108
|
+
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
3109
|
+
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
3110
|
+
setAdminBranchProtection: [
|
|
3111
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
3112
|
+
],
|
|
3113
|
+
setAppAccessRestrictions: [
|
|
3114
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
3115
|
+
{},
|
|
3116
|
+
{ mapToData: "apps" }
|
|
3117
|
+
],
|
|
3118
|
+
setStatusCheckContexts: [
|
|
3119
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
3120
|
+
{},
|
|
3121
|
+
{ mapToData: "contexts" }
|
|
3122
|
+
],
|
|
3123
|
+
setTeamAccessRestrictions: [
|
|
3124
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
3125
|
+
{},
|
|
3126
|
+
{ mapToData: "teams" }
|
|
3127
|
+
],
|
|
3128
|
+
setUserAccessRestrictions: [
|
|
3129
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
3130
|
+
{},
|
|
3131
|
+
{ mapToData: "users" }
|
|
3132
|
+
],
|
|
3133
|
+
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
3134
|
+
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
3135
|
+
update: ["PATCH /repos/{owner}/{repo}"],
|
|
3136
|
+
updateBranchProtection: [
|
|
3137
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
3138
|
+
],
|
|
3139
|
+
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
3140
|
+
updateDeploymentBranchPolicy: [
|
|
3141
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
3142
|
+
],
|
|
3143
|
+
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
3144
|
+
updateInvitation: [
|
|
3145
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
3146
|
+
],
|
|
3147
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
3148
|
+
updatePullRequestReviewProtection: [
|
|
3149
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
3150
|
+
],
|
|
3151
|
+
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
3152
|
+
updateReleaseAsset: [
|
|
3153
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
3154
|
+
],
|
|
3155
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
3156
|
+
updateStatusCheckPotection: [
|
|
3157
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
3158
|
+
{},
|
|
3159
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
3160
|
+
],
|
|
3161
|
+
updateStatusCheckProtection: [
|
|
3162
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
3163
|
+
],
|
|
3164
|
+
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
3165
|
+
updateWebhookConfigForRepo: [
|
|
3166
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
3167
|
+
],
|
|
3168
|
+
uploadReleaseAsset: [
|
|
3169
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
3170
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
3171
|
+
]
|
|
3172
|
+
},
|
|
3173
|
+
search: {
|
|
3174
|
+
code: ["GET /search/code"],
|
|
3175
|
+
commits: ["GET /search/commits"],
|
|
3176
|
+
issuesAndPullRequests: ["GET /search/issues"],
|
|
3177
|
+
labels: ["GET /search/labels"],
|
|
3178
|
+
repos: ["GET /search/repositories"],
|
|
3179
|
+
topics: ["GET /search/topics"],
|
|
3180
|
+
users: ["GET /search/users"]
|
|
3181
|
+
},
|
|
3182
|
+
secretScanning: {
|
|
3183
|
+
getAlert: [
|
|
3184
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
3185
|
+
],
|
|
3186
|
+
listAlertsForEnterprise: [
|
|
3187
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
3188
|
+
],
|
|
3189
|
+
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
3190
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
3191
|
+
listLocationsForAlert: [
|
|
3192
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
3193
|
+
],
|
|
3194
|
+
updateAlert: [
|
|
3195
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
3196
|
+
]
|
|
3197
|
+
},
|
|
3198
|
+
securityAdvisories: {
|
|
3199
|
+
createFork: [
|
|
3200
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
3201
|
+
],
|
|
3202
|
+
createPrivateVulnerabilityReport: [
|
|
3203
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
3204
|
+
],
|
|
3205
|
+
createRepositoryAdvisory: [
|
|
3206
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
3207
|
+
],
|
|
3208
|
+
createRepositoryAdvisoryCveRequest: [
|
|
3209
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
3210
|
+
],
|
|
3211
|
+
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
|
3212
|
+
getRepositoryAdvisory: [
|
|
3213
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
3214
|
+
],
|
|
3215
|
+
listGlobalAdvisories: ["GET /advisories"],
|
|
3216
|
+
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
|
3217
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
3218
|
+
updateRepositoryAdvisory: [
|
|
3219
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
3220
|
+
]
|
|
3221
|
+
},
|
|
3222
|
+
teams: {
|
|
3223
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
3224
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
3225
|
+
],
|
|
3226
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
3227
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
3228
|
+
],
|
|
3229
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
3230
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
3231
|
+
],
|
|
3232
|
+
checkPermissionsForProjectInOrg: [
|
|
3233
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
3234
|
+
],
|
|
3235
|
+
checkPermissionsForRepoInOrg: [
|
|
3236
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
3237
|
+
],
|
|
3238
|
+
create: ["POST /orgs/{org}/teams"],
|
|
3239
|
+
createDiscussionCommentInOrg: [
|
|
3240
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
3241
|
+
],
|
|
3242
|
+
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
3243
|
+
deleteDiscussionCommentInOrg: [
|
|
3244
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
3245
|
+
],
|
|
3246
|
+
deleteDiscussionInOrg: [
|
|
3247
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
3248
|
+
],
|
|
3249
|
+
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
3250
|
+
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
3251
|
+
getDiscussionCommentInOrg: [
|
|
3252
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
3253
|
+
],
|
|
3254
|
+
getDiscussionInOrg: [
|
|
3255
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
3256
|
+
],
|
|
3257
|
+
getMembershipForUserInOrg: [
|
|
3258
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
3259
|
+
],
|
|
3260
|
+
list: ["GET /orgs/{org}/teams"],
|
|
3261
|
+
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
3262
|
+
listDiscussionCommentsInOrg: [
|
|
3263
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
3264
|
+
],
|
|
3265
|
+
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
3266
|
+
listForAuthenticatedUser: ["GET /user/teams"],
|
|
3267
|
+
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
3268
|
+
listPendingInvitationsInOrg: [
|
|
3269
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
3270
|
+
],
|
|
3271
|
+
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
3272
|
+
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
3273
|
+
removeMembershipForUserInOrg: [
|
|
3274
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
3275
|
+
],
|
|
3276
|
+
removeProjectInOrg: [
|
|
3277
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
3278
|
+
],
|
|
3279
|
+
removeRepoInOrg: [
|
|
3280
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
3281
|
+
],
|
|
3282
|
+
updateDiscussionCommentInOrg: [
|
|
3283
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
3284
|
+
],
|
|
3285
|
+
updateDiscussionInOrg: [
|
|
3286
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
3287
|
+
],
|
|
3288
|
+
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
3289
|
+
},
|
|
3290
|
+
users: {
|
|
3291
|
+
addEmailForAuthenticated: [
|
|
3292
|
+
"POST /user/emails",
|
|
3293
|
+
{},
|
|
3294
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
3295
|
+
],
|
|
3296
|
+
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
3297
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
3298
|
+
block: ["PUT /user/blocks/{username}"],
|
|
3299
|
+
checkBlocked: ["GET /user/blocks/{username}"],
|
|
3300
|
+
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
3301
|
+
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
3302
|
+
createGpgKeyForAuthenticated: [
|
|
3303
|
+
"POST /user/gpg_keys",
|
|
3304
|
+
{},
|
|
3305
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
3306
|
+
],
|
|
3307
|
+
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
3308
|
+
createPublicSshKeyForAuthenticated: [
|
|
3309
|
+
"POST /user/keys",
|
|
3310
|
+
{},
|
|
3311
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
3312
|
+
],
|
|
3313
|
+
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
3314
|
+
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
3315
|
+
deleteEmailForAuthenticated: [
|
|
3316
|
+
"DELETE /user/emails",
|
|
3317
|
+
{},
|
|
3318
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
3319
|
+
],
|
|
3320
|
+
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
3321
|
+
deleteGpgKeyForAuthenticated: [
|
|
3322
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
3323
|
+
{},
|
|
3324
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
3325
|
+
],
|
|
3326
|
+
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
3327
|
+
deletePublicSshKeyForAuthenticated: [
|
|
3328
|
+
"DELETE /user/keys/{key_id}",
|
|
3329
|
+
{},
|
|
3330
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
3331
|
+
],
|
|
3332
|
+
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
3333
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
3334
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
3335
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
3336
|
+
],
|
|
3337
|
+
follow: ["PUT /user/following/{username}"],
|
|
3338
|
+
getAuthenticated: ["GET /user"],
|
|
3339
|
+
getByUsername: ["GET /users/{username}"],
|
|
3340
|
+
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
3341
|
+
getGpgKeyForAuthenticated: [
|
|
3342
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
3343
|
+
{},
|
|
3344
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
3345
|
+
],
|
|
3346
|
+
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
3347
|
+
getPublicSshKeyForAuthenticated: [
|
|
3348
|
+
"GET /user/keys/{key_id}",
|
|
3349
|
+
{},
|
|
3350
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
3351
|
+
],
|
|
3352
|
+
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
3353
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
3354
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
3355
|
+
],
|
|
3356
|
+
list: ["GET /users"],
|
|
3357
|
+
listBlockedByAuthenticated: [
|
|
3358
|
+
"GET /user/blocks",
|
|
3359
|
+
{},
|
|
3360
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
3361
|
+
],
|
|
3362
|
+
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
3363
|
+
listEmailsForAuthenticated: [
|
|
3364
|
+
"GET /user/emails",
|
|
3365
|
+
{},
|
|
3366
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
3367
|
+
],
|
|
3368
|
+
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
3369
|
+
listFollowedByAuthenticated: [
|
|
3370
|
+
"GET /user/following",
|
|
3371
|
+
{},
|
|
3372
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
3373
|
+
],
|
|
3374
|
+
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
3375
|
+
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
3376
|
+
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
3377
|
+
listFollowingForUser: ["GET /users/{username}/following"],
|
|
3378
|
+
listGpgKeysForAuthenticated: [
|
|
3379
|
+
"GET /user/gpg_keys",
|
|
3380
|
+
{},
|
|
3381
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
3382
|
+
],
|
|
3383
|
+
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
3384
|
+
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
3385
|
+
listPublicEmailsForAuthenticated: [
|
|
3386
|
+
"GET /user/public_emails",
|
|
3387
|
+
{},
|
|
3388
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
3389
|
+
],
|
|
3390
|
+
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
3391
|
+
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
3392
|
+
listPublicSshKeysForAuthenticated: [
|
|
3393
|
+
"GET /user/keys",
|
|
3394
|
+
{},
|
|
3395
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
3396
|
+
],
|
|
3397
|
+
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
3398
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
3399
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
3400
|
+
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
3401
|
+
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
3402
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
3403
|
+
"PATCH /user/email/visibility",
|
|
3404
|
+
{},
|
|
3405
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
3406
|
+
],
|
|
3407
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
3408
|
+
"PATCH /user/email/visibility"
|
|
3409
|
+
],
|
|
3410
|
+
unblock: ["DELETE /user/blocks/{username}"],
|
|
3411
|
+
unfollow: ["DELETE /user/following/{username}"],
|
|
3412
|
+
updateAuthenticated: ["PATCH /user"]
|
|
3413
|
+
}
|
|
3414
|
+
};
|
|
3415
|
+
var endpoints_default = Endpoints;
|
|
3416
|
+
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
3417
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
3418
|
+
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
3419
|
+
const [route, defaults, decorations] = endpoint2;
|
|
3420
|
+
const [method, url] = route.split(/ /);
|
|
3421
|
+
const endpointDefaults = Object.assign(
|
|
3422
|
+
{
|
|
3423
|
+
method,
|
|
3424
|
+
url
|
|
3425
|
+
},
|
|
3426
|
+
defaults
|
|
3427
|
+
);
|
|
3428
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
3429
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
3430
|
+
}
|
|
3431
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
3432
|
+
scope,
|
|
3433
|
+
methodName,
|
|
3434
|
+
endpointDefaults,
|
|
3435
|
+
decorations
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
var handler = {
|
|
3440
|
+
has({ scope }, methodName) {
|
|
3441
|
+
return endpointMethodsMap.get(scope).has(methodName);
|
|
3442
|
+
},
|
|
3443
|
+
getOwnPropertyDescriptor(target, methodName) {
|
|
3444
|
+
return {
|
|
3445
|
+
value: this.get(target, methodName),
|
|
3446
|
+
// ensures method is in the cache
|
|
3447
|
+
configurable: true,
|
|
3448
|
+
writable: true,
|
|
3449
|
+
enumerable: true
|
|
3450
|
+
};
|
|
3451
|
+
},
|
|
3452
|
+
defineProperty(target, methodName, descriptor) {
|
|
3453
|
+
Object.defineProperty(target.cache, methodName, descriptor);
|
|
3454
|
+
return true;
|
|
3455
|
+
},
|
|
3456
|
+
deleteProperty(target, methodName) {
|
|
3457
|
+
delete target.cache[methodName];
|
|
3458
|
+
return true;
|
|
3459
|
+
},
|
|
3460
|
+
ownKeys({ scope }) {
|
|
3461
|
+
return [...endpointMethodsMap.get(scope).keys()];
|
|
3462
|
+
},
|
|
3463
|
+
set(target, methodName, value) {
|
|
3464
|
+
return target.cache[methodName] = value;
|
|
3465
|
+
},
|
|
3466
|
+
get({ octokit: octokit2, scope, cache }, methodName) {
|
|
3467
|
+
if (cache[methodName]) {
|
|
3468
|
+
return cache[methodName];
|
|
3469
|
+
}
|
|
3470
|
+
const method = endpointMethodsMap.get(scope).get(methodName);
|
|
3471
|
+
if (!method) {
|
|
3472
|
+
return void 0;
|
|
3473
|
+
}
|
|
3474
|
+
const { endpointDefaults, decorations } = method;
|
|
3475
|
+
if (decorations) {
|
|
3476
|
+
cache[methodName] = decorate(
|
|
3477
|
+
octokit2,
|
|
3478
|
+
scope,
|
|
3479
|
+
methodName,
|
|
3480
|
+
endpointDefaults,
|
|
3481
|
+
decorations
|
|
3482
|
+
);
|
|
3483
|
+
} else {
|
|
3484
|
+
cache[methodName] = octokit2.request.defaults(endpointDefaults);
|
|
3485
|
+
}
|
|
3486
|
+
return cache[methodName];
|
|
3487
|
+
}
|
|
3488
|
+
};
|
|
3489
|
+
function endpointsToMethods(octokit2) {
|
|
3490
|
+
const newMethods = {};
|
|
3491
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
3492
|
+
newMethods[scope] = new Proxy({ octokit: octokit2, scope, cache: {} }, handler);
|
|
3493
|
+
}
|
|
3494
|
+
return newMethods;
|
|
3495
|
+
}
|
|
3496
|
+
function decorate(octokit2, scope, methodName, defaults, decorations) {
|
|
3497
|
+
const requestWithDefaults = octokit2.request.defaults(defaults);
|
|
3498
|
+
function withDecorations(...args) {
|
|
3499
|
+
let options = requestWithDefaults.endpoint.merge(...args);
|
|
3500
|
+
if (decorations.mapToData) {
|
|
3501
|
+
options = Object.assign({}, options, {
|
|
3502
|
+
data: options[decorations.mapToData],
|
|
3503
|
+
[decorations.mapToData]: void 0
|
|
3504
|
+
});
|
|
3505
|
+
return requestWithDefaults(options);
|
|
3506
|
+
}
|
|
3507
|
+
if (decorations.renamed) {
|
|
3508
|
+
const [newScope, newMethodName] = decorations.renamed;
|
|
3509
|
+
octokit2.log.warn(
|
|
3510
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
3511
|
+
);
|
|
3512
|
+
}
|
|
3513
|
+
if (decorations.deprecated) {
|
|
3514
|
+
octokit2.log.warn(decorations.deprecated);
|
|
3515
|
+
}
|
|
3516
|
+
if (decorations.renamedParameters) {
|
|
3517
|
+
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
3518
|
+
for (const [name, alias] of Object.entries(
|
|
3519
|
+
decorations.renamedParameters
|
|
3520
|
+
)) {
|
|
3521
|
+
if (name in options2) {
|
|
3522
|
+
octokit2.log.warn(
|
|
3523
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
3524
|
+
);
|
|
3525
|
+
if (!(alias in options2)) {
|
|
3526
|
+
options2[alias] = options2[name];
|
|
3527
|
+
}
|
|
3528
|
+
delete options2[name];
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
return requestWithDefaults(options2);
|
|
3532
|
+
}
|
|
3533
|
+
return requestWithDefaults(...args);
|
|
3534
|
+
}
|
|
3535
|
+
return Object.assign(withDecorations, requestWithDefaults);
|
|
3536
|
+
}
|
|
3537
|
+
function restEndpointMethods(octokit2) {
|
|
3538
|
+
const api = endpointsToMethods(octokit2);
|
|
3539
|
+
return {
|
|
3540
|
+
rest: api
|
|
3541
|
+
};
|
|
3542
|
+
}
|
|
3543
|
+
restEndpointMethods.VERSION = VERSION7;
|
|
3544
|
+
function legacyRestEndpointMethods(octokit2) {
|
|
3545
|
+
const api = endpointsToMethods(octokit2);
|
|
3546
|
+
return {
|
|
3547
|
+
...api,
|
|
3548
|
+
rest: api
|
|
3549
|
+
};
|
|
3550
|
+
}
|
|
3551
|
+
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
3552
|
+
|
|
3553
|
+
// node_modules/@octokit/rest/dist-src/version.js
|
|
3554
|
+
var VERSION8 = "21.0.1";
|
|
3555
|
+
|
|
3556
|
+
// node_modules/@octokit/rest/dist-src/index.js
|
|
3557
|
+
var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
|
|
3558
|
+
{
|
|
3559
|
+
userAgent: `octokit-rest.js/${VERSION8}`
|
|
3560
|
+
}
|
|
3561
|
+
);
|
|
3562
|
+
|
|
3563
|
+
// root.ts
|
|
3564
|
+
var root_default = process.cwd();
|
|
3565
|
+
|
|
3566
|
+
// bin/branches.ts
|
|
3567
|
+
process.on("unhandledRejection", (up) => {
|
|
3568
|
+
throw up;
|
|
3569
|
+
});
|
|
3570
|
+
var octokit = new Octokit2({ auth: `token ${process.env.GITHUB_TOKEN}` });
|
|
3571
|
+
var pkg = __require(path.join(root_default, "package.json"));
|
|
3572
|
+
var [, owner, repo] = pkg.repository.url.match(/:\/\/github.com\/([^/]+)\/([^.]+)\.git$/);
|
|
3573
|
+
async function main() {
|
|
3574
|
+
const branches = await octokit.repos.listBranches({ owner, repo });
|
|
3575
|
+
for (const branch of branches.data) {
|
|
3576
|
+
if (/^[0-9]+$/.exec(branch.name)) {
|
|
3577
|
+
const issue = await octokit.issues.get({ owner, repo, issue_number: parseInt(branch.name) });
|
|
3578
|
+
if (issue.data.state !== "open") console.log(branch.name, issue.data.state);
|
|
3579
|
+
} else if (!["master", "main", "gh-pages"].includes(branch.name)) {
|
|
3580
|
+
console.log(branch.name);
|
|
3581
|
+
}
|
|
25
3582
|
}
|
|
26
|
-
}
|
|
27
|
-
main().catch(err => console.log(err));
|
|
3583
|
+
}
|
|
3584
|
+
main().catch((err) => console.log(err));
|
|
3585
|
+
})();
|