コード例 #1
0
        private void UpdateIssue()
        {
            var issue = new IssueUpdate();

            issue.Title     = Title;
            issue.Body      = Body;
            issue.Assignee  = Assignee != null ? Assignee.Login : null;
            issue.Milestone = Milestone != null ? (int?)Milestone.Number : null;

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

            GitHubApi.UpdateIssue(_repository, _issueNumber, issue);
        }