From b956f07a3a0573c07d226aee2b09d790ccedb030 Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Tue, 14 Feb 2023 01:56:16 -0500 Subject: [PATCH] edited prompt slightly --- README.md | 5 ++++- aicommits.ts | 2 +- package.json | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d21fb67..8d2e29e 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,14 @@ Video coming soon where I rebuild it from scratch to show you how to easily buil - Only supports git diffs of up to 200 lines of code for now - Does not support conventional commits -The next version of the CLI, version 2, will address both of these limitations! +The next version of the CLI, version 2, will address both of these limitations as well as the tasks below! ## Future tasks +- Add a debugging flag to troubleshoot OpenAI responses - Add support for conventional commits as a flag that users can enable - Add support for diffs greater than 200 lines by grabbing the diff per file - Add support for a flag that can auto-accept +- Add opt-in emoji and languages flags +- Add ability to specify a commit message from inside aicommit - Build landing page for the 2.0 launch diff --git a/aicommits.ts b/aicommits.ts index 007db34..617e6dd 100644 --- a/aicommits.ts +++ b/aicommits.ts @@ -50,7 +50,7 @@ export async function main() { process.exit(1); } - let prompt = `I want you to act like a git commit message writer. I will input a git diff and your job is to convert it into a useful commit message. Do not preface the commit with anything, use present tense, return a complete sentence, and do not repeat yourself: ${diff}`; + let prompt = `I want you to act like a git commit message writer. I will input a git diff and your job is to convert it into a useful commit message. Do not preface the commit with anything, use the present tense, return a complete sentence, and do not repeat yourself: ${diff}`; console.log( chalk.white("▲ ") + chalk.gray("Generating your AI commit message...\n") diff --git a/package.json b/package.json index cdefcfb..1027d84 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,10 @@ { "name": "aicommits", - "version": "1.0.2", + "version": "1.0.3", "description": "Writes your git commit messages for you with AI", - "files": ["bin"], + "files": [ + "bin" + ], "bin": "bin/index.js", "repository": "https://github.com/Nutlope/aicommits", "author": "Hassan El Mghari (@nutlope)",