10 ms·
"feat: Enhance Auto-Commit Bot with new features and improvements" It's definitely _a_ commit message. Not sure it beats "asdasd" or "do stuff" though.
by deivid 2y ago
"feat: Enhance Auto-Commit Bot with new features and improvements"
It's definitely _a_ commit message. Not sure it beats "asdasd" or "do stuff" though.
- Terretta 2y agodef generate_commit_message(self, diff): """ Generate a commit message using the Gemini API. """ prompt = f"Generate a concise and meaningful Git commit message for the following changes:\n\n{diff}" response = self.model.generate_content(prompt) return response.text.strip() and diff is just output of `git diff`. No context or comprehension of repo or treesitter to share code structure ... OTOH, it's an open source base and one can PR to it.
- hadat 2y agoThanks for the suggestion it was a boring afternoon so I decided to do something with gemini api so it's not something that I put much effort it