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
Contains prompt templates and message configurations. **Safe to share in dotfiles and Git.**
118
103
104
+
```yaml
105
+
language: English # commit message language (e.g., "English", "Arabic", "Korean")
106
+
system_message: "You are a helpful assistant that generates git commit messages, and pull request titles."
107
+
commit_message_template: "Based on the following git diff, generate 10 conventional commit messages. Each message should be on a new line, without any numbering or bullet points:\n\n%s"
108
+
pr_title_template: "Based on the following git diff, generate 10 pull request title suggestions. Each title should be on a new line, without any numbering or bullet points:\n\n%s"
109
+
```
110
+
119
111
### Per-Repository Configuration
120
112
121
113
You can override the prompt configuration on a per-repository basis by creating a `.lazycommit.prompts.yaml` file in the root of your git repository. This is useful for projects that require different languages or commit message formats.
122
114
115
+
If a field is missing in your repository-local configuration, the value from the global configuration will be used.
116
+
123
117
Example `.lazycommit.prompts.yaml` for a Korean project:
124
118
```yaml
125
-
language: ko
119
+
language: Korean
126
120
commit_message_template: "Based on the following git diff, generate 5 conventional commit messages in Korean:\n\n%s"
127
121
```
128
122
@@ -170,12 +164,14 @@ providers:
170
164
171
165
### Language Configuration
172
166
173
-
lazycommit supports generating commit messages in different languages. Set the `language` field in your config:
167
+
lazycommit supports generating commit messages in any language. Set the `language` field in your prompt config (`.lazycommit.prompts.yaml`):
174
168
175
169
```yaml
176
-
language: es # Spanish
170
+
language: Spanish
171
+
# or
172
+
language: Arabic
177
173
# or
178
-
language: en # English (default)
174
+
language: English # (default)
179
175
```
180
176
181
177
You can also configure it interactively:
@@ -186,10 +182,6 @@ lazycommit config set # Select language in the interactive menu
186
182
187
183
The language setting automatically instructs the AI to generate commit messages in the specified language, regardless of the provider used.
188
184
189
-
**Supported languages:**
190
-
- `en`- English (default)
191
-
- `es`- Spanish (Español)
192
-
193
185
## Integration with TUI Git clients
194
186
195
187
Because `lazycommit commit` prints plain lines, it plugs nicely into menu UIs.
0 commit comments