From 3ed4a658286500c8db84a8531f5d8215aa28f8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 9 Aug 2023 23:00:04 +0200 Subject: [PATCH] Fix VCS after lib upgrade --- app/controllers/api/vcs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 587cc53f3c..b4edd0889f 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -119,7 +119,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId if (!empty($providerPullRequestId)) { $latestCommentId = \strval($github->createComment($owner, $repositoryName, $providerPullRequestId, $comment->generateComment())); } elseif (!empty($providerBranch)) { - $gitPullRequest = $github->getBranchPullRequest($owner, $repositoryName, $providerBranch); + $gitPullRequest = $github->getPullRequestFromBranch($owner, $repositoryName, $providerBranch); $providerPullRequestId = \strval($gitPullRequest['number'] ?? ''); if (!empty($providerPullRequestId)) { $latestCommentId = \strval($github->createComment($owner, $repositoryName, $providerPullRequestId, $comment->generateComment()));