From 5de6b57689e24d938c3720a22f08675bfa3d5f45 Mon Sep 17 00:00:00 2001 From: David Straub Date: Tue, 16 Jan 2024 10:17:49 -0500 Subject: [PATCH] perf(platform/github): fetch PR from cache in reattemptPlatformAutomerge Co-authored-by: Michael Kriese --- lib/modules/platform/github/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/modules/platform/github/index.ts b/lib/modules/platform/github/index.ts index 97008652d12043..0b27b89dccaef7 100644 --- a/lib/modules/platform/github/index.ts +++ b/lib/modules/platform/github/index.ts @@ -1737,10 +1737,7 @@ export async function reattemptPlatformAutomerge({ platformOptions, }: ReattemptPlatformAutomergeConfig): Promise { try { - const { body: ghPr } = await githubApi.getJson( - `repos/${config.parentRepo ?? config.repository}/pulls/${prNo}`, - ); - const result = coerceRestPr(ghPr); + const result = getPr(prNo); const { number, node_id } = result; await tryPrAutomerge(number, node_id, platformOptions);