Open keenminded opened 1 year ago
You can try to add it using prepare-commit-msg
hook: https://github.com/fork-dev/Tracker/issues/1371#issuecomment-848650440
I am trying to get it to work as we speak. AI Commits has its own prepare-commit-msg
hook integration (https://github.com/Nutlope/aicommits#git-hook), but it works by opening a configured git editor if no commit message was provided, so that the author can edit the AI output prior to committing it. I am trying to see if it would work on an existing project I have just installed this hook on.
Ask the author to make it work in non-virtual mode and to output to a file or stdout similar to https://git-scm.com/docs/git-format-patch.
For example aicommand --output-file=.git/COMMITMESSAGE
and aicommand --stdout
.
I would also be interested in seeing some form of OpenAI integration, ideally built into the Fork commit message text editor with some form of tab completion.
I recently started using GitHub Copilot with IntelliJ, and it's surprisingly good at coming up with documentation comments in my code. So I wouldn't be surprised if it can do a reasonable job at summarizing a commit.
This has been added to IntelliJ, too. https://www.jetbrains.com/help/idea/work-with-commits.html#ai-generate-commit-messages
Hello, Dan and Tanya!
Thank you for creating Fork. I was wondering if there was a way to integrate https://github.com/Nutlope/aicommits into Fork? With 5.1K stars it would make it quicker and simpler to write commit messages using OpenAI.
Thank you for the consideration, and all the best!