Skip to content

Commit eb99fbf

Browse files
author
ityaozm@gmail.com
committed
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.
1 parent 84e7c4f commit eb99fbf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/ai-commit.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@
4646
// The mark of diff.
4747
'diff_mark' => '<diff>',
4848

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+
4958
// Enable or disable git commit `--no-edit` option.
5059
'no_edit' => false,
5160

@@ -184,6 +193,7 @@
184193
- The details about what was done in the body of the message.
185194
- Any useful details concerning the change in the body of the message.
186195
- Use a hyphen (-) for the bullet points in the body of the message.
196+
<type-prompt>
187197
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.
188198
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:
189199
{

0 commit comments

Comments
 (0)