Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 088ef2f

Browse files
committed
refactor: rename AICommits to CommitGPT
Update the plugin name and settings to reflect the new name CommitGPT.
1 parent dfeec3c commit 088ef2f

6 files changed

Lines changed: 27 additions & 26 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<img src="./src/main/resources/META-INF/pluginIcon.svg" width="200" height="200" alt="logo"/>
66
</a>
77
</div>
8-
<h1 align="center">AI Commits</h1>
9-
<p align="center">AI Commits for IntelliJ based IDEs/Android Studio.</p>
8+
<h1 align="center">CommitGPT</h1>
9+
<p align="center">CommitGPT for IntelliJ based IDEs/Android Studio.</p>
1010

1111
<p align="center">
1212
<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>
@@ -25,12 +25,12 @@
2525
[//]: # (- [Demo]&#40;#demo&#41;)
2626

2727
## Description
28-
AI Commits is a plugin that generates your commit messages with AI. To get started,
28+
CommitGPT is a plugin that generates your commit messages with ChatGPT. To get started,
2929
install the plugin and set OpenAI private token in plugin's settings:
30-
<kbd>Settings</kbd> > <kbd>Tools</kbd> > <kbd>AI Commits</kbd>
30+
<kbd>Settings</kbd> > <kbd>Tools</kbd> > <kbd>CommitGPT</kbd>
3131

3232
## Features
33-
- Generate commit message from diff using OpenAI API
33+
- Generate commit message from diff using OpenAI ChatGPT API
3434
- Compute diff only from the selected files and lines in the commit dialog
3535

3636
## Compatibility
@@ -44,15 +44,15 @@ IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, GoLand, Da
4444

4545
Or you could install it inside your IDE:
4646

47-
For Windows & Linux: <kbd>File</kbd> > <kbd>Settings</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "AI Commits"</kbd> > <kbd>Install Plugin</kbd> > <kbd>Restart IntelliJ IDEA</kbd>
47+
For 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>
4848

49-
For Mac: <kbd>IntelliJ IDEA</kbd> > <kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "AI Commits"</kbd> > <kbd>Install Plugin</kbd> > <kbd>Restart IntelliJ IDEA</kbd>
49+
For 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>
5050

5151

5252
### Installation from zip
53-
1. Download zip from [releases](https://github.com/Blarc/gitlab-lint-plugin/releases)
53+
1. Download zip from [releases](https://github.com/Marc-R2/ai-commits-intellij-plugin/releases)
5454
2. Import to IntelliJ: <kbd>Settings</kbd> > <kbd>Plugins</kbd> > <kbd>Cog</kbd> > <kbd>Install plugin from disk...</kbd>
55-
3. Set OpenAI private token in plugin's settings: <kbd>Settings</kbd> > <kbd>Tools</kbd> > <kbd>AI Commits</kbd>
55+
3. Set OpenAI private token in plugin's settings: <kbd>Settings</kbd> > <kbd>Tools</kbd> > <kbd>CommitGPT</kbd>
5656

5757
[//]: # (## Demo)
5858

@@ -77,6 +77,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
7777
## Acknowledgements
7878

7979
- Inspired by Nutlope's [AICommits](https://github.com/Nutlope/aicommits).
80+
- Fork from Blarc's [AI Commits](https://github.com/Blarc/ai-commits-intellij-plugin)
8081
- [openai-kotlin](https://github.com/aallam/openai-kotlin) for OpenAI API client.
8182

8283
## License

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/listeners/ApplicationStartupListener.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class ApplicationStartupListener : ProjectActivity {
1717
val settings = AppSettings.instance
1818
val version = AICommitsBundle.plugin()?.version
1919

20-
if (version == settings.lastVersion) {
21-
return
22-
}
20+
if (version == settings.lastVersion) return
2321

2422
settings.lastVersion = version
2523
if (firstTime && version != null) {

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/notifications/Notification.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data class Notification(
1313
val title: String? = null,
1414
val message: String,
1515
val actions: Set<NotificationAction> = setOf(),
16-
val type: Type = Type.PERSISTENT
16+
val type: Type = Type.TRANSIENT
1717
) {
1818
enum class Type {
1919
PERSISTENT,
@@ -27,7 +27,7 @@ data class Notification(
2727

2828
fun star() = Notification(
2929
message = """
30-
Finding Commit-GPT useful? Show your support 💖 and ⭐ the repository 🙏.
30+
Finding CommitGPT useful? Show your support 💖 and ⭐ the repository 🙏.
3131
""".trimIndent(),
3232
actions = setOf(
3333
NotificationAction.openRepository() {

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/AppSettings.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import java.util.*
2121
)
2222
class AppSettings : PersistentStateComponent<AppSettings> {
2323

24+
var lastVersion: String? = null
25+
2426
private val openAITokenTitle = "OpenAIToken"
2527
private val openAIPromptTitle = "OpenAIPrompt"
2628

@@ -85,8 +87,8 @@ class AppSettings : PersistentStateComponent<AppSettings> {
8587
fun recordHit() {
8688
hits++
8789
return
88-
if (requestSupport && (hits == 50 || hits % 100 == 0)) {
90+
/* if (requestSupport && (hits == 50 || hits % 100 == 0)) {
8991
sendNotification(Notification.star())
90-
}
92+
} */
9193
}
9294
}

src/main/resources/META-INF/plugin.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<!-- Public plugin name should be written in Title Case.
77
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
8-
<name>AI Commits</name>
8+
<name>CommitGPT</name>
99

1010
<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
1111
<vendor email="" url="https://github.com/Blarc">Blarc</vendor>
@@ -14,7 +14,7 @@
1414
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
1515
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
1616
<description><![CDATA[
17-
<p>AI Commits is a plugin that generates your commit messages with AI.</p>
17+
<p>CommitGPT is a plugin that generates your commit messages with AI.</p>
1818
<h3>Features</h3>
1919
<ul>
2020
<li>Generate commit message from diff using OpenAI API</li>
@@ -23,7 +23,7 @@
2323
<h3>Usage</h3>
2424
<p>To get started, install the plugin and set OpenAI private token in plugin's settings:
2525
<br/>
26-
Settings > Tools > AI Commits</p>
26+
Settings > Tools > CommitGPT</p>
2727
<h3>Troubleshooting</h3>
2828
<p>We'd love to hear from you if you have any issues or feature requests. Please report them
2929
<a href="https://github.com/Blarc/ai-commits-intellij-plugin/issues">here</a>.</p>
@@ -71,7 +71,7 @@
7171
<actions>
7272
<action
7373
id="AICommit.Button"
74-
text="AI Commit"
74+
text="CommitGPT"
7575
description="Create commit message with AI"
7676
icon="/icons/aiCommits15.svg"
7777
class="com.github.blarc.ai.commits.intellij.plugin.AICommitAction">

src/main/resources/messages/MyBundle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name=AI Commits
1+
name=CommitGPT
22

33
settings.title=Settings
4-
settings.general.group.title=AI Commits
4+
settings.general.group.title=CommitGPT
55
settings.openAIToken=OpenAI token
66
settings.locale=Locale
77
settings.openAITokenComment=\
@@ -17,13 +17,13 @@ action.background=Generating commit message
1717
action.error=Commit message could not be generated.
1818
action.unknown-error=Unknown error has occurred.
1919

20-
notifications.title=AI Commits
21-
notifications.welcome=Thanks for installing AI Commits <strong>{0}</strong>
20+
notifications.title=CommitGPT
21+
notifications.welcome=Thanks for installing CommitGPT <strong>{0}</strong>
2222
notifications.unsuccessful-request=Error occurred: {0}
2323
notifications.internal-server-error=Internal server error ({0}) occurred.
2424
notifications.unknown-error=Unknown error ({0}).
25-
notification.group.important.name=AI Commits important
26-
notification.group.general.name=AI Commits general
25+
notification.group.important.name=CommitGPT important
26+
notification.group.general.name=CommitGPT general
2727
notifications.empty-diff=Git diff is empty.
2828
notifications.no-field=Missing commit field
2929
notifications.unable-to-save-token=Unable to save token

0 commit comments

Comments
 (0)