diff --git a/src/Resource/Async/Repository.php b/src/Resource/Async/Repository.php index f54ca40a2a..cbe32812fc 100644 --- a/src/Resource/Async/Repository.php +++ b/src/Resource/Async/Repository.php @@ -13,6 +13,7 @@ use ApiClients\Client\Github\CommandBus\Command\Repository\CommunityHealthCommand; use ApiClients\Client\Github\CommandBus\Command\Repository\Contents\FileUploadCommand; use ApiClients\Client\Github\CommandBus\Command\Repository\ContentsCommand; +use ApiClients\Client\Github\CommandBus\Command\Repository\DetailedCommitCommand; use ApiClients\Client\Github\CommandBus\Command\Repository\LabelsCommand; use ApiClients\Client\Github\CommandBus\Command\Repository\LanguagesCommand; use ApiClients\Client\Github\CommandBus\Command\Repository\RefCommand; @@ -61,6 +62,16 @@ public function commits(): ObservableInterface )); } + public function specificCommit(string $sha): PromiseInterface + { + return $this->handleCommand( + new DetailedCommitCommand( + $this->fullName(), + $sha + ) + ); + } + public function labels(): ObservableInterface { return unwrapObservableFromPromise($this->handleCommand(