From e3e037a2c2bdbf488329645f5394f93a0d060597 Mon Sep 17 00:00:00 2001 From: Carlos Precioso Date: Mon, 21 Nov 2022 13:30:33 +0100 Subject: [PATCH 1/3] point the update notice to the changelog in the desired version --- code/lib/core-server/src/utils/update-check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/utils/update-check.ts b/code/lib/core-server/src/utils/update-check.ts index f4c463d2e344..cd6afcc8de45 100644 --- a/code/lib/core-server/src/utils/update-check.ts +++ b/code/lib/core-server/src/utils/update-check.ts @@ -49,7 +49,7 @@ export function createUpdateMessage(updateInfo: VersionCheck, version: string): ${chalk.gray('Upgrade now:')} ${colors.green(upgradeCommand)} ${chalk.gray('Read full changelog:')} ${chalk.gray.underline( - 'https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md' + `https://github.com/storybookjs/storybook/blob/v${updateInfo.data.latest.version}/CHANGELOG.md` )} ` : ''; From be3b4a3c5fab08746ea7e10df0d4b64a6dfde821 Mon Sep 17 00:00:00 2001 From: Carlos Precioso Date: Thu, 20 Apr 2023 12:54:02 +0200 Subject: [PATCH 2/3] always use `main` branch Co-authored-by: Kyle Gach --- code/lib/core-server/src/utils/update-check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/utils/update-check.ts b/code/lib/core-server/src/utils/update-check.ts index cd6afcc8de45..8af20b09b532 100644 --- a/code/lib/core-server/src/utils/update-check.ts +++ b/code/lib/core-server/src/utils/update-check.ts @@ -49,7 +49,7 @@ export function createUpdateMessage(updateInfo: VersionCheck, version: string): ${chalk.gray('Upgrade now:')} ${colors.green(upgradeCommand)} ${chalk.gray('Read full changelog:')} ${chalk.gray.underline( - `https://github.com/storybookjs/storybook/blob/v${updateInfo.data.latest.version}/CHANGELOG.md` + `https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md` )} ` : ''; From a6bfa76c9f032a1879533a6ed695da1bc56ecaee Mon Sep 17 00:00:00 2001 From: Carlos Precioso Date: Thu, 20 Apr 2023 12:54:55 +0200 Subject: [PATCH 3/3] use single quotes --- code/lib/core-server/src/utils/update-check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/utils/update-check.ts b/code/lib/core-server/src/utils/update-check.ts index 8af20b09b532..c41550ca50d3 100644 --- a/code/lib/core-server/src/utils/update-check.ts +++ b/code/lib/core-server/src/utils/update-check.ts @@ -49,7 +49,7 @@ export function createUpdateMessage(updateInfo: VersionCheck, version: string): ${chalk.gray('Upgrade now:')} ${colors.green(upgradeCommand)} ${chalk.gray('Read full changelog:')} ${chalk.gray.underline( - `https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md` + 'https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md' )} ` : '';