Skip to content

Commit 1ee95cf

Browse files
committed
feature #221 Do not ping stale issues with a linked PR (wouterj)
This PR was merged into the master branch. Discussion ---------- Do not ping stale issues with a linked PR Filters out issues like symfony/symfony#49927 , where a PR already exists to solve it. Commits ------- 1320297 Do not ping stale issues with a linked PR
2 parents 28ebde1 + 1320297 commit 1ee95cf

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)