Skip to content

Commit

Permalink
Merge pull request #22 from streamich/body-emojis
Browse files Browse the repository at this point in the history
feat: 🎸 add emojis to BREAKING CHANGE and closed issue sections
  • Loading branch information
streamich authored Mar 22, 2019
2 parents a24e8ba + 5e6dc17 commit 2f6000b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ const questions = [
];

module.exports = {
breakingChangePrefix: '🧨 ',
closedIssuePrefix: '✅ ',
list,
maxMessageLength: 64,
minMessageLength: 3,
Expand Down
4 changes: 2 additions & 2 deletions lib/formatCommitMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const formatCommitMessage = (state) => {
}

if (breaking) {
msg += '\n\nBREAKING CHANGE: ' + breaking;
msg += '\n\nBREAKING CHANGE: ' + config.breakingChangePrefix + breaking;
}

if (issues) {
msg += '\n\nCloses: ' + issues;
msg += '\n\n' + config.closedIssuePrefix + 'Closes: ' + issues;
}

return msg;
Expand Down

1 comment on commit 2f6000b

@streamich
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 3.0.0-master.67 🤞 master on Travis 🎉

Please sign in to comment.