Skip to content

Commit 5e52496

Browse files
committed
Change committer to author
1 parent bb1faba commit 5e52496

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/VCS/Adapter/Git/GitHub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ public function getLatestCommit(string $owner, string $repositoryName, string $b
477477
!isset($response['body']['commit']['message']) ||
478478
!isset($response['body']['sha']) ||
479479
!isset($response['body']['html_url']) ||
480-
!isset($response['body']['committer']['avatar_url']) ||
481-
!isset($response['body']['committer']['html_url'])
480+
!isset($response['body']['author']['avatar_url']) ||
481+
!isset($response['body']['author']['html_url'])
482482
) {
483483
throw new Exception("Latest commit response is missing required information.");
484484
}
@@ -488,8 +488,8 @@ public function getLatestCommit(string $owner, string $repositoryName, string $b
488488
'commitMessage' => $response['body']['commit']['message'],
489489
'commitHash' => $response['body']['sha'],
490490
'commitUrl' => $response['body']['html_url'],
491-
'commitAuthorAvatar' => $response['body']['committer']['avatar_url'],
492-
'commitAuthorUrl' => $response['body']['committer']['html_url'],
491+
'commitAuthorAvatar' => $response['body']['author']['avatar_url'],
492+
'commitAuthorUrl' => $response['body']['author']['html_url'],
493493
];
494494
}
495495

0 commit comments

Comments
 (0)