Skip to content

Commit 8f5126d

Browse files
committed
feat(engine): add body character count
fix(engine): removed maxBodyLineWidth property
1 parent aae2548 commit 8f5126d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

engine.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ module.exports = function(options) {
126126
type: 'input',
127127
name: 'body',
128128
message:
129-
'Provide a longer description of the change: (press enter to skip)\n',
130-
default: options.defaultBody
129+
'Provide a longer description of the change: (press enter to skip)\n',
130+
default: options.defaultBody,
131+
transformer: function(body) {
132+
var color = chalk.green;
133+
return color('(' + body.length + ') ' + body);
134+
}
131135
},
132136
{
133137
type: 'confirm',

0 commit comments

Comments
 (0)