Add comment explaining PR date filtering in JavaScript
Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
This commit is contained in:
@@ -307,6 +307,8 @@ function processActivityData(data) {
|
|||||||
const issues = repo.issues.nodes;
|
const issues = repo.issues.nodes;
|
||||||
|
|
||||||
// Filter PRs to only include those from the past week
|
// Filter PRs to only include those from the past week
|
||||||
|
// Note: GitHub GraphQL API doesn't support filterBy.since for pullRequests like it does for issues,
|
||||||
|
// so we filter in JavaScript instead
|
||||||
const oneWeekAgo = getOneWeekAgo();
|
const oneWeekAgo = getOneWeekAgo();
|
||||||
const pullRequests = repo.pullRequests.nodes.filter((pr) => {
|
const pullRequests = repo.pullRequests.nodes.filter((pr) => {
|
||||||
const createdAt = new Date(pr.createdAt);
|
const createdAt = new Date(pr.createdAt);
|
||||||
|
|||||||
Reference in New Issue
Block a user