Skip to content

Commit

Permalink
feat: optionally append whitespace to footer prefix
Browse files Browse the repository at this point in the history
ISSUES CLOSED: leoforfree#144
  • Loading branch information
mwjaco committed Sep 13, 2021
1 parent 65d3646 commit d9b4c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const addFooter = (footer, config) => {

const footerPrefix = config && config.footerPrefix ? config.footerPrefix : 'ISSUES CLOSED:';

return `\n\n${footerPrefix} ${addBreaklinesIfNeeded(footer, config.breaklineChar)}`;
return `\n\n${footerPrefix}${config.addWhiteSpaceToFooterPrefix === false ? '' : ' '}${addBreaklinesIfNeeded(footer, config.breaklineChar)}`;
};

const escapeSpecialChars = result => {
Expand Down
1 change: 1 addition & 0 deletions cz-config-EXAMPLE.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ module.exports = {
subjectLimit: 100,
// breaklineChar: '|', // It is supported for fields body and footer.
// footerPrefix : 'ISSUES CLOSED:'
// addWhiteSpaceToFooterPrefix: true,
// askForBreakingChangeFirst : true, // default is false
};

0 comments on commit d9b4c51

Please sign in to comment.