Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
feat: 🎸 add emojis to BREAKING CHANGE and closed issue sections
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 test

✅ Closes: test
  • Loading branch information
streamich committed Mar 22, 2019
1 parent a24e8ba commit 5e6dc17
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

0 comments on commit 5e6dc17

Please sign in to comment.