public class CommandContext extends Object
| Constructor and Description |
|---|
CommandContext(CommandContext parentContext) |
CommandContext(LocalRepository repository,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(CommandContext child) |
String |
createCommit() |
String |
createIssueTitlePrefix() |
String |
createPullRequestBody() |
String |
createPullRequestTitle() |
String |
createPullRequestTitlePrefix() |
Map<String,String> |
createStatusMap() |
File |
file(String relativePath)
Returns the relative file path within the local repo
|
protected CommandContext |
firstChild() |
List<CommandContext> |
getChildren() |
String |
getCloneUrl() |
Configuration |
getConfiguration() |
File |
getDir() |
GitPlugin |
getGit() |
org.kohsuke.github.GHIssue |
getIssue() |
CommandContext |
getParentContext() |
org.kohsuke.github.GHPullRequest |
getPullRequest() |
LocalRepository |
getRepository() |
String |
getRepositoryFullName() |
Status |
getStatus() |
Set<File> |
getUpdatedFiles() |
org.kohsuke.github.GHRepository |
gitHubRepository()
Returns the underlying github repository or null if its not a github repo
|
void |
info(org.slf4j.Logger log,
String message) |
boolean |
isUpdated()
Returns true if one or more files have been updated
|
void |
removeChild(CommandContext child)
Lets remove a child context if it wasn't applicable (to avoid generating unnecessary change comments etc
|
void |
setIssue(org.kohsuke.github.GHIssue issue) |
void |
setPullRequest(org.kohsuke.github.GHPullRequest pullRequest) |
void |
setStatus(Status status) |
void |
updatedFile(File file) |
PushVersionChangesContext |
updateVersion(Kind kind,
String name,
String version) |
void |
warn(org.slf4j.Logger log,
String message) |
void |
warn(org.slf4j.Logger log,
String message,
Throwable e) |
public CommandContext(LocalRepository repository, Configuration configuration)
public CommandContext(CommandContext parentContext)
public Configuration getConfiguration()
public CommandContext getParentContext()
public List<CommandContext> getChildren()
public LocalRepository getRepository()
public org.kohsuke.github.GHIssue getIssue()
public void setIssue(org.kohsuke.github.GHIssue issue)
public org.kohsuke.github.GHPullRequest getPullRequest()
public void setPullRequest(org.kohsuke.github.GHPullRequest pullRequest)
public String getRepositoryFullName()
public Status getStatus()
public void setStatus(Status status)
public boolean isUpdated()
public String getCloneUrl()
public File getDir()
public org.kohsuke.github.GHRepository gitHubRepository()
public void updatedFile(File file)
public GitPlugin getGit()
public PushVersionChangesContext updateVersion(Kind kind, String name, String version)
public String createPullRequestTitle()
public String createIssueTitlePrefix()
public String createPullRequestTitlePrefix()
public String createCommit()
public String createPullRequestBody()
protected void addChild(CommandContext child)
public void removeChild(CommandContext child)
protected CommandContext firstChild()
public void info(org.slf4j.Logger log,
String message)
public void warn(org.slf4j.Logger log,
String message)
Copyright © 2076–2017 Red Hat. All rights reserved.