.getRef(org.eclipse.jgit.lib.Constants.HEAD).getObjectId().getName();
MergeResult mergeResult = GitRepository.merge(clonedRepository,
cloneAndFetch.getDestFromBranchName());
if (mergeResult.getMergeStatus() == MergeResult.MergeStatus.CONFLICTING) {
pullRequestMergeResult.setGitConflicts(new GitConflicts(clonedRepository, mergeResult));
pullRequestMergeResult.setConflictStateOfPullRequest();
} else if (mergeResult.getMergeStatus().isSuccessful()) {
String mergedCommitIdTo = mergeResult.getNewHead().getName();
pullRequest.mergedCommitIdFrom = mergedCommitIdFrom;
pullRequest.mergedCommitIdTo = mergedCommitIdTo;