Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc48d17

Browse files
committed
feat(github): enable GitHub issues action with dedicated icon
- Add GITHUB_ISSUE icon to AutoDevIcons- Uncomment and activate ShowGitHubIssuesAction in plugin configuration- Remove unuse
1 parentc864bbe commitdc48d17

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

‎core/src/233/main/resources/META-INF/autodev-core.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@
437437
<add-to-groupgroup-id="EditorPopupMenu"anchor="first"/>
438438
</group>
439439

440-
<!-- <action-->
441-
<!---->
442-
<!-- icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT"-->
443-
<!-- description="Fetch GitHub issues for AI">-->
440+
<actionid="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">
444444

445-
<!-- <add-to-group group-id="Vcs.MessageActionGroup"/>-->
446-
<!-- </action>-->
445+
<add-to-groupgroup-id="Vcs.MessageActionGroup"/>
446+
</action>
447447

448448
<actionid="cc.unitmesh.devti.QuickAssistant"
449449
class="cc.unitmesh.devti.actions.quick.QuickAssistantAction"

‎core/src/main/kotlin/cc/unitmesh/devti/AutoDevIcons.kt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,7 @@ object AutoDevIcons {
115115

116116
@JvmField
117117
valHISTORY:Icon=IconLoader.getIcon("/icons/history.svg",AutoDevIcons::class.java)
118+
119+
@JvmField
120+
valGITHUB_ISSUE:Icon=IconLoader.getIcon("/icons/github-issue.svg",AutoDevIcons::class.java)
118121
}

‎core/src/main/kotlin/cc/unitmesh/devti/actions/github/ShowGitHubIssuesAction.kt‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
3232

3333
overridefunupdate(e:AnActionEvent) {
3434
val project= e.project
35-
e.presentation.icon=AllIcons.Vcs.Branch
3635
e.presentation.text="Show GitHub Issues"
3736
e.presentation.description="Show and select GitHub issues from current repository"
3837

@@ -44,7 +43,6 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
4443

4544
overridefunactionPerformed(e:AnActionEvent) {
4645
val project= e.project!!
47-
4846
ApplicationManager.getApplication().executeOnPooledThread {
4947
try {
5048
val issues= fetchGitHubIssues(project)
@@ -115,11 +113,9 @@ class ShowGitHubIssuesAction : DumbAwareAction() {
115113
selected:Boolean,
116114
hasFocus:Boolean
117115
) {
118-
// Show issue number and title
119116
append("#${value.issue.number}", com.intellij.ui.SimpleTextAttributes.GRAYED_ATTRIBUTES)
120117
append(value.issue.title)
121-
122-
// Add labels if any
118+
123119
val labels= value.issue.labels.map { it.name }
124120
if (labels.isNotEmpty()) {
125121
append("")
Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp