edited prompt slightly

This commit is contained in:
Hassan El Mghari
2023-02-14 01:56:16 -05:00
parent b48683755b
commit b956f07a3a
3 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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")

View File

@@ -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)",