fork-dev / Tracker

Bug and issue tracker for Fork for Mac
493 stars 12 forks source link

Nutlope AI Commits integration into Fork #1886

Open keenminded opened 1 year ago

keenminded commented 1 year ago

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!

DanPristupov commented 1 year ago

You can try to add it using prepare-commit-msg hook: https://github.com/fork-dev/Tracker/issues/1371#issuecomment-848650440

keenminded commented 1 year ago

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.

DanPristupov commented 1 year ago

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.

DanPristupov commented 1 year ago

Or try https://github.com/zurawiki/gptcommit

passsy commented 1 year ago

Fleet 1.9 is adding AI commit messages, too.

generate ai commit message in Fleet 1.9

james-johnston-thumbtack commented 6 months ago

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.

passsy commented 6 months ago

This has been added to IntelliJ, too. https://www.jetbrains.com/help/idea/work-with-commits.html#ai-generate-commit-messages

ai-generate-commit-messages_dark ai_generated_message_dark