Skip to content

Commit 9d3a781

Browse files
committed
fix changelog links for new 0.12 and 0.10 releases
Fixes: #504 PR-URL: #505
1 parent aa4b373 commit 9d3a781

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/helpers/changeloglink.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ module.exports = function (version) {
99
return `https://github.com/nodejs/node/blob/${version}/CHANGELOG.md`
1010
}
1111

12+
// 0.12.8+ and 0.10.41+ releases come from the new repo
13+
if (semver.satisfies(version, '~0.12.8 || ~0.10.41')) {
14+
return `https://github.com/nodejs/node/blob/${version}/ChangeLog`
15+
}
16+
1217
return `https://github.com/nodejs/node-v0.x-archive/blob/${version}/ChangeLog`
1318
}

0 commit comments

Comments
 (0)