private string GetCommentForMerge(string sourceBranch, string targetBranch, IEnumerable <int> workItemIds, IEnumerable <int> changesetIds, bool isLatestVersion) { var checkInCommentChoice = _configManager.GetValue <CheckInComment>(ConfigKeys.CHECK_IN_COMMENT_OPTION); var commentFormat = _configManager.GetValue <string>(ConfigKeys.COMMENT_FORMAT); return(CommentOutputHelper.GetCheckInComment(checkInCommentChoice, commentFormat, sourceBranch, targetBranch, workItemIds, changesetIds, ShouldShowLatestVersionComment(isLatestVersion))); }
private string GetCommentForMerge(MergeModel mergeModel, IEnumerable <int> workItemIds) { var checkInCommentChoice = _configManager.GetValue <CheckInComment>(ConfigKeys.CHECK_IN_COMMENT_OPTION); var commentFormat = _configManager.GetValue <string>(ConfigKeys.COMMENT_FORMAT); var commentLineFormat = _configManager.GetValue <string>(ConfigKeys.COMMENT_LINE_FORMAT); return(CommentOutputHelper.GetCheckInComment(checkInCommentChoice, commentFormat, commentLineFormat, mergeModel.SourceBranch, mergeModel.TargetBranch, workItemIds, mergeModel.OrderedChangesets, ShouldShowLatestVersionComment(mergeModel.IsLatestVersion))); }