private static void ApplyTeams(ITeamClassifier teamClassifier, Artifact artifact, ChangeSet changeset) { if (teamClassifier != null) { // If a classifier is given use it ... artifact.Teams.Add(teamClassifier.GetAssociatedTeam(changeset.Committer, changeset.Date)); } }
private string GetTeam(ChangeSet cs, ITeamClassifier teamClassifier) { var team = cs.Committer; if (teamClassifier != null) { team = teamClassifier.GetAssociatedTeam(cs.Committer, cs.Date); if (team == "NOT_CLASSIFIED") { Trace.WriteLine("Not classified developer: " + cs.Committer + " " + cs.Date.ToShortDateString()); _notClassifiedDevelopers.AddToValue(cs.Committer, 1); } } return(team); }