public static void AddReply(string repo, int number, GitHubAutoReplyType type, long commentId) { var db = ApplicationContext.Current.DatabaseContext.Database; var poco = new GitHubAutoReplyPoco { Repository = repo, Number = number, Type = (int)type, CommentId = commentId, CreateDate = DateTime.UtcNow }; db.Insert(poco); }
public static bool HasReply(string repo, int number, GitHubAutoReplyType type) { return(GetRepliesForIssue(repo, number).Any(x => x.Type == type)); }
public static bool HasReply(Issue issue, GitHubAutoReplyType type) { return(HasReply(issue.RepoSlug, issue.Number, type)); }