Skip to content

Commit 5a5935c

Browse files
committed
fix: update commit types in config
- Add missing commit types: feat and fix - Reformat the list for better readability [Generated by Kommit]
1 parent 8e0a2b2 commit 5a5935c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

internal/llm/openai.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ func GenerateCommitMessage(model, context, diff string) (string, error) {
131131

132132
// scope
133133
prompt += "\nUsing conventional commit scopes:\n"
134+
prompt += "- use the module or package name\n"
135+
prompt += "- leave empty if the changes are not related to a specific module or package\n"
136+
prompt += "- leave empty if the changes are across multiple modules or packages\n"
134137

135138
// subject
136139
prompt += "\nUsing conventional commit message subject:\n"

internal/utils/config.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,19 @@ func GetDefaultConfig() (*Config, error) {
7575
"model": openai.ChatModelGPT4oMini,
7676
})
7777
v.SetDefault("commit", map[string]interface{}{
78-
"types": []string{"build", "chore", "ci", "docs", "style", "refactor", "perf", "test", "revert"},
78+
"types": []string{
79+
"build",
80+
"chore",
81+
"ci",
82+
"docs",
83+
"feat",
84+
"fix",
85+
"perf",
86+
"refactor",
87+
"revert",
88+
"style",
89+
"test",
90+
},
7991
"scopes": []string{},
8092
})
8193
return unmarshalConfig(v)

0 commit comments

Comments
 (0)