Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## [Unreleased]

- Supports new versions of JetBrains IDEs.

## [0.8.0] - 2026-07-27

- Supports new versions of JetBrains IDEs.
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ pluginGroup = com.github.leondevlifelog.gitea
pluginName = Gitea
pluginRepositoryUrl = https://github.com/LeonDevLifeLog/gitea-idea-plugin
# SemVer format -> https://semver.org
pluginVersion=0.8.0
pluginVersion=0.9.0

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=242
pluginUntilBuild = 261.*
pluginUntilBuild = 262.*

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType = IC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ package com.github.leondevlifelog.gitea.listeners

import com.github.leondevlifelog.gitea.GiteaConfig
import com.github.leondevlifelog.gitea.util.GiteaNotifications
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.ide.plugins.cl.PluginAwareClassLoader
import com.intellij.ide.util.RunOnceUtil
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.ProjectActivity

class OpenProjectListener : ProjectActivity {
override suspend fun execute(project: Project) {
val gitea = PluginManagerCore.getPlugin(PluginId.getId(GiteaConfig.GITEA_PLUGIN_ID))
RunOnceUtil.runOnceForApp(GiteaConfig.GITEA_PLUGIN_ID + gitea?.version) {
val version = (OpenProjectListener::class.java.classLoader
as? PluginAwareClassLoader)?.pluginDescriptor?.version
RunOnceUtil.runOnceForApp(GiteaConfig.GITEA_PLUGIN_ID + version) {
GiteaNotifications.showStarMe(project)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.github.leondevlifelog.gitea.GiteaBundle
import com.github.leondevlifelog.gitea.authentication.accounts.GiteaAccount
import com.github.leondevlifelog.gitea.authentication.accounts.GiteaAccountManager
import com.github.leondevlifelog.gitea.ui.GiteaLoginPanel
import com.intellij.ide.IdeBundle
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
Expand Down Expand Up @@ -58,7 +57,7 @@ internal class CloneDialogLoginPanel(private val account: GiteaAccount?) :
}
private val inlineCancelPanel = simplePanel()
private val loginButton = JButton(GiteaBundle.message("clone.dialog.button.login.mnemonic"))
private val backLink = LinkLabel<Any?>(IdeBundle.message("button.back"), null).apply {
private val backLink = LinkLabel<Any?>(GiteaBundle.message("button.back"), null).apply {
verticalAlignment = SwingConstants.CENTER
}

Expand Down Expand Up @@ -111,7 +110,7 @@ internal class CloneDialogLoginPanel(private val account: GiteaAccount?) :

private fun setupNewUi(isOAuth: Boolean) {
loginButton.isVisible = !isOAuth
backLink.text = if (isOAuth) IdeBundle.message("link.cancel") else IdeBundle.message("button.back")
backLink.text = if (isOAuth) GiteaBundle.message("link.cancel") else GiteaBundle.message("button.back")

loginPanel.footer =
{ if (!isOAuth) buttonPanel() } // footer is used to put buttons in 2-nd column - align under text boxes
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/messages/GiteaBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ account.choose.not.selected=Not selected account
github.star.me=Give Gitea Plugin a star on GitHub
github.goto.star.it=Goto Star It
github.made.with.love=Made with love!!! Your star helps me a lot!!!
button.back=Back
link.cancel=Cancel
Loading