1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Fix VCS after lib upgrade

This commit is contained in:
Matej Bačo 2023-08-09 23:00:04 +02:00
parent 6abe8a5792
commit 3ed4a65828

View file

@ -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()));