jesseduffield / jesseduffield/lazygit

[Proposal] Automate Commit Messages with OpenAI

Open
#2,579 11 comments 18 reactions 0 assignees View on GitHub
discussion
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

I am a huge fan of lazygit and use it almost every day. I am wondering if there is any plans to integrate lazygit with OpenAI/ChatGPT for automatically generating commit messages? This would be a fantastic feature that could make lazygit even lazier!

My idea for implementing this feature would be:
1.Set the OpenAI token in the lazygit config file.
2.lazygit would read the stashed files and request OpenAI to generate a commit message.
3.If the commit textarea is empty, display the generated commit message in the commit textarea with dimmed hint text.
4.Press TAB to use the generated commit message.

If there hasn’t been any progress on this front, I would be honored to offer my help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.