refactor(generateCommitMessageFromGitDiff.ts): update INIT_MESSAGES_PROMPT to improve readability and remove unnecessary line breaks

This commit is contained in:
di-sukharev
2023-03-29 09:35:35 +08:00
parent 5d131e66fa
commit ea864d18f4
+2 -1
View File
@@ -19,7 +19,8 @@ const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
config?.emoji config?.emoji
? 'Use Gitmoji convention to preface the commit' ? 'Use Gitmoji convention to preface the commit'
: 'Do not preface the commit with anything' : 'Do not preface the commit with anything'
}. ${ }.
${
config?.description config?.description
? 'Add a short description of why the commit is done after the commit message. Don\'t start it with "This commit", just describe the changes' ? 'Add a short description of why the commit is done after the commit message. Don\'t start it with "This commit", just describe the changes'
: "Don't add any descriptions to the commit, only commit message" : "Don't add any descriptions to the commit, only commit message"