string FormatErrors(string repoName, ValidationErrors validationErrors) { var maxNumIssuesToShow = 10; var sb = new StringBuilder(); sb.AppendLine("The following issues for " + repoName + " needs attention"); foreach (var error in validationErrors.Take(maxNumIssuesToShow)) //nsb is to big for now { sb.AppendLine($"{error.Issue.HtmlUrl} - {error.Reason}"); } if (validationErrors.Count() > maxNumIssuesToShow) { sb.AppendLine($"There are {validationErrors.Count() - maxNumIssuesToShow} more issues as well. I'll soon be able to show you them using: `pbot check repo {repoName} detailed`"); } sb.AppendLine("Unsure how to go about doing this? Please read more here: https://github.com/Particular/Housekeeping/wiki/Issue-management"); return sb.ToString(); }