mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github] Unlock view pull requests action
This commit is contained in:
@@ -1253,9 +1253,6 @@ hg4idea.process.ignored=true
|
||||
hg4idea.process.ignored.description=Process and highlight mercurial ignored files. \
|
||||
Switching on this option may lead to some performance problems.
|
||||
|
||||
github.pullrequests.view.enabled=false
|
||||
github.pullrequests.view.enabled.description=Enable support for viewing GitHub pull requests
|
||||
|
||||
cidr.debugger.timeout=30000
|
||||
cidr.debugger.timeout.description=GDB command timeout.\n\
|
||||
This value applies to common operations like setting breakpoints, stepping, etc.
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<action id="Github.Create.Pull.Request" class="org.jetbrains.plugins.github.GithubCreatePullRequestAction">
|
||||
<add-to-group group-id="Git.Menu"/>
|
||||
</action>
|
||||
<action id="Github.View.Pull.Request" class="org.jetbrains.plugins.github.GithubViewPullRequestsAction" internal="true">
|
||||
<action id="Github.View.Pull.Request" class="org.jetbrains.plugins.github.GithubViewPullRequestsAction">
|
||||
<add-to-group group-id="Git.Menu"/>
|
||||
</action>
|
||||
<action id="Github.Open.In.Browser" class="org.jetbrains.plugins.github.GithubOpenInBrowserActionGroup">
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.intellij.openapi.progress.PerformInBackgroundOption
|
||||
import com.intellij.openapi.progress.ProgressIndicator
|
||||
import com.intellij.openapi.progress.Task
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
import git4idea.repo.GitRemote
|
||||
import git4idea.repo.GitRepository
|
||||
import org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager
|
||||
@@ -20,9 +19,6 @@ import org.jetbrains.plugins.github.util.GithubNotifications
|
||||
import org.jetbrains.plugins.github.util.GithubUrlUtil
|
||||
|
||||
class GithubViewPullRequestsAction : AbstractGithubUrlGroupingAction("View Pull Requests", null, AllIcons.Vcs.Vendors.Github) {
|
||||
override fun isEnabledAndVisible(e: AnActionEvent): Boolean {
|
||||
return Registry.`is`("github.pullrequests.view.enabled") && super.isEnabledAndVisible(e)
|
||||
}
|
||||
|
||||
override fun actionPerformed(e: AnActionEvent,
|
||||
project: Project,
|
||||
|
||||
Reference in New Issue
Block a user