Skip to content

Commit f3de431

Browse files
Test made for Commit Suggestion (#57)
* 📦 cli: refactoring code with functions having return value * 🚀 cli: test for function suggestCommitMsgCb pass * ✨ cli: decreased timeout * 💄general: Beautify files Co-authored-by: agg-shambhavi <[email protected]>
1 parent 02bdc50 commit f3de431

File tree

12 files changed

+5404
-868
lines changed

12 files changed

+5404
-868
lines changed

.gitgo

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"current_issue": {
3-
"number": "53",
3+
4+
"number": "22",
45
"labels": [
56
"cli",
67
"enhancement"
78
],
8-
"title": "Empty specific attributes from .gitgo before pushing it on github"
9+
"title": "Emoji top 3 recommendations"
910
},
1011
"commit_guidelines": [
11-
"cli:",
12-
"general:"
12+
"fix #"
1313
],
14-
"custom_guidelines": true,
15-
"selected_commit_type": "🚀 Improving dev tools",
14+
"custom_guidelines": false,
15+
"selected_commit_type": "✨ Adding a new user-facing feature",
1616
"emojis": {
1717
"initial_commit": "tada",
1818
"feature": "sparkles",
@@ -31,13 +31,14 @@
3131
"wip": "construction"
3232
},
3333
"existing_branches": [
34-
"command-summary-instructions",
35-
"main"
34+
35+
"Empty-attributes-github",
36+
"main",
37+
"test-commit-gen"
3638
],
3739
"current_branch": [
38-
"Empty-attributes-github"
40+
"Emoji-recommendations"
3941
],
40-
"current_commit_message": "🚀 cli: Empty specific attributes from .gitgo before pushing it on github",
41-
"use_emojis": true,
42-
"commit_config": false
42+
"current_commit_message": "✨ fix #22 Emoji top 3 recommendations",
43+
"use_emojis": true
4344
}

bin/index.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ const {
1212
} = require("../lib/inquirer.js");
1313
const simpleGit = require("simple-git");
1414
const git = simpleGit();
15-
const { jsonReader } = require("../lib/funcs/jsonReader.js");
15+
const {
16+
jsonReader
17+
} = require("../lib/funcs/jsonReader.js");
1618
const version = require("../package.json");
1719
const chalk = require("chalk");
18-
const { exec } = require("child_process");
20+
const {
21+
exec
22+
} = require("child_process");
1923
const fs = require("fs");
2024

2125
clear();
@@ -235,9 +239,9 @@ program
235239
);
236240
console.log(
237241
"You just need to know 5 simple commands you and then you're " +
238-
chalk.bold.cyan("gtg") +
239-
": " +
240-
chalk.magenta("Good to Go")
242+
chalk.bold.cyan("gtg") +
243+
": " +
244+
chalk.magenta("Good to Go")
241245
);
242246
console.log(chalk.green("\ngtg config:\n"));
243247
console.log(
@@ -261,4 +265,4 @@ program
261265
);
262266
});
263267

264-
program.parse(process.argv);
268+
program.parse(process.argv);

lib/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ module.exports = {
1111
// gets the whole directory list
1212
return fs.existsSync(filePath);
1313
},
14-
};
14+
};

0 commit comments

Comments
 (0)