From 9d3a781ec3fe05f9c7e5b9f03d14719d461f3fda Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Wed, 3 Feb 2016 12:47:46 -0500 Subject: [PATCH] fix changelog links for new 0.12 and 0.10 releases Fixes: https://github.com/nodejs/nodejs.org/issues/504 PR-URL: https://github.com/nodejs/nodejs.org/pull/505 --- scripts/helpers/changeloglink.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/helpers/changeloglink.js b/scripts/helpers/changeloglink.js index d045fb272452c..3b1c5d2ff1d69 100644 --- a/scripts/helpers/changeloglink.js +++ b/scripts/helpers/changeloglink.js @@ -9,5 +9,10 @@ module.exports = function (version) { return `https://github.com/nodejs/node/blob/${version}/CHANGELOG.md` } + // 0.12.8+ and 0.10.41+ releases come from the new repo + if (semver.satisfies(version, '~0.12.8 || ~0.10.41')) { + return `https://github.com/nodejs/node/blob/${version}/ChangeLog` + } + return `https://github.com/nodejs/node-v0.x-archive/blob/${version}/ChangeLog` }