Skip to content

Commit 1320297

Browse files
committed
Do not ping stale issues with a linked PR
1 parent 28ebde1 commit 1320297

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Api/Issue/GithubIssueApi.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public function commentOnIssue(Repository $repository, $issueNumber, string $com
8080

8181
public function findStaleIssues(Repository $repository, \DateTimeImmutable $noUpdateAfter): iterable
8282
{
83-
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']);
83+
return $this->resultPager->fetchAllLazy($this->searchApi, 'issues', [
84+
sprintf('repo:%s is:issue -label:"Keep open" -label:"Missing translations" is:open -linked:pr updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')),
85+
'updated',
86+
'desc'
87+
]);
8488
}
8589
}

0 commit comments

Comments
 (0)