Skip to content

Commit 8fed29e

Browse files
committed
Rename apiURL to instanceURL
1 parent a1794a0 commit 8fed29e

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/setup/repository.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ export async function getCodeQLAssetDownloadURL(
118118
},
119119
);
120120

121-
for (const [apiURL, repository] of uniqueDownloadSources) {
121+
for (const [instanceURL, repository] of uniqueDownloadSources) {
122122
// If we've reached the final case, short-circuit the API check since we know the asset exists and is public.
123-
if (isSameDownloadSource(DEFAULT_DOWNLOAD_SOURCE, [apiURL, repository])) {
123+
if (
124+
isSameDownloadSource(DEFAULT_DOWNLOAD_SOURCE, [instanceURL, repository])
125+
) {
124126
break;
125127
}
126128

@@ -135,14 +137,14 @@ export async function getCodeQLAssetDownloadURL(
135137
for (const asset of release.data.assets) {
136138
if (asset.name === assetName) {
137139
action.logger.info(
138-
`Found ${assetKind} ${assetName} in ${repository} on ${apiURL} with URL ${asset.url}.`,
140+
`Found ${assetKind} ${assetName} in ${repository} on ${instanceURL} with URL ${asset.url}.`,
139141
);
140142
return asset.url;
141143
}
142144
}
143145
} catch (e) {
144146
action.logger.info(
145-
`Looked for ${assetKind} ${assetName} in ${repository} on ${apiURL} but got error ${e}.`,
147+
`Looked for ${assetKind} ${assetName} in ${repository} on ${instanceURL} but got error ${e}.`,
146148
);
147149
}
148150
}

0 commit comments

Comments
 (0)