Add necessary files to enable AI commit feature - .example.env, .gitignore, README.md, aicommit.mjs.

This commit is contained in:
Hassan El Mghari
2023-02-11 23:41:25 -05:00
parent 23bec09d8c
commit cf3dee8c6b
4 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env zx
let { OPENAI_API_KEY } = await fs.readJson("./.env.json");
let diff = await $`git diff --cached`;
// echo("Current branch is", branch);
// console.log(branch);
echo(diff);