feat: support tokens scoped to multiple repositories within organization (#46)

Co-authored-by: Gregor Martynus <[email protected]>
Co-authored-by: Parker Brown <[email protected]>
This commit is contained in:
Tim Reimherr
2023-10-03 22:28:48 -07:00
committed by GitHub
co-authored by Gregor Martynus Parker Brown
parent 5804f049e1
commit 20fd86373f
7 changed files with 949 additions and 5751 deletions
+639 -5632
View File
File diff suppressed because it is too large Load Diff
+20 -2
View File
@@ -569,7 +569,12 @@ var require_proxy = __commonJS({
}
})();
if (proxyVar) {
return new URL(proxyVar);
try {
return new URL(proxyVar);
} catch (_a) {
if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://"))
return new URL(`http://${proxyVar}`);
}
} else {
return void 0;
}
@@ -1001,6 +1006,19 @@ var require_lib = __commonJS({
}));
});
}
readBodyBuffer() {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
const chunks = [];
this.message.on("data", (chunk) => {
chunks.push(chunk);
});
this.message.on("end", () => {
resolve(Buffer.concat(chunks));
});
}));
});
}
};
exports.HttpClientResponse = HttpClientResponse;
function isHttps(requestUrl) {
@@ -2278,7 +2296,7 @@ var require_dist_node2 = __commonJS({
});
module2.exports = __toCommonJS2(dist_src_exports);
var import_universal_user_agent = require_dist_node();
var VERSION = "9.0.0";
var VERSION = "9.0.1";
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
var DEFAULTS = {
method: "GET",