🔀 chore(CommandsEnum.ts): reorder COMMANDS enum values

🐛 fix(config.ts): add missing new lines
🐛 fix(githook.ts): capitalize OpenCommit and fix grammar
The COMMANDS enum values were reordered to improve readability and consistency. In config.ts, missing new lines were added to improve code readability. In githook.ts, OpenCommit was capitalized and grammar was fixed to improve clarity.
This commit is contained in:
di-sukharev
2023-03-28 11:31:42 +08:00
parent 1c113c2901
commit a2d03e054c
4 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { mergeStrings } from './utils/mergeStrings';
import { i18n, I18nLocals } from './i18n';
const config = getConfig();
const translation = i18n[config?.language as I18nLocals || 'en']
const translation = i18n[(config?.language as I18nLocals) || 'en'];
const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
{
@@ -20,7 +20,7 @@ const INIT_MESSAGES_PROMPT: Array<ChatCompletionRequestMessage> = [
}, 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.'
: 'Don\'t add any descriptions to the commit, only commit message.'
: "Don't add any descriptions to the commit, only commit message."
} Use ${translation.localLanguage} to answer.`
},
{