From 541e6f8d6397e2363b9cb856cd19616ff02acdad 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/503 --- 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` }