Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  fix(recipes:update): github api now requires is:pull-request parameter
  • Loading branch information
fabpot committed Dec 5, 2023
2 parents ae6dea6 + f96b8bf commit 67ee785
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 67ee785

Please sign in to comment.