From 85f1b8eaa03fbdd8b5256eb56ad4a433f442e2c3 Mon Sep 17 00:00:00 2001 From: Philip <42116482+PhilipAbed@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:00:16 +0300 Subject: [PATCH] fix(dashboard): mend app dashboard was not showing links for closed-ignored PRs (#31308) Co-authored-by: Michael Kriese --- lib/workers/repository/cache.ts | 3 +++ 1 file changed, 3 insertions(+) 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;