git-authors-cli
Advanced tools
Comparing version 1.0.42 to 1.0.43
@@ -16,4 +16,2 @@ #!/usr/bin/env node | ||
const TTY = process.platform === 'win32' ? 'CON' : '/dev/tty' | ||
const BOT_NAMES = ['ImgBotApp', 'greenkeeper', 'noreply', '\\bbot\\b', 'Travis CI'] | ||
@@ -61,3 +59,3 @@ | ||
console.log() | ||
contributors.forEach(({ author, commits, name, email }) => { | ||
contributors.forEach(({ author, commits, name }) => { | ||
const prettyAuthor = colors.gray(author.replace(name, colors.white(name))) | ||
@@ -95,4 +93,8 @@ const prettyCommits = colors.white(`${indent(maxIndent, commits)}${commits}`) | ||
const pkgPath = path.join(cwd, 'package.json') | ||
const cmd = `git shortlog -sne < ${TTY}` | ||
const { stdout, stderr } = await execa.command(cmd, { cwd, shell: true }) | ||
const cmd = `git shortlog -sne HEAD` | ||
const { stdout, stderr } = await execa.command(cmd, { | ||
cwd, | ||
shell: true, | ||
stdio: ['ignore', 'pipe', 'pipe'] | ||
}) | ||
@@ -99,0 +101,0 @@ if (stderr) return processError(stderr) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/git-authors-cli", | ||
"version": "1.0.42", | ||
"version": "1.0.43", | ||
"bin": { | ||
@@ -18,4 +18,4 @@ "git-authors": "bin/index.js", | ||
{ | ||
"name": "Manuel Rueda", | ||
"email": "manuel.rueda.un@gmail.com" | ||
"name": "Jonas Gloning", | ||
"email": "34194370+jonasgloning@users.noreply.github.com" | ||
}, | ||
@@ -29,2 +29,10 @@ { | ||
"email": "jorge@bitnami.com" | ||
}, | ||
{ | ||
"name": "Manuel Rueda", | ||
"email": "manuel.rueda.un@gmail.com" | ||
}, | ||
{ | ||
"name": "Thanh Tran", | ||
"email": "trongthanh@gmail.com" | ||
} | ||
@@ -31,0 +39,0 @@ ], |
11888
158