From f165da0a4f90b0e274df5ff8dce1ae1c982e09cd Mon Sep 17 00:00:00 2001 From: Pablo Pettinari Date: Thu, 5 Feb 2026 20:01:00 +0100 Subject: [PATCH] fix(ci): fetch all open PRs in Netlify cleanup workflow gh pr list defaults to 30 results, causing PRs beyond the first 30 to be incorrectly identified as closed. With 61+ open PRs, this led to preview deploys being deleted for PRs that were still open. --- .github/workflows/cleanup-netlify-previews.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleanup-netlify-previews.yml b/.github/workflows/cleanup-netlify-previews.yml index 6ae195cb4bd..a1753100551 100644 --- a/.github/workflows/cleanup-netlify-previews.yml +++ b/.github/workflows/cleanup-netlify-previews.yml @@ -49,7 +49,7 @@ jobs: PREVIEW_COUNT=$(echo "$PREVIEW_DEPLOYS" | jq 'length') echo "Found $PREVIEW_COUNT preview/branch deploys" - OPEN_PRS=$(gh pr list --state open --json number --jq '.[].number') + OPEN_PRS=$(gh pr list --state open --limit 1000 --json number --jq '.[].number') REMOTE_BRANCHES=$(git branch -r | sed 's/origin\///' | tr -d ' ') echo ""