diff options
author | Kat Marchán <kzm@zkat.tech> | 2018-08-02 04:39:08 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-02 04:39:08 +0300 |
commit | 0a53c10e833fcb0823a9e6767d184d07632eb996 (patch) | |
tree | d9654e2a7c006e67093b46c4a757ee12182d69a6 | |
parent | fa545246e10dd3d5685f0561e6cbc896d7e94585 (diff) |
changelog: update generator script
-rw-r--r-- | scripts/changelog.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js index ff6e43e38..6abefa4fb 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -30,13 +30,13 @@ function shortname (url) { } function printCommit (c) { - console.log(`* [\`${c.shortid}\`](https://github.com/npm/npm/commit/${c.fullid})`) + console.log(`* [\`${c.shortid}\`](https://github.com/npm/cli/commit/${c.fullid})`) if (c.fixes) { let label = shortname(c.fixes) if (label) { console.log(` [${label}](${c.fixes})`) } else { - console.log(` [#${c.fixes}](https://github.com/npm/npm/issues/${c.fixes})`) + console.log(` [npm.community#${c.fixes}](https://npm.community/t/${c.fixes})`) } } else if (c.prurl) { let label = shortname(c.prurl) @@ -55,8 +55,8 @@ function printCommit (c) { .replace(/^(\s*[^@\s]+@\d+[.]\d+[.]\d+)(\s*\S)/g, '$1:$2') .replace(/\b([^@\s]+@\d+[.]\d+[.]\d+)\b/g, '`$1`') // linkify commitids - .replace(/\b([a-f0-9]{7,8})\b/g, '[`$1`](https://github.com/npm/npm/commit/$1)') - .replace(/\b#(\d+)\b/g, '[#$1](https://github.com/npm/npm/issues/$1)') + .replace(/\b([a-f0-9]{7,8})\b/g, '[`$1`](https://github.com/npm/cli/commit/$1)') + .replace(/\b#(\d+)\b/g, '[#$1](https://npm.community/t/$1)') console.log(msg) if (c.credit) { c.credit.forEach(function (credit) { |