Skip to content

Commit

Permalink
Update Github api client implementation to latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Mar 28, 2024
1 parent 3b52bf3 commit b1f487b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/Services/GitHub/GitHubApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,9 @@ public function revokeAccessToRepo(string $gitHubUsername, string $repository):
*/
public function search(string $searchString, array $parameters = []): array
{
//dd($this->client->api('search')->code('spatie'));
$searchApi = $this->client->api('search');
$searchApi->setPerPage(100);

$paginator = new ResultPager($this->client);
$paginator = new ResultPager($this->client, 100);
$parameters = array_merge([
'q' => $searchString,
], $parameters);
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ parameters:
path: app/Rules/MatchingLicense.php

-
message: "#^Call to an undefined method Github\\\\Api\\\\ApiInterface\\:\\:releases\\(\\)\\.$#"
message: "#^Call to an undefined method Github\\\\Api\\\\AbstractApi\\:\\:releases\\(\\)\\.$#"
count: 1
path: app/Services/GitHub/GitHubApi.php

0 comments on commit b1f487b

Please sign in to comment.