Skip to content

Commit 34af0be

Browse files
aichbauerJPeer264
authored andcommitted
🔨 Refactor: change sgc.types.prefix to sgc.types.type
1 parent b7f9c79 commit 34af0be

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.sgcrc_default

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
"types": [
33
{
44
"emoji": ":wrench:",
5-
"prefix": "Chore:",
5+
"type": "Chore:",
66
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) and moving files"
77
},
88
{
99
"emoji": ":construction_worker:",
10-
"prefix": "CI:",
10+
"type": "CI:",
1111
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
1212
},
1313
{
1414
"emoji": ":memo:",
15-
"prefix": "Docs:",
15+
"type": "Docs:",
1616
"description": "Documentation only changes"
1717
},
1818
{
1919
"emoji": ":sparkles:",
20-
"prefix": "Feat:",
20+
"type": "Feat:",
2121
"description": "A new feature"
2222
},
2323
{
2424
"emoji": ":bug:",
25-
"prefix": "Fix:",
25+
"type": "Fix:",
2626
"description": "A bug fix"
2727
},
2828
{
2929
"emoji": ":zapr:",
30-
"prefix": "Perf:",
30+
"type": "Perf:",
3131
"description": "A code change that improves performance"
3232
},
3333
{
3434
"emoji": ":hammer:",
35-
"prefix": "Refactor:",
35+
"type": "Refactor:",
3636
"description": "A code change that neither fixes a bug nor adds a feature"
3737
},
3838
{
3939
"emoji": ":art:",
40-
"prefix": "Style:",
40+
"type": "Style:",
4141
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
4242
},
4343
{
4444
"emoji": ":white_check_mark:",
45-
"prefix": "Test:",
45+
"type": "Test:",
4646
"description": "Adding missing tests or correcting existing tests"
4747
}
4848
]

lib/sgcPrompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const sgcPrompt = () => {
99

1010
config.types.forEach((type) => {
1111
const emoji = `${type.emoji} ` || '';
12-
const prefix = type.prefix;
12+
const prefix = type.type;
1313
const description = type.description || '';
1414

1515
choices.push({

test/fixtures/.sgcrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"types": [
33
{
44
"emoji": ":emo:",
5-
"prefix": "Add:",
5+
"type": "Add:",
66
"description": "Files added"
77
}
88
]

0 commit comments

Comments
 (0)