From 0a53c10e833fcb0823a9e6767d184d07632eb996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 1 Aug 2018 18:39:08 -0700 Subject: [PATCH] changelog: update generator script --- scripts/changelog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index ff6e43e385d22..6abefa4fb6cb1 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) {