cz-conventional-changelog icon indicating copy to clipboard operation
cz-conventional-changelog copied to clipboard

Something maybe wrong with the code in engine.js

Open quanjinzhang opened this issue 4 years ago • 0 comments

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?

quanjinzhang avatar Apr 11 '21 08:04 quanjinzhang