Skip to content

Commit 67ee785

Browse files
committed
Merge branch '1.x' into 2.x
* 1.x: fix(recipes:update): github api now requires is:pull-request parameter
2 parents ae6dea6 + f96b8bf commit 67ee785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GithubApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getCommitDataForPath(string $repo, string $path, string $branch)
128128

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

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

0 commit comments

Comments
 (0)