Skip to content

Commit 0a53c10

Browse files
committed
changelog: update generator script
1 parent fa54524 commit 0a53c10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/changelog.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ function shortname (url) {
3030
}
3131

3232
function printCommit (c) {
33-
console.log(`* [\`${c.shortid}\`](https://github.com/npm/npm/commit/${c.fullid})`)
33+
console.log(`* [\`${c.shortid}\`](https://github.com/npm/cli/commit/${c.fullid})`)
3434
if (c.fixes) {
3535
let label = shortname(c.fixes)
3636
if (label) {
3737
console.log(` [${label}](${c.fixes})`)
3838
} else {
39-
console.log(` [#${c.fixes}](https://github.com/npm/npm/issues/${c.fixes})`)
39+
console.log(` [npm.community#${c.fixes}](https://npm.community/t/${c.fixes})`)
4040
}
4141
} else if (c.prurl) {
4242
let label = shortname(c.prurl)
@@ -55,8 +55,8 @@ function printCommit (c) {
5555
.replace(/^(\s*[^@\s]+@\d+[.]\d+[.]\d+)(\s*\S)/g, '$1:$2')
5656
.replace(/\b([^@\s]+@\d+[.]\d+[.]\d+)\b/g, '`$1`')
5757
// linkify commitids
58-
.replace(/\b([a-f0-9]{7,8})\b/g, '[`$1`](https://github.com/npm/npm/commit/$1)')
59-
.replace(/\b#(\d+)\b/g, '[#$1](https://github.com/npm/npm/issues/$1)')
58+
.replace(/\b([a-f0-9]{7,8})\b/g, '[`$1`](https://github.com/npm/cli/commit/$1)')
59+
.replace(/\b#(\d+)\b/g, '[#$1](https://npm.community/t/$1)')
6060
console.log(msg)
6161
if (c.credit) {
6262
c.credit.forEach(function (credit) {

0 commit comments

Comments
 (0)