private int GetResult(DateTimeOffset dateTimeOffset) { var items = FluentGitHubAPI .WithCredentials(Settings.Token) .FromRepository(Repository.Name) .WithOwner(Repository.Owner) .GetPullRequests() .WithBaseBranch(Settings.BaseBranch) .WithHead(Settings.Head) .WithState(Settings.State) .WithPageCount(Settings.PageCount) .WithPageSize(Settings.PageSize) .WithStartPage(Settings.StartPage) .GetResult(); items = ApplyCustomFilters(items.ToList()); return(items.Count); }
private int GetResult(DateTimeOffset dateTimeOffset) { var items = FluentGitHubAPI .WithCredentials(Settings.Token) .FromRepository(Repository.Name) .WithOwner(Repository.Owner) .GetIssues() .FilteredBy(Settings.FilterBy) .WithAssignee(Settings.Assignee) .WithCreator(Settings.Creator) .WithMentionedUser(Settings.MentionedUser) .WithMilestone(Settings.MentionedUser) .WithState(Settings.State) .Since(dateTimeOffset) .WithPageCount(Settings.PageCount) .WithPageSize(Settings.PageSize) .WithStartPage(Settings.StartPage) .GetResult(); items = ApplyCustomFilters(items.ToList()); return(items.Count); }