public class CompositeCommand extends CommandSupport
| Constructor and Description |
|---|
CompositeCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(CommandSupport command) |
protected void |
appendPullRequestComment(StringBuilder builder) |
String |
createPullRequestComment()
Creates the updatebot command that we add as a comment so that we can re-run the commands later on for rebasing
|
List<CommandSupport> |
getCommands()
Returns the commands in this set
|
void |
run(CommandContext originalContext) |
void |
run(CommandContext context,
org.kohsuke.github.GHRepository ghRepository,
org.kohsuke.github.GHPullRequest pullRequest)
Invoked from a polling/update command
|
appendPullRequestCommentArguments, cloneOrPullRepositories, createCommandContext, getLocalRepositories, getOrFindIssue, getRepositoryConfig, run, validateConfigurationprotected void appendPullRequestComment(StringBuilder builder)
appendPullRequestComment in class CommandSupportpublic String createPullRequestComment()
createPullRequestComment in class CommandSupportpublic void run(CommandContext originalContext) throws IOException
run in class CommandSupportIOExceptionpublic void run(CommandContext context, org.kohsuke.github.GHRepository ghRepository, org.kohsuke.github.GHPullRequest pullRequest) throws IOException
IOExceptionpublic List<CommandSupport> getCommands()
public void addCommand(CommandSupport command)
Copyright © 2076–2017 Red Hat. All rights reserved.