File tree Expand file tree Collapse file tree 4 files changed +22
-11
lines changed
233/main/resources/META-INF Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 437
437
<add-to-group group-id =" EditorPopupMenu" anchor =" first" />
438
438
</group >
439
439
440
- <!-- <action id="autodev.Vcs.ShowGitHubIssues"-->
441
- <!-- class="cc.unitmesh.devti.actions.github.ShowGitHubIssuesAction"-->
442
- <!-- icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT" -->
443
- <!-- description="Fetch GitHub issues for AI"> -- >
440
+ <action id =" autodev.Vcs.ShowGitHubIssues"
441
+ class =" cc.unitmesh.devti.actions.github.ShowGitHubIssuesAction"
442
+ icon =" cc.unitmesh.devti.AutoDevIcons.GITHUB_ISSUE "
443
+ description =" Fetch GitHub issues for AI" >
444
444
445
- <!-- <add-to-group group-id="Vcs.MessageActionGroup"/> -- >
446
- <!-- </action> -- >
445
+ <add-to-group group-id =" Vcs.MessageActionGroup" />
446
+ </action >
447
447
448
448
<action id =" cc.unitmesh.devti.QuickAssistant"
449
449
class =" cc.unitmesh.devti.actions.quick.QuickAssistantAction"
Original file line number Diff line number Diff line change @@ -115,4 +115,7 @@ object AutoDevIcons {
115
115
116
116
@JvmField
117
117
val HISTORY : Icon = IconLoader .getIcon(" /icons/history.svg" , AutoDevIcons ::class .java)
118
+
119
+ @JvmField
120
+ val GITHUB_ISSUE : Icon = IconLoader .getIcon(" /icons/github-issue.svg" , AutoDevIcons ::class .java)
118
121
}
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
32
32
33
33
override fun update (e : AnActionEvent ) {
34
34
val project = e.project
35
- e.presentation.icon = AllIcons .Vcs .Branch
36
35
e.presentation.text = " Show GitHub Issues"
37
36
e.presentation.description = " Show and select GitHub issues from current repository"
38
37
@@ -44,7 +43,6 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
44
43
45
44
override fun actionPerformed (e : AnActionEvent ) {
46
45
val project = e.project!!
47
-
48
46
ApplicationManager .getApplication().executeOnPooledThread {
49
47
try {
50
48
val issues = fetchGitHubIssues(project)
@@ -115,11 +113,9 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
115
113
selected : Boolean ,
116
114
hasFocus : Boolean
117
115
) {
118
- // Show issue number and title
119
116
append(" #${value.issue.number} " , com.intellij.ui.SimpleTextAttributes .GRAYED_ATTRIBUTES )
120
117
append(value.issue.title)
121
-
122
- // Add labels if any
118
+
123
119
val labels = value.issue.labels.map { it.name }
124
120
if (labels.isNotEmpty()) {
125
121
append(" " )
You can’t perform that action at this time.
0 commit comments