[github] Unlock view pull requests action

This commit is contained in:
Ivan Semenov
2018-10-12 14:36:29 +03:00
parent 6baa293695
commit 301d1cde11
3 changed files with 1 additions and 8 deletions
@@ -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.
+1 -1
View File
@@ -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,