We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7fcb46 commit 24928c0Copy full SHA for 24928c0
generate-commit.js
@@ -2,6 +2,7 @@
2
3
import { config } from "dotenv";
4
import chalk from "chalk";
5
+import { exec } from "child_process";
6
config();
7
8
import { GoogleGenerativeAI } from "@google/generative-ai";
@@ -30,6 +31,7 @@ export async function generateCommit(input) {
30
31
const text = response.text();
32
return text;
33
} catch (error) {
34
+ exec("git reset");
35
console.log(chalk.red(`${error}`));
36
process.exit(1);
37
}
0 commit comments