chore(repo): exclude closed issues from total count in weekly report (#16070)

This commit is contained in:
Craigory Coppola 2023-04-03 13:26:50 -04:00 committed by GitHub
parent b9c901b58e
commit f0353ea19c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,6 @@ export async function scrapeIssues(prevDate?: Date): Promise<ReportData> {
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<ReportData> {
if (bug) {
totalBugs += 1;
}
total += 1;
}
let triaged = false;