Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 36 additions & 29 deletions .gitgo
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{
"current_issue": {
"number": "8",
"labels": ["enhancement", "test label"],
"title": "Add a feature to suggest commit messages"
},
"commit_guidelines": ["fix:", "feat:", "docs:"],
"custom_guidelines": false,
"selected_commit_type": "",
"emojis": {
"initial_commit": "tada",
"feature": "sparkles",
"ui": "art",
"code_quality": "package",
"performance": "racehorse",
"security": "lock",
"config": "wrench",
"accessibility": "wheelchair",
"dev_tools": "rocket",
"docs": "pencil",
"release": "gem",
"bug_fix": "bug",
"crash": "boom",
"cleanup": "fire",
"wip": "construction"
},
"current_branch": "",
"current_emoji": "",
"current_commit_message": ""
}
"current_issue": {
"number": "8",
"labels": [
"enhancement",
"test label"
],
"title": "Add a feature to suggest commit messages"
},
"commit_guidelines": [
"fix:",
"feat:",
"docs:"
],
"custom_guidelines": false,
"selected_commit_type": "🎉 Initial commit",
"emojis": {
"initial_commit": "tada",
"feature": "sparkles",
"ui": "art",
"code_quality": "package",
"performance": "racehorse",
"security": "lock",
"config": "wrench",
"accessibility": "wheelchair",
"dev_tools": "rocket",
"docs": "pencil",
"release": "gem",
"bug_fix": "bug",
"crash": "boom",
"cleanup": "fire",
"wip": "construction"
},
"current_branch": "",
"current_emoji": "",
"current_commit_message": ""
}
10 changes: 5 additions & 5 deletions lib/inquirer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
return
}
conf.selected_commit_type = ans['issueType'];
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
});
Expand Down Expand Up @@ -91,7 +91,7 @@ module.exports = {
return
}
conf.commit_guidelines = ans1['commit'].split(',');
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
})
Expand All @@ -114,7 +114,7 @@ module.exports = {
return
}
conf.use_emojis = emo;
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
})
Expand All @@ -130,7 +130,7 @@ module.exports = {
return
}
conf.commit_guidelines = ans['guidelines'].split(',');
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
})
Expand All @@ -153,7 +153,7 @@ module.exports = {
return
}
conf.use_emojis = emo;
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
})
Expand Down
2 changes: 1 addition & 1 deletion lib/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
conf.current_issue.title = titleOfIssue;
conf.current_issue.labels = labelsOfIssue;
conf.current_issue.number = finalIssueNumber;
fs.writeFile('./.gitgo', JSON.stringify(conf), (err) => {
fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => {
if (err) console.log('Error writing file:', err)
})
})
Expand Down