You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,30 @@ $ sgc
41
41
You can even create a global config. Just go to your users home and create a `.sgcrc`. The global config will be triggered if no project configurations are present.
42
42
43
43
**Options:**
44
+
-[questions](#questions)
44
45
-[emojies](#emojies)
45
46
-[types](#types)
46
47
-[rules](#rules)
47
48
49
+
### questions
50
+
51
+
**Type:**`object`
52
+
53
+
**Options:**
54
+
-`scope` Asks for the scope in parentheses of the commit. Default: `false`
55
+
-`moreInfo` Asks if more info (body) should be added. Default: `true`
56
+
57
+
An object with predefined settings, what should be asked.
t.deepEqual(questionsList[1].validate('This message has over 72 characters. So this test will definitely fail. I can guarantee that I am telling the truth'),'The commit message is not allowed to be longer as 72. Consider writing a body.\n');
t.is(questionsList[2].validate('This message has over 72 characters. So this test will definitely fail. I can guarantee that I am telling the truth'),'The commit message is not allowed to be longer as 72. Consider writing a body.\n');
68
78
});
69
79
70
80
test('when and default functions in questions',(t)=>{
t.deepEqual(questionsList[3].default({type: ':wrench: Chore:',description: 'This is a commit message!',moreInfo: true}),':wrench: Chore: This is a commit message!\n\n\n');
t.deepEqual(questionsList[4].default({type: ':wrench: Chore:',description: 'This is a commit message!',moreInfo: true}),':wrench: Chore: This is a commit message!\n\n\n');
0 commit comments