Use the API URL from the environment if it is present.

This commit is contained in:
Chris Gavin
2022-08-10 21:11:50 +01:00
parent a6d09016e7
commit bbdc9efa94
42 changed files with 122 additions and 22 deletions

View File

@@ -202,6 +202,7 @@ program
auth,
externalRepoAuth: auth,
url: parseGitHubUrl(cmd.githubUrl),
apiURL: undefined,
};
const gitHubVersion = await getGitHubVersion(apiDetails);
@@ -475,6 +476,7 @@ program
const apiDetails = {
auth,
url: parseGitHubUrl(cmd.githubUrl),
apiURL: undefined,
};
const outputDir =
@@ -587,6 +589,7 @@ program
const apiDetails = {
auth,
url: parseGitHubUrl(cmd.githubUrl),
apiURL: undefined,
};
try {
const gitHubVersion = await getGitHubVersion(apiDetails);