Skip to content

Commit

Permalink
fix changelog links for new 0.12 and 0.10 releases
Browse files Browse the repository at this point in the history
Fixes: nodejs#504
PR-URL: nodejs#503
  • Loading branch information
Fishrock123 committed Feb 3, 2016
1 parent aa4b373 commit 541e6f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/helpers/changeloglink.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}

0 comments on commit 541e6f8

Please # to comment.