public string GetDeployer(DeployStatusInfo deployStatusInfo) { string deployerName; if (TryGetFromOctopus(deployStatusInfo.Environment, out deployerName) || TryGetFromTeamCity(deployStatusInfo.BuildInfo, out deployerName) || TryGetFromTrello(deployStatusInfo.BranchRelatedTrellos, out deployerName) || TryGetFromTrello(deployStatusInfo.EnvironmentTaggedTrellos, out deployerName)) return deployerName; return deployStatusInfo.Environment.DisplayName; }
public string GetDeployer(DeployStatusInfo deployStatusInfo) { return deployStatusInfo.Environment.DisplayName; }