diff --git a/src/GithubApi.php b/src/GithubApi.php index 9baf89966..391304cea 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;