TypeScript
fix(desktop): nightly update notes no longer list the Full Changelog link as a change (#24358)
Craig Davison06b62fb2405a
diff --git a/apps/desktop/src/updates/releaseNotes.test.ts b/apps/desktop/src/updates/releaseNotes.test.tsindex d88838439db..30db8274c20 100644--- a/apps/desktop/src/updates/releaseNotes.test.ts+++ b/apps/desktop/src/updates/releaseNotes.test.ts@@ -232,4 +232,45 @@ describe("normalizeDesktopUpdateReleaseNotes", () => {omittedReleaseCount: 0,});});++ it("ignores the Full Changelog paragraph that ends GitHub's generated notes", () => {+ const fullChangelog = (from: string, to: string) =>+ `<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/pingdotgg/t3code/compare/v${from}...v${to}"><tt>v${from}...v${to}</tt></a></p>`;+ const result = normalizeDesktopUpdateReleaseNotes(+ [+ {+ version: "0.1.3-nightly.20261024.3604",+ note: fullChangelog("0.1.3-nightly.20261023.3592", "0.1.3-nightly.20261024.3604"),+ },+ {+ version: "0.1.3-nightly.20261023.3592",+ note:+ "<h2>What's Changed</h2>\n<ul>\n" ++ '<li>fix(web): A by <a href="https://github.com/a">@a</a> in <a href="https://github.com/pingdotgg/t3code/pull/1">#1</a></li>\n' ++ '<li>fix(web): B by <a href="https://github.com/b">@b</a> in <a href="https://github.com/pingdotgg/t3code/pull/2">#2</a></li>\n' ++ "<li>Full Changelog: links open in the browser in #3</li>\n" ++ "</ul>\n" ++ fullChangelog("0.1.3-nightly.20261023.3579", "0.1.3-nightly.20261023.3592"),+ },+ ],+ "0.1.3-nightly.20261024.3604",+ "nightly",+ );++ expect(result).toEqual({+ releaseNotes: [+ {+ version: "0.1.3-nightly.20261023.3592",+ items: [+ "Full Changelog: links open in the browser in #3",+ "fix(web): B by @b in #2",+ "fix(web): A by @a in #1",+ ],+ releasedAt: "2026-10-23",+ totalItems: 3,+ },+ ],+ omittedReleaseCount: 0,+ });+ });});diff --git a/apps/desktop/src/updates/releaseNotes.ts b/apps/desktop/src/updates/releaseNotes.tsindex 2704563cfc0..1fb81088175 100644--- a/apps/desktop/src/updates/releaseNotes.ts+++ b/apps/desktop/src/updates/releaseNotes.ts@@ -86,7 +86,9 @@ function isIgnoredReleaseNoteLine(line: string): boolean {normalized === "what's changed" ||normalized === "whats changed" ||normalized.startsWith("compare: ") ||- normalized.includes("/compare/")+ normalized.includes("/compare/") ||+ // The feed's HTML footer loses its compare URL to stripMarkup, leaving only the range.+ /^full changelog: \S+\.\.\.\S+$/.test(normalized));}