not taking into account lock files
This commit is contained in:
@@ -35,11 +35,13 @@ This CLI tool runs a `git diff` command to grab all the latest changes, sends th
|
|||||||
|
|
||||||
The next version of the CLI, v2, will address both of these limitations!
|
The next version of the CLI, v2, will address both of these limitations!
|
||||||
|
|
||||||
## Future tasks
|
## Tasks now
|
||||||
|
|
||||||
- Ignore package-lock and yarn.lock files
|
|
||||||
- Experiment with openai curie and codex as opposed to dacinvi
|
- Experiment with openai curie and codex as opposed to dacinvi
|
||||||
- Figure out the price per commit
|
- Figure out the price per commit
|
||||||
|
|
||||||
|
## Future tasks
|
||||||
|
|
||||||
- Add support for conventional commits as a flag that users can enable
|
- Add support for conventional commits as a flag that users can enable
|
||||||
- Try supporting more than 200 lines by grabbing the diff per file
|
- Try supporting more than 200 lines by grabbing the diff per file
|
||||||
- Build landing page for the 2.0 launch
|
- Build landing page for the 2.0 launch
|
||||||
|
|||||||
@@ -27,7 +27,12 @@ export async function main() {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const diff = execSync("git diff --cached", { encoding: "utf8" });
|
const diff = execSync(
|
||||||
|
"git diff --cached ':!package-lock.json' ':!yarn.lock'",
|
||||||
|
{
|
||||||
|
encoding: "utf8",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if (!diff) {
|
if (!diff) {
|
||||||
console.log(
|
console.log(
|
||||||
@@ -78,7 +83,7 @@ export async function main() {
|
|||||||
|
|
||||||
async function generateCommitMessage(prompt: string) {
|
async function generateCommitMessage(prompt: string) {
|
||||||
const payload = {
|
const payload = {
|
||||||
model: "text-davinci-003",
|
model: "text-curie-001",
|
||||||
prompt,
|
prompt,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aicommits",
|
"name": "aicommits",
|
||||||
"version": "0.2.7",
|
"version": "0.2.8",
|
||||||
"description": "Writes your git commit messages for you with AI",
|
"description": "Writes your git commit messages for you with AI",
|
||||||
"main": "bin/index.js",
|
"main": "bin/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
Reference in New Issue
Block a user