File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ var filterSubject = function(subject, disableSubjectLowerCase) {
3333 return subject ;
3434} ;
3535
36+ var getBody = function ( answers ) {
37+ return answers . body || answers . breakingBody || answers . issuesBody
38+ }
39+
3640// This can be any kind of SystemJS compatible module.
3741// We use Commonjs here, but ES6 or AMD would do just
3842// fine.
@@ -203,7 +207,8 @@ module.exports = function(options) {
203207 var head = answers . type + scope + ': ' + answers . subject ;
204208
205209 // Wrap these lines at options.maxLineWidth characters
206- var body = answers . body ? wrap ( answers . body , wrapOptions ) : false ;
210+ var body = getBody ( answers )
211+ body = body ? wrap ( body , wrapOptions ) : false ;
207212
208213 // Apply breaking change prefix, removing it if already present
209214 var breaking = answers . breaking ? answers . breaking . trim ( ) : '' ;
You can’t perform that action at this time.
0 commit comments