diff --git a/src/Api/Issue/GithubIssueApi.php b/src/Api/Issue/GithubIssueApi.php index 15e8484f..a2a982c7 100644 --- a/src/Api/Issue/GithubIssueApi.php +++ b/src/Api/Issue/GithubIssueApi.php @@ -80,6 +80,10 @@ public function commentOnIssue(Repository $repository, $issueNumber, string $com public function findStaleIssues(Repository $repository, \DateTimeImmutable $noUpdateAfter): iterable { - return $this->resultPager->fetchAllLazy($this->searchApi, 'issues', [sprintf('repo:%s is:issue -label:"Keep open" -label:"Missing translations" is:open updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), 'updated', 'desc']); + return $this->resultPager->fetchAllLazy($this->searchApi, 'issues', [ + sprintf('repo:%s is:issue -label:"Keep open" -label:"Missing translations" is:open -linked:pr updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), + 'updated', + 'desc' + ]); } }