Skip to content

Commit

Permalink
chore(repo): exclude closed issues from total count in weekly report (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Apr 3, 2023
1 parent b9c901b commit f0353ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/issues-scraper/scrape-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -34,6 +33,7 @@ export async function scrapeIssues(prevDate?: Date): Promise<ReportData> {
if (bug) {
totalBugs += 1;
}
total += 1;
}

let triaged = false;
Expand Down

0 comments on commit f0353ea

Please sign in to comment.