diff --git a/.grenrc.js b/.grenrc.js index 252d4d4..1864c78 100644 --- a/.grenrc.js +++ b/.grenrc.js @@ -1,10 +1,18 @@ + function getAuthor(placeholders) { if (placeholders.author === 'ole1986') { // skip owner return ''; } - return `- ${placeholders.author ? `@${placeholders.author}` : name}`; + + if (placeholders.author === null) { + // skip when no author could be found + return ''; + } + + return `- @${placeholders.author}`; } + function parseCommitLine(placeholders) { return `- ${placeholders.message} ${getAuthor(placeholders)}` }