Skip to content

Commit

Permalink
Fixed gren
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Mar 10, 2021
1 parent 902fad4 commit 5ffb39c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .grenrc.js
Original file line number Diff line number Diff line change
@@ -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)}`
}
Expand Down

0 comments on commit 5ffb39c

Please sign in to comment.