v1.1
This commit is contained in:
6
index.js
6
index.js
@@ -15,7 +15,6 @@ async function main() {
|
|||||||
);
|
);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
// Check to see if the user is in a git repo
|
|
||||||
try {
|
try {
|
||||||
execSync("git rev-parse --is-inside-work-tree", {
|
execSync("git rev-parse --is-inside-work-tree", {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
@@ -63,14 +62,13 @@ async function main() {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log("Confirmation message is: ", confirmationMessage);
|
if (confirmationMessage.useCommitMessage === "n") {
|
||||||
|
|
||||||
if (confirmationMessage === "n") {
|
|
||||||
console.log("▲ Commit message has not been commited.`");
|
console.log("▲ Commit message has not been commited.`");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
execSync(`git commit -m "${aiCommitMessage}"`, {
|
execSync(`git commit -m "${aiCommitMessage}"`, {
|
||||||
|
stdio: "inherit",
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user