Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@zkat.tech>2018-08-02 04:39:08 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-02 04:39:08 +0300
commit0a53c10e833fcb0823a9e6767d184d07632eb996 (patch)
treed9654e2a7c006e67093b46c4a757ee12182d69a6 /scripts
parentfa545246e10dd3d5685f0561e6cbc896d7e94585 (diff)
changelog: update generator script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/changelog.js8
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) {