@@ -453,6 +453,7 @@ public function getCommit(string $owner, string $repositoryName, string $commitH
453453 'commitAuthor ' => $ response ['body ' ]['commit ' ]['author ' ]['name ' ],
454454 'commitMessage ' => $ response ['body ' ]['commit ' ]['message ' ],
455455 'commitAuthorAvatar ' => $ response ['body ' ]['author ' ]['avatar_url ' ],
456+ 'commitAuthorUrl ' => $ response ['body ' ]['author ' ]['html_url ' ],
456457 'commitHash ' => $ response ['body ' ]['sha ' ],
457458 'commitUrl ' => $ response ['body ' ]['html_url ' ],
458459 ];
@@ -477,7 +478,8 @@ public function getLatestCommit(string $owner, string $repositoryName, string $b
477478 !isset ($ response ['body ' ]['commit ' ]['message ' ]) ||
478479 !isset ($ response ['body ' ]['sha ' ]) ||
479480 !isset ($ response ['body ' ]['html_url ' ]) ||
480- !isset ($ response ['body ' ]['author ' ]['avatar_url ' ])
481+ !isset ($ response ['body ' ]['author ' ]['avatar_url ' ]) ||
482+ !isset ($ response ['body ' ]['author ' ]['html_url ' ])
481483 ) {
482484 throw new Exception ("Latest commit response is missing required information. " );
483485 }
@@ -488,6 +490,7 @@ public function getLatestCommit(string $owner, string $repositoryName, string $b
488490 'commitHash ' => $ response ['body ' ]['sha ' ],
489491 'commitUrl ' => $ response ['body ' ]['html_url ' ],
490492 'commitAuthorAvatar ' => $ response ['body ' ]['author ' ]['avatar_url ' ],
493+ 'commitAuthorUrl ' => $ response ['body ' ]['author ' ]['html_url ' ],
491494 ];
492495 }
493496
0 commit comments