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:
authorRebecca Turner <me@re-becca.org>2016-09-10 02:25:40 +0300
committerRebecca Turner <me@re-becca.org>2016-09-10 02:25:40 +0300
commite2782594cca6240991cb2fa4ffc05fb106391f1a (patch)
tree9b9360c063f2c2c6be590b6e8ffbd49d4cf90152 /scripts
parent8fa75cd0313e3cea8459f89b79208461e54b033b (diff)
gen-changelog: Fix the missing/double hashmarks issue
Diffstat (limited to 'scripts')
-rw-r--r--scripts/changelog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js
index c60c6c664..abbec4b4e 100644
--- a/scripts/changelog.js
+++ b/scripts/changelog.js
@@ -25,7 +25,7 @@ function shortname (url) {
if (repo !== 'npm/npm') {
return `${repo}#${id}`
} else {
- return `${id}`
+ return `#${id}`
}
}
@@ -90,7 +90,7 @@ function main () {
} else if (m = line.match(/^Credit: @(.*)/)) {
if (!commit.credit) commit.credit = []
commit.credit.push(m[1])
- } else if (m = line.match(/^Fixes: (.*)/)) {
+ } else if (m = line.match(/^Fixes: #?(.*?)/)) {
commit.fixes = m[1]
} else if (m = line.match(/^Reviewed-By: @(.*)/)) {
commit.reviewed = m[1]