Beispiel #1
0
        private bool IsOverdue(DateTimeOffset dateTime, GitHubSettings settings)
        {
            var ticks    = dateTime.UtcDateTime.GetEpochSeconds();
            var nowTicks = DateTime.UtcNow.GetEpochSeconds();

            return(nowTicks - ticks > settings.OverdueTicks);
        }
Beispiel #2
0
 private bool IsOurTeam(PullRequest pr, GitHubSettings settings)
 {
     return(settings.TeamMembers.Contains(pr.User.Login.ToLower()));
 }
Beispiel #3
0
 private bool IsPRTitleContainsLessImportantTags(Issue issue, GitHubSettings settings)
 {
     return(settings.LessImportantTags.Any(t => issue.Title.ToLower().Contains(t.ToLower())));
 }
Beispiel #4
0
 private bool IsPullRequestImportant(Issue issue, GitHubSettings settings)
 {
     return(!issue.Labels.Any(l => settings.LessImportantTags.Contains(l.Name.ToLower())) && !IsPRTitleContainsLessImportantTags(issue, settings));
 }