Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: make slack bot ignore closed pull requests (#46430)

Gildas Garcia60cad5e64289
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<StalePR[]> {
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) {