Specify the type of commit or input key words
Is your feature request related to a problem? Please describe.
Many of the AI's commit messages are incorrect, even for the type.
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Describe the solution you'd like
Is it possible to specify the type of commit message or key words to help Ai to generate the commit message more accurately?
Branch issue-128-Specify_the_type_of_commit_or_input_key_words created!
@xuwei152 You can try to configure a customized prompt.
/your home directory/.ai-commit/.ai-commit.json or current working directory/.ai-commit.json
{
...
"prompt": "custom",
"prompts": {
"conventional": "Here are some best practices...",
"custom": "..."
}
}
I mean feed the "type" to the AI in the prompt like the "no" to correct the generated message.
For example, the commit message shown below has a type of "refactor" but it is a type of "chore", actually. I hope to input the type "chore" to tell the AI to generate a message with a type of "chore", instead of typing "no" again and again and getting incorrect messages. Something likes chatting with the Ai bot to correct the answer. I don't think this can be achieved by configuring ".ai-commit.json".
There may be an easier way. You can add an option of "--commit-type" like insulineru/ai-commit.
@xuwei152 It's really a good idea, but I don't have time to realize it. You can realize your idea and then PR.