generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create issue through cli instead of httpd Signed-off-by: stelios maurommatakis <[email protected]>
- Loading branch information
1 parent
8624b51
commit e8df735
Showing
13 changed files
with
110 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ain/java/network/radicle/jetbrains/radiclejetbrainsplugin/actions/rad/RadIssueCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package network.radicle.jetbrains.radiclejetbrainsplugin.actions.rad; | ||
|
||
import com.intellij.execution.process.ProcessOutput; | ||
import git4idea.repo.GitRepository; | ||
import network.radicle.jetbrains.radiclejetbrainsplugin.services.RadicleProjectService; | ||
|
||
import java.util.List; | ||
|
||
public class RadIssueCreate extends RadAction { | ||
private final String title; | ||
private final String description; | ||
private final List<String> assignees; | ||
private final List<String> labels; | ||
|
||
public RadIssueCreate(GitRepository repo, String title, String description, List<String> assignees, List<String> labels) { | ||
super(repo); | ||
this.title = title; | ||
this.description = description; | ||
this.assignees = assignees; | ||
this.labels = labels; | ||
} | ||
|
||
@Override | ||
public ProcessOutput run() { | ||
var rad = project.getService(RadicleProjectService.class); | ||
return rad.createIssue(repo, title, description, assignees, labels); | ||
} | ||
|
||
@Override | ||
public String getActionName() { | ||
return null; | ||
} | ||
|
||
public boolean shouldUnlockIdentity() { | ||
return true; | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
...in/java/network/radicle/jetbrains/radiclejetbrainsplugin/commands/LinuxScriptCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...etwork/radicle/jetbrains/radiclejetbrainsplugin/commands/RadicleScriptCommandFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
package network.radicle.jetbrains.radiclejetbrainsplugin.commands; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.intellij.openapi.util.SystemInfo; | ||
import network.radicle.jetbrains.radiclejetbrainsplugin.services.RadicleProjectService; | ||
|
||
import java.util.List; | ||
|
||
public class RadicleScriptCommandFactory { | ||
public static RadicleScriptCommand create(String workDir, String exePath, String radHome, List<String> args, | ||
RadicleProjectService service) { | ||
RadicleProjectService service, Project project) { | ||
if (SystemInfo.isWindows) { | ||
return new WindowsScriptCommand(service, workDir, exePath, radHome, args); | ||
return new WindowsScriptCommand(service, workDir, exePath, radHome, args, project); | ||
} else { | ||
return new LinuxScriptCommand(workDir, exePath, radHome, args); | ||
return new LinuxScriptCommand(workDir, exePath, radHome, args, project); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters