Skip to content

Commit 6d9f988

Browse files
committed
feat(prompts): update default prompt with GitMoji
Co-authored-by: @ljgonzalez1
1 parent 44a6fcf commit 6d9f988

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
- Support for Azure OpenAI.
88
- Sort LLM client configurations by provider name and configuration name.
99

10+
### Changed
11+
12+
- Update default prompt for generating commit messages with GitMoji.
13+
1014
### Fixed
15+
1116
- Open AI configuration setting `organizationId` is not used when verifying configuration.
1217
- Gemini configuration settings `projectId` and `location` are not used when verifying configuration.
1318

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/prompts/DefaultPrompts.kt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,16 @@ enum class DefaultPrompts(val prompt: Prompt) {
3333
)
3434
),
3535

36-
// ✨ feat(mine): Generate objects UUIDs and start team timers on game start
36+
// author: ljgonzalez1
37+
// source: https://github.com/Blarc/ai-commits-intellij-plugin/discussions/18#discussioncomment-10718381
38+
// ✨ feat(conditions): add HpComparisonType enum and ICondition interface for unit comparison logic
3739
EMOJI(
3840
Prompt(
39-
"Emoji",
40-
"Prompt for commit message in the conventional commit convention with GitMoji convention.",
41-
"Write a clean and comprehensive commit message in the conventional commit convention. " +
42-
"I'll send you an output of 'git diff --staged' command, and you convert " +
43-
"it into a commit message. " +
44-
"Use GitMoji convention to preface the commit. " +
45-
"Do NOT add any descriptions to the commit, only commit message. " +
46-
"Use the present tense. " +
47-
"Lines must not be longer than 74 characters.\n" +
48-
"{Use this hint to improve the commit message: \$hint}\n" +
49-
"Use {locale} language to answer.\n" +
41+
"GitMoji",
42+
"Prompt for generating commit messages with GitMoji.",
43+
"Write concise commit message from 'git diff --staged' in format `[EMOJI] [TYPE](topic): " +
44+
"description in {locale}`. Use GitMoji, present tense, max 120 chars.\n" +
45+
"\n" +
5046
"{diff}",
5147
false
5248
)

0 commit comments

Comments
 (0)