From 467e8ec03ef887998857c637a15e4746d0234f56 Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Mon, 13 Feb 2023 19:54:45 -0500 Subject: [PATCH] v1 working --- README.md | 3 ++- aicommits.ts | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec5d6e6..410f7df 100644 --- a/README.md +++ b/README.md @@ -40,5 +40,6 @@ The next version of the CLI, v2, will address both of these limitations! ## Future tasks - Add support for conventional commits as a flag that users can enable -- Try supporting more than 200 lines by grabbing the diff per file +- Add support for diffs greater than 200 lines by grabbing the diff per file +- Add support for a flag that can auto-accept - Build landing page for the 2.0 launch diff --git a/aicommits.ts b/aicommits.ts index 3511b51..547f5a7 100644 --- a/aicommits.ts +++ b/aicommits.ts @@ -8,12 +8,12 @@ import fetch from "node-fetch"; let OPENAI_API_KEY = process.env.OPENAI_API_KEY; export async function main() { - console.log(chalk.white("▲ ") + chalk.green("Welcome to AICommit!")); + console.log(chalk.white("▲ ") + chalk.green("Welcome to AICommits!")); if (!OPENAI_API_KEY) { console.error( chalk.white("▲ ") + - "Please specify an OpenAI key using export OPENAI_API_KEY='YOUR_API_KEY'" + "Please save your OpenAI API key as an env variable by doing 'export OPENAI_API_KEY=YOUR_API_KEY'" ); process.exit(1); } diff --git a/package.json b/package.json index 82bd74c..d5d063c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aicommits", - "version": "0.3.2", + "version": "1.0.0", "description": "Writes your git commit messages for you with AI", "main": "bin/index.js", "bin": {