diff --git a/.gitgo b/.gitgo index 6ee8231..8f0b165 100644 --- a/.gitgo +++ b/.gitgo @@ -1,19 +1,16 @@ { "current_issue": { - "number": "8", - "labels": [ - "enhancement", - "test label" - ], - "title": "Add a feature to suggest commit messages" + "number": "", + "labels": [], + "title": "" }, "commit_guidelines": [ "fix:", - "feat:", - "docs:" + " feat:", + " chore:" ], "custom_guidelines": false, - "selected_commit_type": "🎉 Initial commit", + "selected_commit_type": "", "emojis": { "initial_commit": "tada", "feature": "sparkles", @@ -33,6 +30,6 @@ }, "existing_branches": [], "current_branch": "", - "current_emoji": "", - "current_commit_message": "" + "current_commit_message": "", + "use_emojis": false } \ No newline at end of file diff --git a/lib/inquirer.js b/lib/inquirer.js index 68a344e..ce35561 100644 --- a/lib/inquirer.js +++ b/lib/inquirer.js @@ -91,6 +91,7 @@ module.exports = { return } conf.commit_guidelines = ans1['commit'].split(','); + conf.custom_guidelines = true; fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => { if (err) console.log('Error writing file:', err) }) @@ -130,6 +131,7 @@ module.exports = { return } conf.commit_guidelines = ans['guidelines'].split(','); + conf.custom_guidelines = false; fs.writeFile('./.gitgo', JSON.stringify(conf, null, 2), (err) => { if (err) console.log('Error writing file:', err) })