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
docs(config): Add commit type prompt in ai-commit.php
- Added a new configuration option 'type_prompt' to provide commit type prompts.
- This new feature enhances the commit message structure by prompting the user to specify the commit type.
Copy file name to clipboardExpand all lines: config/ai-commit.php
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,15 @@
46
46
// The mark of diff.
47
47
'diff_mark' => '<diff>',
48
48
49
+
// The mark of type.
50
+
'type_mark' => '<type>',
51
+
52
+
// The mark of type prompt.
53
+
'type_prompt_mark' => '<type-prompt>',
54
+
55
+
// The type prompt.
56
+
'type_prompt' => '- Use commit type `%s`.',
57
+
49
58
// Enable or disable git commit `--no-edit` option.
50
59
'no_edit' => false,
51
60
@@ -184,6 +193,7 @@
184
193
- The details about what was done in the body of the message.
185
194
- Any useful details concerning the change in the body of the message.
186
195
- Use a hyphen (-) for the bullet points in the body of the message.
196
+
<type-prompt>
187
197
Write 1 commit messages that accurately summarizes the changes made in the given `git diff` output, following the best practices listed above and the conventional commit format.
188
198
Please provide a response in the form of a valid JSON object and do not include "Output:", "Response:" or anything similar to those two before it, in the following format:
0 commit comments