Skip to content

Commit 62491de

Browse files
committed
Bug fix
1 parent e4cbdde commit 62491de

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/VCS/Adapter/Git/GitHub.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,12 @@ public function getCommit(string $owner, string $repositoryName, string $commitH
495495
$response = $this->call(self::METHOD_GET, $url, ['Authorization' => "Bearer $this->accessToken"]);
496496

497497
$body = $response['body'] ?? [];
498+
$author = $body['author'] ?? [];
498499
$commit = $body['commit'] ?? [];
499-
$author = $commit['author'] ?? [];
500+
$commitAuthor = $commit['author'] ?? [];
500501

501502
return [
502-
'commitAuthor' => $author['name'] ?? 'Unknown',
503+
'commitAuthor' => $commitAuthor['name'] ?? 'Unknown',
503504
'commitMessage' => $commit['message'] ?? 'No message',
504505
'commitAuthorAvatar' => $author['avatar_url'] ?? '',
505506
'commitAuthorUrl' => $author['html_url'] ?? '',

0 commit comments

Comments
 (0)