use of org.eclipse.che.api.git.shared.MergeRequest in project che by eclipse.
the class GitServiceClientImpl method merge.
@Override
public void merge(DevMachine devMachine, ProjectConfigDto project, String commit, AsyncRequestCallback<MergeResult> callback) {
MergeRequest mergeRequest = dtoFactory.createDto(MergeRequest.class).withCommit(commit);
String url = appContext.getDevMachine().getWsAgentBaseUrl() + MERGE + "?projectPath=" + project.getPath();
asyncRequestFactory.createPostRequest(url, mergeRequest).loader(loader).header(ACCEPT, APPLICATION_JSON).send(callback);
}
use of org.eclipse.che.api.git.shared.MergeRequest in project che by eclipse.
the class GitServiceClientImpl method merge.
@Override
public Promise<MergeResult> merge(DevMachine devMachine, Path project, String commit) {
MergeRequest mergeRequest = dtoFactory.createDto(MergeRequest.class).withCommit(commit);
String url = devMachine.getWsAgentBaseUrl() + MERGE + "?projectPath=" + project;
return asyncRequestFactory.createPostRequest(url, mergeRequest).loader(loader).header(ACCEPT, APPLICATION_JSON).send(dtoUnmarshallerFactory.newUnmarshaller(MergeResult.class));
}
Aggregations