CommitGPT for IntelliJ based IDEs/Android Studio.
CommitGPT is a plugin that generates your commit messages with ChatGPT. To get started, install the plugin and set OpenAI private token in plugin's settings: Settings > Tools > CommitGPT
- Generate commit message from diff using OpenAI ChatGPT API
- Compute diff only from the selected files and lines in the commit dialog
- Create your own prompt for commit message generation
- Choose your own base prompt
- Include a hint in the prompt for the AI to generate a better commit message.
You can provide a hint for the AI to generate a better commit message by
writing a sentence in the commit dialog starting with a !
.
This hint will be included in the prompt for the AI.
Note: Your custom prompt have to include {hint}
at some point in order for the hint to be included.
By default, this is the case.
You can choose your own base prompt for the AI to generate the commit message from in the settings.
Your custom prompt have to include {diffs}
, otherwise the AI will not be able to generate a commit message based on
your changes.
The prompt can also include {hint}
to include a hint in the prompt for the AI to generate a better commit message.
Note: The custom prompt will not be saved in the settings if it does not include {diffs}
.
{hint}
is optional.
IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, GoLand, DataGrip, Rider, MPS, Android Studio, DataSpell, Code With Me
Or you could install it inside your IDE:
-
For Windows & Linux: File > Settings > Plugins > Marketplace > Search for "CommitGPT" > Install Plugin > Restart IntelliJ IDEA
-
For Mac: IntelliJ IDEA > Preferences > Plugins > Marketplace > Search for "CommitGPT" > Install Plugin > Restart IntelliJ IDEA
Remember to set your OpenAI private token in plugin's settings: Settings > Tools > CommitGPT
- Download zip from releases
- Import to IntelliJ: Settings > Plugins > Cog > Install plugin from disk...
- Set OpenAI private token in plugin's settings: Settings > Tools > CommitGPT
- Star the repository
- Buy me a coffee
- Rate the plugin
- Share the plugin
Please see CHANGELOG for more information what has changed recently. This may not be complete, so please check the commit history as well.
We welcome contributions of all kinds.
If you find a bug, have a question or a feature request, please file an issue.
If you'd like to contribute code, fork the repository, make your changes and feel free to submit a pull request. Please see CONTRIBUTING for details.
- Fork from Blarc's AI Commits
- Originally inspired by Nutlope's AICommits.
- openai-kotlin for OpenAI API client.
Please see LICENSE for details.