From beaabb63f6dcb2adfe6a836b48af4d110e62a3ca Mon Sep 17 00:00:00 2001
From: Dar <>
Date: Mon, 13 Mar 2023 19:08:00 -0500
Subject: [PATCH 1/2] style(generateCommitMessageFromGitDiff.ts): fix initial
 prompt and commit message

The initial prompt is now more specific about not including "This
commit" in the description, and adds a newline between the subject and
description.
---
 src/generateCommitMessageFromGitDiff.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/generateCommitMessageFromGitDiff.ts b/src/generateCommitMessageFromGitDiff.ts
index adfb5b94..aadea173 100644
--- a/src/generateCommitMessageFromGitDiff.ts
+++ b/src/generateCommitMessageFromGitDiff.ts
@@ -15,9 +15,9 @@ const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
       config?.emoji
         ? 'Use Gitmoji convention to preface the commit'
         : 'Do not preface the commit with anything'
-    }, use the present tense. ${
+    }. Use the present tense. ${
       config?.description
-        ? 'Add a short description of what commit is about after the commit message. Don\'t start it with "This commit", just describe the changes.'
+        ? "Add a short description of what the commit is about after the commit message, make sure you do NOT start the description with 'This commit', simply describe the changes."
         : "Don't add any descriptions to the commit, only commit message."
     }`
   },
@@ -51,7 +51,7 @@ const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
     // prettier-ignore
     content: `${config?.emoji ? '🐛 ' : ''}fix(server.ts): change port variable case from lowercase port to uppercase PORT
 ${config?.emoji ? '✨ ' : ''}feat(server.ts): add support for process.env.PORT environment variable
-${config?.description ? 'The port variable is now named PORT, which improves consistency with the naming conventions as PORT is a constant. Support for an environment variable allows the application to be more flexible as it can now run on any available port specified via the process.env.PORT environment variable.' : ''}`
+${config?.description ? '\nThe port variable is now named PORT, which improves consistency with the naming conventions as PORT is a constant. Support for an environment variable allows the application to be more flexible as it can now run on any available port specified via the process.env.PORT environment variable.' : ''}`
   }
 ];
 

From f9f2ab26b284a77c981c255cda441f450c9f4999 Mon Sep 17 00:00:00 2001
From: Dar <5784668+dararish@users.noreply.github.com>
Date: Tue, 14 Mar 2023 10:05:03 -0500
Subject: [PATCH 2/2] Improve wording for "no description" case

Co-authored-by: Sukharev <57486732+di-sukharev@users.noreply.github.com>
---
 src/generateCommitMessageFromGitDiff.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/generateCommitMessageFromGitDiff.ts b/src/generateCommitMessageFromGitDiff.ts
index aadea173..b1a9eef6 100644
--- a/src/generateCommitMessageFromGitDiff.ts
+++ b/src/generateCommitMessageFromGitDiff.ts
@@ -18,7 +18,7 @@ const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
     }. Use the present tense. ${
       config?.description
         ? "Add a short description of what the commit is about after the commit message, make sure you do NOT start the description with 'This commit', simply describe the changes."
-        : "Don't add any descriptions to the commit, only commit message."
+        : "Do NOT add any descriptions to the commit, only commit message."
     }`
   },
   {