fix: use correct v-prefixed tag format for nightly release notes URL
Nightly releases are published with tags like v1.1.0-nightly.20260501.17,
not nightly-v1.1.0-nightly.20260501.17. Since latestVersion already carries
the full semver for both channels, the tag is always v${latestVersion}.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -324,7 +324,7 @@ describe("desktop update release notes helpers", () => {
|
||||
channel: "nightly",
|
||||
availableVersion: "1.1.0-nightly.20260501.17",
|
||||
}),
|
||||
).toBe("https://github.com/pingdotgg/t3code/releases/tag/nightly-v1.1.0-nightly.20260501.17");
|
||||
).toBe("https://github.com/pingdotgg/t3code/releases/tag/v1.1.0-nightly.20260501.17");
|
||||
});
|
||||
|
||||
it("falls back to the releases page when no latest version is known", () => {
|
||||
|
||||
@@ -88,7 +88,7 @@ export function getDesktopUpdateReleaseNotesUrl(state: DesktopUpdateState | null
|
||||
return DESKTOP_UPDATE_RELEASES_URL;
|
||||
}
|
||||
|
||||
const tag = state.channel === "nightly" ? `nightly-v${latestVersion}` : `v${latestVersion}`;
|
||||
const tag = `v${latestVersion}`;
|
||||
return `${DESKTOP_UPDATE_RELEASES_URL}/tag/${encodeURIComponent(tag)}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user