We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be60087 commit 11a26e0Copy full SHA for 11a26e0
lib/sgcPrompt.js
@@ -26,11 +26,18 @@ const sgcPrompt = () => {
26
}, {
27
type: 'input',
28
name: 'description',
29
- message: 'Describe your commit message:',
+ message: 'Enter your commit message:',
30
+ validate: input => new Promise((resolve, reject) => {
31
+ if (input) {
32
+ resolve(true);
33
+ } else {
34
+ reject('A commit message is mandatory!');
35
+ }
36
+ }),
37
38
type: 'confirm',
39
name: 'moreInfo',
- message: 'You want to add more information to your commit?',
40
+ message: 'Do you want to add more information to your commit?',
41
default: false,
42
43
type: 'editor',
0 commit comments