internal RebaseResult(RebaseStatus status, long stepNumber, long totalSteps, RebaseStepInfo currentStepInfo) { Status = status; CompletedStepCount = stepNumber; TotalStepCount = totalSteps; CurrentStepInfo = currentStepInfo; }
/// <summary> /// Build string based on failure reason /// </summary> /// <param name="status"></param> /// <returns></returns> private static string GetFailureReason(RebaseStatus status) { switch (status) { case RebaseStatus.FailedToFindSourceBranch: return("Failed to find source branch for Jira reference."); case RebaseStatus.FailedToFindTargetBranch: return("Failed to find target branch for Jira reference."); default: return("Failed to rebase and merge pull request."); } }