diff --git a/.git-cz.json b/.git-cz.json new file mode 100644 index 00000000..92137901 --- /dev/null +++ b/.git-cz.json @@ -0,0 +1,3 @@ +{ + "disableEmoji": false +} diff --git a/lib/formatCommitMessage.js b/lib/formatCommitMessage.js index af269fe9..cb9998ea 100644 --- a/lib/formatCommitMessage.js +++ b/lib/formatCommitMessage.js @@ -26,15 +26,15 @@ const formatCommitMessage = (state) => { scope = `(${answers.scope})`; } - if (!config.disableEmoji) { + if (config.disableEmoji) { + head = answers.type + scope + ': ' + answers.subject; + } else { const emoji = config.types[answers.type].emoji; const emojiPrefix = emoji ? emoji + ' ' : ''; head = answers.type + scope + ': ' + emojiPrefix + answers.subject; } - head = answers.type + scope + ': ' + answers.subject; - const affectsLine = makeAffectsLine(answers); // Wrap these lines at MAX_LINE_WIDTH character