99<p align =" center " >CommitGPT for IntelliJ based IDEs/Android Studio.</p >
1010
1111<p align =" center " >
12- <a href =" https://actions-badge.atrox.dev/blarc/ai-commits-intellij-plugin/goto?ref=main " ><img alt =" Build Status " src =" https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fblarc%2Fai-commits-intellij-plugin%2Fbadge%3Fref%3Dmain&style=popout-square " /></a >
12+ <a href =" https://github.com/Marc-R2/ai-commits-intellij-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/Marc-R2/ai-commits-intellij-plugin/actions/workflows/build.yml " ><img alt =" Build Status " src =" https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fblarc%2Fai-commits-intellij-plugin%2Fbadge%3Fref%3Dmain&style=popout-square " /></a >
13+ <!--
1314<a href="https://plugins.jetbrains.com/plugin/21335-ai-commits"><img src="https://img.shields.io/jetbrains/plugin/r/stars/21335?style=flat-square"></a>
1415<a href="https://plugins.jetbrains.com/plugin/21335-ai-commits"><img src="https://img.shields.io/jetbrains/plugin/d/21335-ai-commits.svg?style=flat-square"></a>
1516<a href="https://plugins.jetbrains.com/plugin/21335-ai-commits"><img src="https://img.shields.io/jetbrains/plugin/v/21335-ai-commits.svg?style=flat-square"></a>
17+ -->
1618</p >
1719<br >
1820
1921- [ Description] ( #description )
2022- [ Features] ( #features )
23+ - [ Hint for the AI] ( #hint-the-ai )
24+ - [ Custom prompt] ( #custom-prompt )
2125- [ Compatibility] ( #compatibility )
2226- [ Install] ( #install )
2327- [ Installation from zip] ( #installation-from-zip )
@@ -32,12 +36,33 @@ install the plugin and set OpenAI private token in plugin's settings:
3236## Features
3337- Generate commit message from diff using OpenAI ChatGPT API
3438- Compute diff only from the selected files and lines in the commit dialog
39+ - Choose your own base prompt
40+ - Include a hint in the prompt for the AI to generate a better commit message.
41+
42+ ## Hint the AI
43+ You can provide a hint for the AI to generate a better commit message by
44+ writing a sentence in the commit dialog starting with a ` ! ` .
45+
46+ This hint will be included in the prompt for the AI.
47+
48+ * Note:* Your custom prompt have to include ` {hint} ` at some point in order for the hint to be included.
49+ By default, this is the case.
50+
51+ ## Custom prompt
52+ You can choose your own base prompt for the AI to generate the commit message from in the settings.
53+
54+ Your custom prompt have to include ` {diffs} ` , otherwise the AI will not be able to generate a commit message based on your changes.
55+ The prompt can also include ` {hint} ` to include a hint in the prompt for the AI to generate a better commit message.
56+
57+ * Note:* The custom prompt will not be saved in the settings if it does not include ` {diffs} ` .
58+ ` {hint} ` is optional.
3559
3660## Compatibility
3761IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, GoLand, DataGrip, Rider, MPS, Android Studio, DataSpell, Code With Me
3862
3963## Install
4064
65+ <!--
4166<a href="https://plugins.jetbrains.com/embeddable/install/21335">
4267<img src="https://user-images.githubusercontent.com/12044174/123105697-94066100-d46a-11eb-9832-338cdf4e0612.png" width="300"/>
4368</a>
@@ -47,7 +72,10 @@ Or you could install it inside your IDE:
4772For Windows & Linux: <kbd>File</kbd> > <kbd>Settings</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "CommitGPT"</kbd> > <kbd>Install Plugin</kbd> > <kbd>Restart IntelliJ IDEA</kbd>
4873
4974For Mac: <kbd>IntelliJ IDEA</kbd> > <kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "CommitGPT"</kbd> > <kbd>Install Plugin</kbd> > <kbd>Restart IntelliJ IDEA</kbd>
75+ -->
5076
77+ Install from JetBrains Marketplace is currently not available for this fork.
78+ Please use the installation from zip method below.
5179
5280### Installation from zip
53811 . Download zip from [ releases] ( https://github.com/Marc-R2/ai-commits-intellij-plugin/releases )
@@ -62,22 +90,30 @@ For Mac: <kbd>IntelliJ IDEA</kbd> > <kbd>Preferences</kbd> > <kbd>Plugins</kbd>
6290## Support
6391
6492* Star the repository
65- * [ Buy me a coffee] ( https://ko-fi.com/blarc )
66- * [ Rate the plugin] ( https://plugins.jetbrains.com/plugin/21335-ai-commits )
93+ * [ Buy me a coffee] ( https://ko-fi.com/marcr2 )
94+ <!--
95+ * [Rate the original plugin](https://plugins.jetbrains.com/plugin/21335-ai-commits)
6796* [Share the plugin](https://plugins.jetbrains.com/plugin/21335-ai-commits)
97+ -->
6898
6999## Change log
70100
71101Please see [ CHANGELOG] ( CHANGELOG.md ) for more information what has changed recently.
102+ This may not be complete, so please check the [ commit history] ( https://github.com/Marc-R2/ai-commits-intellij-plugin/commits )
72103
73104## Contributing
74105
106+ We welcome contributions of all kinds.
107+
108+ If you find a bug, have a question or a feature request, please file an issue.
109+
110+ If you'd like to contribute code, fork the repository, make your changes and feel free to submit a pull request.
75111Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
76112
77113## Acknowledgements
78114
79- - Inspired by Nutlope's [ AICommits] ( https://github.com/Nutlope/aicommits ) .
80115- Fork from Blarc's [ AI Commits] ( https://github.com/Blarc/ai-commits-intellij-plugin )
116+ - Originally inspired by Nutlope's [ AICommits] ( https://github.com/Nutlope/aicommits ) .
81117- [ openai-kotlin] ( https://github.com/aallam/openai-kotlin ) for OpenAI API client.
82118
83119## License
0 commit comments