Skip to content

Commit

Permalink
Merge pull request #505 from Fishrock123/fix-changelog-links
Browse files Browse the repository at this point in the history
fix changelog links for new 0.12 and 0.10 releases
  • Loading branch information
stevemao committed Feb 3, 2016
2 parents aa4b373 + 9d3a781 commit 637c54f
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 637c54f

Please # to comment.