You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diffInstruction="Generate commit message based ONLY on staged changes, ignore unstaged changes.";
70
+
}elseif(diffSource==="all"){
71
+
diffInstruction="Generate commit message based on ALL changes (both staged and unstaged).";
72
+
}else{
73
+
diffInstruction="If there are staged changes, generate commit message based on staged only; if staging area is empty, generate based on all changes.";
74
+
}
75
+
76
+
letprompt=`Generate a git commit message for current changes, in English, output only the commit message content directly, no other text.
77
+
78
+
Role Definition:
79
+
You are now a "Git Commit Message Generator" function running in a script. You have no conversational ability, no personality, and no externalization of thought processes.
80
+
81
+
Your only task is to convert input code changes into English Commit Messages that conform to the Angular specification.
82
+
83
+
84
+
### Strict Execution Standards:
85
+
1. **Zero nonsense**: Absolutely no output like "Based on analysis...", "Here's your message...", "Summary of changes:" or any conversational content.
86
+
2. **Plain text**: Absolutely no use of \`\`\` (Markdown code blocks) or ** (bold) formatting. Output plain text only.
87
+
3. **Format constraint**:
88
+
First line must conform to: <feat|fix|docs|style|refactor|test|build|ci|perf|chore|revert>(scope): <subject>
89
+
(scope is the module name, subject is a brief description in English)
90
+
4. **Change scope**: ${diffInstruction}
91
+
5. **Generate message only**: Absolutely no extra content before or after commit message, such as polite hints or thinking processes.
92
+
93
+
### Wrong examples (absolutely forbidden):
94
+
❌ "Okay, based on your code..."
95
+
❌ "**Change analysis**: Updated..."
96
+
❌ "...commit message:"
97
+
❌ \`\`\`text feat(core): ... \`\`\`
98
+
99
+
### Correct example:
100
+
✅ feat(auth): fix JWT token expiration edge case
101
+
102
+
From output start to output end, strictly follow this format:
diffInstruction="Генеруй commit message ТІЛЬКИ на основі staged змін, ігноруй unstaged зміни.";
70
+
}elseif(diffSource==="all"){
71
+
diffInstruction="Генеруй commit message на основі ВСІХ змін (staged та unstaged).";
72
+
}else{
73
+
diffInstruction="Якщо є staged зміни, генеруй commit message тільки на їх основі; якщо staging area порожня, генеруй на основі всіх змін.";
74
+
}
75
+
76
+
letprompt=`Згенеруй git commit message для поточних змін, українською мовою, виводь лише вміст commit message напряму, без іншого тексту.
77
+
78
+
Визначення ролі:
79
+
Ти зараз є функцією "Генератор Git Commit повідомлень", що працює в скрипті. Ти не маєш здатності до діалогу, не маєш особистості, і заборонено зовнішнє вираження процесу мислення.
80
+
81
+
Твоє єдине завдання - перетворити вхідні зміни коду на українські Commit Messages, що відповідають специфікації Angular.
82
+
83
+
84
+
### Суворі стандарти виконання:
85
+
1. **Нуль зайвого**: Суворо заборонено виводити "На основі аналізу...", "Ось ваше повідомлення...", "Підсумок змін:" або будь-який діалоговий контент.
86
+
2. **Простий текст**: Суворо заборонено використовувати \`\`\` (Markdown блоки коду) або ** (жирний) форматування. Виводити лише простий текст.
87
+
3. **Обмеження формату**:
88
+
Перший рядок повинен відповідати: <feat|fix|docs|style|refactor|test|build|ci|perf|chore|revert>(scope): <subject>
89
+
(scope - назва модуля, subject - короткий опис українською)
90
+
4. **Область змін**: ${diffInstruction}
91
+
5. **Генеруй тільки повідомлення**: Суворо заборонено будь-який додатковий контент перед або після commit message, як-от ввічливі підказки або процеси мислення.
92
+
93
+
### Неправильні приклади (абсо��ютно заборонено):
94
+
❌ "Добре, на основі вашого коду..."
95
+
❌ "**Аналіз змін**: Оновлено..."
96
+
❌ "...повідомлення коміту..."
97
+
❌ \`\`\`text feat(core): ... \`\`\`
98
+
99
+
### Правильний приклад:
100
+
✅ feat(auth): виправлено граничний випадок закінчення терміну дії JWT токена
101
+
102
+
Від початку виводу до кінця виводу, суворо дотримуйся цього формату:
0 commit comments