Show HN: Script to Auto-Generate Commit Messages with AI (github.com)
The goal is to integrate the capabilities of OpenAI's GPT-3 model into the Git commit process. The tool inspects the staged changes and auto-generates descriptive commit messages which can be used as template for the commit command.
3 comments
[ 4.1 ms ] story [ 16.4 ms ] threadGood point about making the AI more aware of conventional commits. In fact, sometimes the AI tends to follow a more conventional commit style, sometimes not. But there is an option to add specific instructions, like adhering to conventional commits or any custom guidline, but anyway, its still in progress ;-) And I usually manually the generated commit messages to fit in a specific context.
One of the challenges I've noticed is that the AI sometimes struggles to distinguish between formatting and actual code changes. So, to address this, I usually also provide additional instructions or make manual adjustments.
Here's where the commit message prompt is: https://github.com/gsuuon/llm.nvim/blob/2d771cc882ad9edd8011...