Ejemplo n.º 1
0
 public async Task postIssueComment(Issue issue, String body)
 {
     PostModel.Comment comment = new PostModel.Comment();
     comment.body = body;
     Comment response = await HttpUtil.PostCommentAsync(accessToken, issue.url + "/comments", comment);
     issue.notes.Add(response);
     issue.comments++;
 }
Ejemplo n.º 2
0
 public async Task getIssueContents(Issue issue)
 {
     await HttpUtil.GetIssueContentsAsync(accessToken, issue);
 }
Ejemplo n.º 3
0
 public async Task updateMilestone(Milestone newMilestone, Issue issue)
 {
     issue.milestone = newMilestone;
     PostModel.Issue content = (PostModel.Issue)PostModel.PostType.ConvertToPostModel(issue);
     await HttpUtil.PostIssueAsync(accessToken, issue.url, content);
 }
Ejemplo n.º 4
0
 public async Task updateAssignee(User newAssignee, Issue issue)
 {
     issue.assignee = newAssignee;
     PostModel.Issue content = (PostModel.Issue)PostModel.PostType.ConvertToPostModel(issue);
     await HttpUtil.PostIssueAsync(accessToken, issue.url, content);
 }
Ejemplo n.º 5
0
 public Issue UnpinIssue(Issue item)
 {
     if (pinnedIssues.Remove(item))
     {
         return item;
     }
     return null;
 }
Ejemplo n.º 6
0
 public void PinIssue(Issue item)
 {
     pinnedIssues.Add(item);
 }