From 7b0ed03a1082e8de273c8ae7bfb1f0c16217401e Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Wed, 25 Sep 2024 12:07:32 +0200 Subject: [PATCH] Attempt to fix brain fart from https://github.com/rhyskoedijk See https://github.com/tinglesoftware/dependabot-azure-devops/pull/1354#discussion_r1774939840 --- extension/tasks/dependabotV2/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/tasks/dependabotV2/index.ts b/extension/tasks/dependabotV2/index.ts index b1ee6025..3d9a3493 100644 --- a/extension/tasks/dependabotV2/index.ts +++ b/extension/tasks/dependabotV2/index.ts @@ -112,7 +112,7 @@ async function run() { } // If there are existing pull requests, run an update job for each one; this will resolve merge conflicts and close pull requests that are no longer needed - if (existingPullRequests && existingPullRequests.keys.length > 0) { + if (existingPullRequests && Object.keys(existingPullRequests).length > 0) { if (!taskInputs.skipPullRequests) { for (const pullRequestId in existingPullRequests) { const updatePullRequestJob = DependabotJobBuilder.newUpdatePullRequestJob(