Skip to content

Commit

Permalink
contributor-list: Check for empty user names
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Jun 30, 2018
1 parent 09d663c commit 691a652
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/contributor-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ const repositoryName = 'nodejs.org'

const formatOutput = (users) => {
console.log(`${repositoryOwner}/${repositoryName} committers since ${args[0]}, which aren't contributors yet:\n`)
console.log(users.map(user => `* ${user.login} (${user.name})`).join('\n'))
console.log(users.map(user => {
const name = user.name ? `(${user.name})` : ``
return `* ${user.login} ${name}`
}).join('\n'))
}

Promise
Expand Down

0 comments on commit 691a652

Please sign in to comment.