Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/api/metrics/prs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async function fetchPRMetrics(
const open = data.items.filter((pr) => pr.state === "open").length;
const mergedPRs = data.items.filter((pr) => pr.pull_request?.merged_at != null);
const merged = mergedPRs.length;
const closed = data.items.filter((pr) => pr.state === "closed" && pr.pull_request?.merged_at == null).length;
const closed = data.items.filter((pr) => pr.state === "closed" && pr.pull_request?.merged_at === null).length;

const avgReviewMs = mergedPRs.length > 0
? mergedPRs.reduce((sum, pr) => sum + (new Date(pr.closed_at!).getTime() - new Date(pr.created_at).getTime()), 0) / mergedPRs.length
Expand Down
2 changes: 2 additions & 0 deletions src/app/u/[username]/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,5 @@
);
}
}

.catch(err => console.error("Promise.all failed:", err));

Check failure on line 223 in src/app/u/[username]/opengraph-image.tsx

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 223 in src/app/u/[username]/opengraph-image.tsx

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 223 in src/app/u/[username]/opengraph-image.tsx

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 223 in src/app/u/[username]/opengraph-image.tsx

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
Loading