Skip to content

Commit d1a4644

Browse files
committed
Build/Test Tools: Use the correct syntax for a .filter().
Follow up to [61100]. Props peterwilsoncc. Fixes #64175. git-svn-id: https://develop.svn.wordpress.org/trunk@61101 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7647246 commit d1a4644

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/reusable-cleanup-pull-requests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ jobs:
7777
7878
// Since search queries will match anywhere for any activity on a pull request, the body specifically needs to be manually checked.
7979
const matchingPRs = result.search.nodes
80-
.filter(
80+
.filter(pr => {
8181
const bodyLower = pr.bodyText.toLowerCase();
82-
pr => pr.bodyText.includes(tracTicketUrl) || pr.bodyText.includes(corePrefix)
83-
)
84-
.map(pr => pr.number);
82+
83+
return bodyLower.includes(tracTicketUrl.toLowerCase()) || bodyLower.includes(corePrefix.toLowerCase());
84+
}).map(pr => pr.number);
8585
8686
prNumbers.push(...matchingPRs);
8787
}

0 commit comments

Comments
 (0)