Skip to content

Commit

Permalink
fix(recipes:update): github api now requires is:pull-request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alainsharemat authored and fabpot committed Dec 5, 2023
1 parent f1cf401 commit bc89553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GithubApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getCommitDataForPath(string $repo, string $path, string $branch)

public function getPullRequestForCommit(string $commit, string $repo): ?array
{
$data = $this->requestGitHubApi('https://api.github.com/search/issues?q='.$commit);
$data = $this->requestGitHubApi('https://api.github.com/search/issues?q='.$commit.'+is:pull-request');

if (0 === \count($data['items'])) {
return null;
Expand Down

0 comments on commit bc89553

Please sign in to comment.