Skip to content

Commit bd8e137

Browse files
feat(engine): simplify questions
1 parent f6de576 commit bd8e137

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

engine.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ module.exports = (options) => {
2424
{
2525
type: 'list',
2626
name: 'type',
27-
message: 'Select the type of change that you\'re committing:',
27+
message: 'Type of change that you\'re committing:',
2828
choices,
2929
default: options.defaultType,
3030
}, {
3131
type: 'input',
3232
name: 'scope',
33-
message: 'What is the scope of this change (e.g. component or file name): (press enter to skip)',
33+
message: 'Scope of this change, component or folder name: (enter to skip)',
3434
default: options.defaultScope,
3535
filter(value) {
3636
return value.trim().toLowerCase();
3737
},
3838
}, {
3939
type: 'confirm',
4040
name: 'isEmoji',
41-
message: 'Add Emoji by default ?',
41+
message: 'Emoji by default ?',
4242
default: true,
4343
}, {
4444
type: 'input',
4545
name: 'emoji',
46-
message: 'Add your own Emoji :\n',
46+
message: 'Your own Emoji :\n',
4747
when(answers) {
4848
return !answers.isEmoji;
4949
},
@@ -52,7 +52,7 @@ module.exports = (options) => {
5252
name: 'subject',
5353
message(answers) {
5454
return (
55-
`Write a short, imperative tense description of the change (max ${
55+
`Short, imperative tense description of the change (max ${
5656
helpers.maxSummaryLength(options, answers)
5757
} chars):\n`
5858
);
@@ -82,21 +82,21 @@ module.exports = (options) => {
8282
type: 'input',
8383
name: 'body',
8484
message:
85-
'Provide a longer description of the change: (press enter to skip)\n',
85+
'Longer description of the change: (enter to skip)\n',
8686
default: options.defaultBody,
8787
},
8888
{
8989
type: 'confirm',
9090
name: 'isBreaking',
91-
message: 'Are there any breaking changes?',
91+
message: 'Breaking changes?',
9292
default: false,
9393
},
9494
{
9595
type: 'input',
9696
name: 'breakingBody',
9797
default: '-',
9898
message:
99-
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself:\n',
99+
'Breaking change requires a body :\n',
100100
when(answers) {
101101
return answers.isBreaking && !answers.body;
102102
},
@@ -119,15 +119,15 @@ module.exports = (options) => {
119119
{
120120
type: 'confirm',
121121
name: 'isIssueAffected',
122-
message: 'Does this change affect any open issues?',
122+
message: 'Affect any open issues?',
123123
default: !!options.defaultIssues,
124124
},
125125
{
126126
type: 'input',
127127
name: 'issuesBody',
128128
default: '-',
129129
message:
130-
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself:\n',
130+
'If issues are closed, the commit requires a body :\n',
131131
when(answers) {
132132
return (
133133
answers.isIssueAffected && !answers.body && !answers.breakingBody
@@ -137,7 +137,7 @@ module.exports = (options) => {
137137
{
138138
type: 'input',
139139
name: 'issues',
140-
message: 'Add issue references (e.g. "fix #123", "re #123".):\n',
140+
message: 'Issue references, "fix #123", "close #123" :\n',
141141
when(answers) {
142142
return answers.isIssueAffected;
143143
},

0 commit comments

Comments
 (0)