public abstract class CommandSupport extends Object
| Constructor and Description |
|---|
CommandSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendPullRequestComment(StringBuilder builder) |
protected void |
appendPullRequestCommentArguments(StringBuilder builder)
Appends any command specific parameters
|
List<LocalRepository> |
cloneOrPullRepositories(Configuration configuration) |
protected CommandContext |
createCommandContext(LocalRepository repository,
Configuration configuration) |
String |
createPullRequestComment() |
List<LocalRepository> |
getLocalRepositories(Configuration configuration) |
protected org.kohsuke.github.GHIssue |
getOrFindIssue(CommandContext context,
org.kohsuke.github.GHRepository ghRepository) |
RepositoryConfig |
getRepositoryConfig(Configuration configuration) |
abstract void |
run(CommandContext context) |
ParentContext |
run(Configuration configuration) |
protected void |
validateConfiguration(Configuration configuration) |
public String createPullRequestComment()
protected void appendPullRequestComment(StringBuilder builder)
protected void appendPullRequestCommentArguments(StringBuilder builder)
public ParentContext run(Configuration configuration) throws IOException
IOExceptionprotected void validateConfiguration(Configuration configuration) throws IOException
IOExceptionprotected CommandContext createCommandContext(LocalRepository repository, Configuration configuration)
public abstract void run(CommandContext context) throws IOException
IOExceptionpublic List<LocalRepository> cloneOrPullRepositories(Configuration configuration) throws IOException
IOExceptionpublic List<LocalRepository> getLocalRepositories(Configuration configuration) throws IOException
IOExceptionpublic RepositoryConfig getRepositoryConfig(Configuration configuration) throws IOException
IOExceptionprotected org.kohsuke.github.GHIssue getOrFindIssue(CommandContext context, org.kohsuke.github.GHRepository ghRepository) throws IOException
IOExceptionCopyright © 2076–2017 Red Hat. All rights reserved.