private static void SetCheckinInfo(IBuildDetail buildDetail, bool applyBuildQuality, BuildStatus result, BuildStatusEnum buildQuality, MyTfsBuildDefinition buildDefinition) { var checkinInfoGetterService = new CheckinInfoGetterService(); var checkinInfo = checkinInfoGetterService.GetCheckinInfo(buildDetail, result, buildDefinition); if (checkinInfo != null) { result.Comment = checkinInfo.Comment; result.RequestedBy = checkinInfo.Committer; } if (applyBuildQuality && buildQuality == BuildStatusEnum.Broken) { result.Comment = "Build deployment or test failure. Please see test server or test results for details.\n" + result.Comment; } }