AI generate commit title and message #109
Replies: 2 comments
-
See this note in my docs on AI-based extensions. Maybe find one that has the functionality you are looking for or add an issue there. https://github.com/MichaelCurrin/auto-commit-msg/blob/master/docs/other/ai-tools.md |
Beta Was this translation helpful? Give feedback.
-
I also created a CLI tool quickly in Python as a POC of about 100 lines. It runs against a local LLM using git diff and generates a commit message. I could share that as a tool, as least for the CLI and maybe rewrite as a new VS Code extension. SampleHere is the prompt I used System prompt
User prompt
then append git diff output. With that, you could customize that to include your style of commits that are manually entered or read from the history. (If your history is really long, you could also use a cleaning step of AI to extract the predominant style of messages and then feed the smaller result into the commit message generator. |
Beta Was this translation helpful? Give feedback.
-
Does this repo also supports AI generated commit message and title? I am thinking of a way with which a model can go through past commits tuning itself for a repo based on commit message and the changes in file to provide a better and relevant commit message with follows the format and flavors of the repo.
Beta Was this translation helpful? Give feedback.
All reactions