private void NewIssue()
        {
            var issue = new NewIssue(Title);

            issue.Body = Body;
            if (Assignee != null)
            {
                issue.Assignee = Assignee.Login;
            }
            if (Milestone != null)
            {
                issue.Milestone = Milestone.Number;
            }

            foreach (var label in SelectedLabels)
            {
                issue.Labels.Add(label.Name);
            }

            GitHubApi.SaveIssue(_repository, issue);

            if (_portedTfsItem != null)
            {
                // Resolve and close the TFS issue.
                GitHubApi.GetIssuesAndResolvePortedTfsIssue(_portedTfsItem, issue.Title);
            }
        }