diff --git a/scripts/actions/find-stale-dashboard-prs.ts b/scripts/actions/find-stale-dashboard-prs.ts index c73f52e0aa4..d6e8df7d54e 100644 --- a/scripts/actions/find-stale-dashboard-prs.ts +++ b/scripts/actions/find-stale-dashboard-prs.ts @@ -103,6 +103,12 @@ async function findStalePRs(): Promise { continue } + // Skip closed PRs + if (pr.state === 'closed') { + console.error(`PR #${pr.number} is closed, skipping...`) + continue + } + const createdAt = new Date(pr.created_at) if (createdAt > TWENTY_FOUR_HOURS_AGO) {