Пример #1
0
 private static async Task MarkToDo(IssueHelper helper, Issue issue, IUser user)
 {
     await helper.UpdateIssue(
         issue,
         new IssueUpdateArgs
     {
         Status = IssueStatus.ToDo.ToString()
     }
         );
 }
Пример #2
0
 private static async Task ClaimIssue(IssueHelper helper, Issue issue, IUser user)
 {
     await helper.UpdateIssue(
         issue,
         new IssueUpdateArgs
     {
         Assignee = user
     }
         );
 }
Пример #3
0
 private static async Task DecreasePriority(IssueHelper helper, Issue issue, IUser user)
 {
     if (issue.Priority == IssuePriority.Low)
     {
         return;
     }
     await helper.UpdateIssue(
         issue,
         new IssueUpdateArgs
     {
         Priority = (issue.Priority - 1).ToString()
     }
         );
 }
Пример #4
0
 private static async Task UnclaimIssue(IssueHelper helper, Issue issue, IUser user)
 {
     if (issue.Assignee != user.Id)
     {
         return;
     }
     await helper.UpdateIssue(
         issue,
         new IssueUpdateArgs
     {
         Assignee = IssueUpdateArgs.NoUser
     }
         );
 }
 public IssueConfirmationHelper(BugBotDataContext dataStore, IssueHelper helper)
 {
     this.dataStore = dataStore;
     this.helper    = helper;
 }
Пример #6
0
 private static async Task EscalateToGithub(IssueHelper helper, Issue issue, IUser user)
 {
     await user.SendMessageAsync("That feature isn't implemented yet");
 }