From 3e4a9a671bb59e09e39660b08aee482e100c5a50 Mon Sep 17 00:00:00 2001 From: Maggie Neterval Date: Mon, 15 Jun 2020 15:26:48 -0400 Subject: [PATCH] feat(core): link to specific version changelog Since [this change](https://github.com/spinnaker/buildtool/pull/48) to spinnaker/buildtool, the OSS release changelog gists have been published with one top-level gist per minor release and individual files for each patch release. Since we can now stably link to each patch release changelog on spinnaker.io, let's point the Help --> Version link there rather than the general Releases page, which just links out ot each individual changelog anyway. --- .../modules/core/src/help/HelpMenu.tsx | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/app/scripts/modules/core/src/help/HelpMenu.tsx b/app/scripts/modules/core/src/help/HelpMenu.tsx index 94dbc4ecff6..a4176d81244 100644 --- a/app/scripts/modules/core/src/help/HelpMenu.tsx +++ b/app/scripts/modules/core/src/help/HelpMenu.tsx @@ -34,6 +34,21 @@ const AdditionalHelpLinks = () => ) : null; +const Version = () => { + if (!SETTINGS.version) { + return null; + } + + const CHANGELOG_PATH = `${SETTINGS.version.replace(/\./g, '-')}-changelog`; + const CHANGELOG_URL = `${VERSIONS_URL}${CHANGELOG_PATH}`; + + return ( + + Spinnaker {SETTINGS.version} + + ); +}; + export const HelpMenu = () => { return (
  • @@ -51,11 +66,7 @@ export const HelpMenu = () => { Community Resources - {SETTINGS.version && ( - - Spinnaker {SETTINGS.version} - - )} + {SETTINGS.feature.pagerDuty && (
  • @@ -81,11 +92,7 @@ export const HelpMenu = () => { Community Resources - {SETTINGS.version && ( - - Spinnaker {SETTINGS.version} - - )} + {SETTINGS.feature.pagerDuty && (