From bc89553068ae1bf12f217231d86303ce8fb973cf Mon Sep 17 00:00:00 2001 From: Alain Diart Date: Tue, 5 Dec 2023 09:05:30 +0100 Subject: [PATCH] fix(recipes:update): github api now requires is:pull-request parameter --- src/GithubApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GithubApi.php b/src/GithubApi.php index 60e90181f..1cfe0a9de 100644 --- a/src/GithubApi.php +++ b/src/GithubApi.php @@ -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;