$sha, 'page' => $page ]; $options['query'] = $this->removeNullValues($options['query']); $response = $this->client->request(self::BASE_URI . '/' . $owner . '/' . $repositoryName . '/commits', 'GET', $options); return \GuzzleHttp\json_decode($response->getBody(), true); } /** * @param string $owner * @param string $repositoryName * @param string $ref * @param int|null $page * @return array */ public function getCommitStatuses(string $owner, string $repositoryName, string $ref, int $page = null): array { $options['query'] = [ 'page' => $page ]; $options['query'] = $this->removeNullValues($options['query']); $response = $this->client->request(self::BASE_URI . '/' . $owner . '/' . $repositoryName . '/commits/' . $ref . '/statuses', 'GET', $options); return \GuzzleHttp\json_decode($response->getBody(), true); } }