public class RepositoryHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryHelper.CommandResult |
Modifier and Type | Field and Description |
---|---|
static String |
COMMIT_MESSAGE_CORE |
static String |
JIRA_ISSUE_KEY |
static String |
JIRA_PROJECT_KEY |
Modifier and Type | Method and Description |
---|---|
static void |
assertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult) |
static String |
getCommitComment() |
static String |
getCommitComment(String issueKey) |
static RepositoryHelper.CommandResult |
runCommand(File dir,
String... args) |
static RepositoryHelper.CommandResult |
runCommand(Path dir,
String... args) |
static RepositoryHelper.CommandResult |
runCommandExplosively(File cwd,
String... args) |
static void |
touchFile(File fileToTouch) |
static void |
touchFile(Path fileToTouch) |
public static final String JIRA_PROJECT_KEY
public static final String JIRA_ISSUE_KEY
public static final String COMMIT_MESSAGE_CORE
public static String getCommitComment()
public static void touchFile(File fileToTouch) throws IOException
IOException
public static void touchFile(Path fileToTouch) throws IOException
IOException
@NotNull public static RepositoryHelper.CommandResult runCommand(Path dir, String... args) throws IOException, InterruptedException
IOException
InterruptedException
@NotNull public static RepositoryHelper.CommandResult runCommand(File dir, String... args) throws IOException, InterruptedException
IOException
InterruptedException
@NotNull public static RepositoryHelper.CommandResult runCommandExplosively(File cwd, String... args) throws IOException, InterruptedException
IOException
InterruptedException
public static void assertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.