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 patch through cli instead of httpd Signed-off-by: stelios maurommatakis <[email protected]>
- Loading branch information
1 parent
d426dc5
commit a2493d9
Showing
8 changed files
with
114 additions
and
48 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...ain/java/network/radicle/jetbrains/radiclejetbrainsplugin/actions/rad/RadPatchCreate.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,29 @@ | ||
package network.radicle.jetbrains.radiclejetbrainsplugin.actions.rad; | ||
|
||
import com.intellij.execution.process.ProcessOutput; | ||
import git4idea.repo.GitRepository; | ||
import network.radicle.jetbrains.radiclejetbrainsplugin.services.RadicleProjectService; | ||
|
||
public class RadPatchCreate extends RadAction { | ||
private final String title; | ||
private final String description; | ||
private final String branch; | ||
|
||
public RadPatchCreate(GitRepository repo, String title, String description, String branch) { | ||
super(repo); | ||
this.title = title; | ||
this.description = description; | ||
this.branch = branch; | ||
} | ||
|
||
@Override | ||
public ProcessOutput run() { | ||
var rad = project.getService(RadicleProjectService.class); | ||
return rad.createPatch(repo, title, description, branch); | ||
} | ||
|
||
@Override | ||
public String getActionName() { | ||
return null; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -26,6 +26,6 @@ public ProcessOutput run() { | |
|
||
@Override | ||
public String getActionName() { | ||
return "Label"; | ||
return ""; | ||
} | ||
} |
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