Skip to content

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

Fix: Updated to remove approved PRs and conflicts (#40626)

Ali Waseemc74796a63365
diff --git a/scripts/actions/find-stale-dashboard-prs.js b/scripts/actions/find-stale-dashboard-prs.js
index afd0d2efc85..e772025275a 100644
--- a/scripts/actions/find-stale-dashboard-prs.js
+++ b/scripts/actions/find-stale-dashboard-prs.js
@@ -177,6 +177,18 @@ module.exports = async ({ github, context, core }) => {
)
}
+ // Skip PRs that have already been actioned (reviewed)
+ if (reviewStatus !== 'no-reviews') {
+ console.log(`PR #${pr.number} has already been reviewed (${reviewStatus}), skipping...`)
+ continue
+ }
+
+ // Skip PRs with merge conflicts
+ if (mergeableStatus === 'conflicts') {
+ console.log(`PR #${pr.number} has merge conflicts, skipping...`)
+ continue
+ }
+
stalePRs.push({
number: pr.number,
title: pr.title,