public class PushSourceChanges extends ModifyFilesCommandSupport
| Constructor and Description |
|---|
PushSourceChanges() |
| Modifier and Type | Method and Description |
|---|---|
protected CommandContext |
createCommandContext(LocalRepository repository,
Configuration configuration) |
protected boolean |
doProcess(CommandContext context) |
protected LocalRepository |
findLocalRepository(Configuration configuration)
Lets find the repository for the given directory so that we can extract any extra configuration like the
GitRepositoryConfig for a local repository |
String |
getCloneUrl() |
protected String |
getOperationDescription(CommandContext context) |
String |
getRef() |
LocalRepository |
getSourceRepository() |
protected List<DependencyVersionChange> |
loadVersionChangesFromSource(CommandContext context) |
void |
setCloneUrl(String cloneUrl) |
void |
setRef(String ref) |
protected void |
validateCloneUrl() |
protected void |
validateConfiguration(Configuration configuration) |
checkDependencyChanges, findPullRequest, gitCommitAndPullRequest, loadPendingChanges, prepareDirectory, processPullRequest, pushVersionChangesWithoutChecks, pushVersionsWithChecks, run, run, updatePendingChangesappendPullRequestComment, appendPullRequestCommentArguments, cloneOrPullRepositories, createPullRequestComment, getLocalRepositories, getOrFindIssue, getRepositoryConfig, runpublic String getRef()
public void setRef(String ref)
public String getCloneUrl()
public void setCloneUrl(String cloneUrl)
protected String getOperationDescription(CommandContext context)
getOperationDescription in class ModifyFilesCommandSupportprotected boolean doProcess(CommandContext context) throws IOException
doProcess in class ModifyFilesCommandSupportIOExceptionprotected void validateConfiguration(Configuration configuration) throws IOException
validateConfiguration in class CommandSupportIOExceptionprotected CommandContext createCommandContext(LocalRepository repository, Configuration configuration)
createCommandContext in class CommandSupportpublic LocalRepository getSourceRepository()
protected List<DependencyVersionChange> loadVersionChangesFromSource(CommandContext context) throws IOException
IOExceptionprotected void validateCloneUrl()
protected LocalRepository findLocalRepository(Configuration configuration) throws IOException
GitRepositoryConfig for a local repositoryconfiguration - IOExceptionCopyright © 2076–2017 Red Hat. All rights reserved.