public string GetChangesetUrl()
{
return (from ClientArtifact ca in Artifacts
where ca.ArtifactType == "Changeset"
select ca.Url).FirstOrDefault();
}
public void SendCheckinNotification(CheckinEvent checkinEvent, int roomId) { var message = string.Format("{0} checked in changeset <a href=\"{1}\">{2}</a> ({4})<br>{3}", checkinEvent.GetCommitterName(), checkinEvent.GetChangesetUrl(), checkinEvent.Number, checkinEvent.Comment.Replace("\n", "<br>"), checkinEvent.TeamProject); _hipChatClient.RoomId = roomId; _hipChatClient.SendMessage(message, HipChatClient.BackgroundColor.yellow); }