Exemple #1
0
        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);
        }
Exemple #2
0
 public static bool HasReply(string repo, int number, GitHubAutoReplyType type)
 {
     return(GetRepliesForIssue(repo, number).Any(x => x.Type == type));
 }
Exemple #3
0
 public static bool HasReply(Issue issue, GitHubAutoReplyType type)
 {
     return(HasReply(issue.RepoSlug, issue.Number, type));
 }