feat: add OCO_ONE_LINE_COMMIT config for enabling one line commit message (#307)

This commit is contained in:
Mouadh HSOUMI
2024-03-09 05:44:12 +01:00
committed by GitHub
parent a192441f68
commit 45dc2c4535
4 changed files with 20 additions and 1 deletions
+5
View File
@@ -115,6 +115,11 @@ const INIT_MAIN_PROMPT = (
? 'Add a short description of WHY the changes are 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."
}
${
config?.OCO_ONE_LINE_COMMIT
? 'Craft a concise commit message that encapsulates all changes made, with an emphasis on the primary updates. If the modifications share a common theme or scope, mention it succinctly; otherwise, leave the scope out to maintain focus. The goal is to provide a clear and unified overview of the changes in a one single message, without diverging into a list of commit per file change.'
: ""
}
Use the present tense. Lines must not be longer than 74 characters. Use ${language} for the commit message.`
});