mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
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 --> [](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:
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) {
|
||||
|
||||
Reference in new issue
Block a user