diff --git a/lib/workers/repository/cache.ts b/lib/workers/repository/cache.ts index 7f23e4e088a24f..55dc4beac8ea68 100644 --- a/lib/workers/repository/cache.ts +++ b/lib/workers/repository/cache.ts @@ -92,6 +92,9 @@ async function generateBranchCache( baseBranch, baseBranchSha, ) ?? undefined; + } else if (baseBranchSha && !branchSha && branch.prNo) { + // if branch was deleted/ PR exists and ignored + prNo = branch.prNo; } const automerge = !!branch.automerge;