cz-conventional-changelog
cz-conventional-changelog copied to clipboard
Something maybe wrong with the code in engine.js
Something maybe wrong with the code in engine.js
I think the following code block in engine.js
// Wrap these lines at options.maxLineWidth characters
var body = answers.body ? wrap(answers.body, wrapOptions) : false;
should be change to the follwing code:
var answerBody = answers.body?answers.body:'';
if (!answerBody) {
if (answers.breakingBody) {
answerBody = answers.breakingBody;
} else if (answers.issuesBody) {
answerBody = answers.issuesBody;
}
}
// Wrap these lines at options.maxLineWidth characters
var body = answerBody ? wrap(answerBody, wrapOptions) : false;
Otherwrise, how the questions "breakingBody" and "issuesBody" take effect? Do I miss something?