Closed chihsuan closed 1 year ago
Thanks @chihsuan ! This is an interesting proposal. I think we probably won't add it to the core of commitizen, but we could add it as a plugin.
I agree with Lee, you could have a custom cz package. Where the prompt instead of asking for the questions, it generates the commit. It's too much overhead for us. You can find the template for a new cz here: https://github.com/commitizen-tools/commitizen_cz_template
Thanks for the quick reply! @Lee-W @woile That sounds good to me. 🙂
Closing this, if you create a custom plugin do not hesitate to add it to our docs in the Third Part section
Description
Use open AI to write commit message automatically
Possible Solution
Add an option to the
commit
command to write a commitizen-style commit message using Open AI API.Additional context
There is an AI commit tool: https://github.com/Nutlope/aicommits
Additional context
Ask ChatGPT to write a Python script to write a commit message based on git diff using open API in the conventional Commits style with characters limits < 8000: