Use version information to construct payload
This commit is contained in:
parent
81a21bfa1e
commit
dff118f7ad
49 changed files with 917 additions and 226 deletions
2
lib/api-client.js
generated
2
lib/api-client.js
generated
|
|
@ -32,7 +32,7 @@ exports.getApiClient = function (apiDetails, allowLocalRun = false) {
|
|||
};
|
||||
function getApiUrl(githubUrl) {
|
||||
const url = new URL(githubUrl);
|
||||
// If we detect this is trying to be to github.com
|
||||
// If we detect this is trying to connect to github.com
|
||||
// then return with a fixed canonical URL.
|
||||
if (url.hostname === "github.com" || url.hostname === "api.github.com") {
|
||||
return "https://api.github.com";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue