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-08-12 03:29:59 +0300
committerRebecca Turner <me@re-becca.org>2016-08-12 03:30:06 +0300
commitc393efbee2bfc3daf1edd172a5ba005db69bcd31 (patch)
treedeef2f2fab2fc642b2d7913aeb606459f492c8b3 /scripts
parent4ab0181fca2eda18888b865ef691b83d30fb0c33 (diff)
scripts: update changelog generator
Diffstat (limited to 'scripts')
-rw-r--r--scripts/changelog.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js
index 729dc6ce6..c60c6c664 100644
--- a/scripts/changelog.js
+++ b/scripts/changelog.js
@@ -14,13 +14,6 @@ the result to the changelog.
const execSync = require('child_process').execSync
const branch = process.argv[2] || 'master'
const log = execSync(`git log --reverse --pretty='format:%h %H%d %s (%aN)%n%b%n---%n' ${branch}...`).toString().split(/\n/)
-const authormap = {
- 'Rebecca Turner': 'iarna',
- 'Forrest L Norvell': 'othiym23',
- 'Kyle Mitchell': 'kemitchell',
- 'Chris Rebert': 'cvrebert',
- 'Kat Marchán': 'zkat'
-}
main()
@@ -32,7 +25,7 @@ function shortname (url) {
if (repo !== 'npm/npm') {
return `${repo}#${id}`
} else {
- return `#${id}`
+ return `${id}`
}
}
@@ -87,7 +80,7 @@ function main () {
fullid: m[2],
branch: m[3],
message: m[4],
- author: authormap[m[5]] || m[5],
+ author: m[5],
prurl: null,
fixes: null,
credit: null
@@ -97,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: (?:#|https:[/][/]github.com[/]([^/]+[/][^/]+)[/]issues[/])(.*)/)) {
+ } else if (m = line.match(/^Fixes: (.*)/)) {
commit.fixes = m[1]
} else if (m = line.match(/^Reviewed-By: @(.*)/)) {
commit.reviewed = m[1]