aicommits 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,7 +15,6 @@ async function main() {
|
|
|
15
15
|
);
|
|
16
16
|
process.exit(1);
|
|
17
17
|
}
|
|
18
|
-
// Check to see if the user is in a git repo
|
|
19
18
|
try {
|
|
20
19
|
execSync("git rev-parse --is-inside-work-tree", {
|
|
21
20
|
encoding: "utf8",
|
|
@@ -63,14 +62,13 @@ async function main() {
|
|
|
63
62
|
},
|
|
64
63
|
]);
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (confirmationMessage === "n") {
|
|
65
|
+
if (confirmationMessage.useCommitMessage === "n") {
|
|
69
66
|
console.log("▲ Commit message has not been commited.`");
|
|
70
67
|
process.exit(1);
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
execSync(`git commit -m "${aiCommitMessage}"`, {
|
|
71
|
+
stdio: "inherit",
|
|
74
72
|
encoding: "utf8",
|
|
75
73
|
});
|
|
76
74
|
}
|