private void AddLabelsToIssueUpdate(GoogleIssue googleIssue, IssueUpdate issueUpdate) { //if there is no IssueUpdate.Labels collection, we need to create a new one... if (null == issueUpdate.Labels) { issueUpdate.Labels = new List <string>(); } if (!googleIssue.IsOpen) { issueUpdate.State = ItemState.Closed; } if (googleIssue.IsDefect) { issueUpdate.Labels.Add("bug"); } if (googleIssue.IsEnhancement) { issueUpdate.Labels.Add("enhancement"); } if (googleIssue.IsWontFix) { issueUpdate.Labels.Add("wontfix"); } if (googleIssue.IsInvalid) { issueUpdate.Labels.Add("invalid"); } }
private IssueUpdate ComposeIssueUpdate(GoogleIssue googleIssue) { var issueUpdate = new IssueUpdate(); AddLabelsToIssueUpdate(googleIssue, issueUpdate); //any other work to manipulate the update would go here... return(issueUpdate); }
private string ComposeGoogleCodeIssueUrl(GoogleIssue googleIssue) { return(string.Format(_settings.GoogleCodeIssueUrlStringFormatTemplate, googleIssue.Id)); }