From 60cad5e642892c7e2ce1ffbfd47cced201eee03d Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Wed, 27 May 2026 16:15:02 +0200 Subject: [PATCH] chore: make slack bot ignore closed pull requests (#46430) ## Summary by CodeRabbit * **Bug Fixes** * Fixed the stale pull request checker to properly skip closed pull requests during processing, improving accuracy of the stale PR detection logic. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46430?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) --- scripts/actions/find-stale-dashboard-prs.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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) {