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
+31-44Lines changed: 31 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,28 +41,39 @@ $ 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
+
-[body](#body)
45
+
-[scope](#scope)
45
46
-[emoji](#emoji)
46
47
-[types](#types)
47
48
-[rules](#rules)
48
-
-[inherit](#inherit)
49
49
50
-
### questions
50
+
### body
51
51
52
-
**Type:**`object`
52
+
**Type:**`boolean`
53
53
54
-
**Options:**
55
-
-`scope` Asks for the scope in parentheses of the commit. Default: `false`
56
-
-`body` Asks if more info (body) should be added. Default: `true`
54
+
**Default**: `true`
57
55
58
-
An object with predefined settings, what should be asked.
56
+
Asks if more info (body) should be added. This will open your default editor.
59
57
60
58
Example:
61
-
```js
59
+
```json
62
60
{
63
-
"questions": {
64
-
"scope":true
65
-
}
61
+
"body": false
62
+
}
63
+
```
64
+
65
+
### scope
66
+
67
+
**Type:**`boolean`
68
+
69
+
**Default:**`false`
70
+
71
+
Asks for the scope in parentheses of the commit.
72
+
73
+
Example:
74
+
```json
75
+
{
76
+
"scope": true
66
77
}
67
78
```
68
79
@@ -83,7 +94,8 @@ Example:
83
94
84
95
### types
85
96
86
-
> Types will define your git commits.
97
+
> Types will define your git commits. If `types` is not set in your own `.sgcrc`, the `types` of the global [.sgcrc](.sgcrc)
98
+
87
99
88
100
**Keys**
89
101
@@ -135,15 +147,15 @@ Available rules:
135
147
136
148
**Type:**`number`
137
149
138
-
**Default:**`undefined`
150
+
**Default:**`72`
139
151
140
-
If a number is set, it will not allow to commit messages **more than** the given number
152
+
If a number is set, it will not allow to commit messages **more than** the given number. If it is set to `false` the rule is deactivated
141
153
142
154
Example:
143
155
```json
144
156
{
145
157
"rules": {
146
-
"max-char": 10
158
+
"max-char": false
147
159
}
148
160
}
149
161
```
@@ -152,15 +164,15 @@ Example:
152
164
153
165
**Type:**`number`
154
166
155
-
**Default:**`undefined`
167
+
**Default:**`10`
156
168
157
-
If a number is set, it will not allow to commit messages **less than** the given number
169
+
If a number is set, it will not allow to commit messages **less than** the given number. If it is set to `false` the rule is deactivated
158
170
159
171
Example:
160
172
```json
161
173
{
162
174
"rules": {
163
-
"min-char": 10
175
+
"min-char": false
164
176
}
165
177
}
166
178
```
@@ -181,28 +193,3 @@ Example:
181
193
}
182
194
}
183
195
```
184
-
185
-
### inherit
186
-
187
-
**Type:**`boolean | array`
188
-
189
-
**Default:**`false`
190
-
191
-
This will inherit every object entry which is given in the array. If this is set to true everything is inherited. The own configuration won't get overwritten.
192
-
193
-
Example:
194
-
```js
195
-
// following set "emoji" to true, and will inherit everything except "emoji" from the defaults.
196
-
{
197
-
"emoji":true,
198
-
"inherit":true
199
-
}
200
-
201
-
// following has "emoji" to true and just types are "types" from the defaults.
0 commit comments