From f0353ea19c84aecf2881bd5c8944f1c4ca9d7325 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Mon, 3 Apr 2023 13:26:50 -0400 Subject: [PATCH] chore(repo): exclude closed issues from total count in weekly report (#16070) --- scripts/issues-scraper/scrape-issues.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/issues-scraper/scrape-issues.ts b/scripts/issues-scraper/scrape-issues.ts index a091d799a660c..a552f807949c4 100644 --- a/scripts/issues-scraper/scrape-issues.ts +++ b/scripts/issues-scraper/scrape-issues.ts @@ -16,7 +16,6 @@ export async function scrapeIssues(prevDate?: Date): Promise { for await (const { data: slice } of issues) { // ignore PRs const issueSlice = slice.filter((x) => !('pull_request' in x)); - total += issueSlice.length; for (const issue of issueSlice) { if (!(typeof issue === 'string')) { const bug = issue.labels.some( @@ -34,6 +33,7 @@ export async function scrapeIssues(prevDate?: Date): Promise { if (bug) { totalBugs += 1; } + total += 1; } let triaged = false;