Skip to content

Commit e2636d2

Browse files
committed
Change "current release" to "linked release"
1 parent 9df2342 commit e2636d2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/start-proxy-action.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/start-proxy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function mockGetReleaseByTag(assets?: Array<{ name: string; url?: string }>) {
224224
return mockClient;
225225
}
226226

227-
test("getDownloadUrl returns fallback when `getCurrentRelease` rejects", async (t) => {
227+
test("getDownloadUrl returns fallback when `getLinkedRelease` rejects", async (t) => {
228228
mockGetReleaseByTag();
229229

230230
const info = await startProxyExports.getDownloadUrl(getRunnerLogger(true));

src/start-proxy.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function getFallbackUrl(proxyPackage: string): string {
203203
*
204204
* @returns The response from the GitHub API.
205205
*/
206-
export async function getCurrentRelease() {
206+
export async function getLinkedRelease() {
207207
return getApiClient().rest.repos.getReleaseByTag({
208208
owner: "github",
209209
repo: "codeql-action",
@@ -225,7 +225,7 @@ export async function getDownloadUrl(
225225

226226
try {
227227
// Try to retrieve information about the CLI bundle release pointed at by `defaults.json`.
228-
const cliRelease = await getCurrentRelease();
228+
const cliRelease = await getLinkedRelease();
229229

230230
// Search the release's assets to find the one we are looking for.
231231
for (const asset of cliRelease.data.assets) {
@@ -244,13 +244,13 @@ export async function getDownloadUrl(
244244
}
245245
} catch (ex) {
246246
logger.warning(
247-
`Failed to retrieve information about the current release: ${getErrorMessage(ex)}`,
247+
`Failed to retrieve information about the linked release: ${getErrorMessage(ex)}`,
248248
);
249249
}
250250

251251
// Fallback to the hard-coded URL.
252252
logger.info(
253-
`Did not find '${proxyPackage}' in current release, falling back to hard-coded version.`,
253+
`Did not find '${proxyPackage}' in the linked release, falling back to hard-coded version.`,
254254
);
255255
return {
256256
url: getFallbackUrl(proxyPackage),

0 commit comments

Comments
 (0)