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

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## 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_stack_entry_start -->

[![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)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Gildas Garcia authored and GitHub committed 2026-05-27 16:15:02 +02:00
1 parent cc6378b732
commit 60cad5e642
1 file changed
+6
@@ -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) {