Skip to content

Commit 6493acc

Browse files
committed
Build/Test Tools: Use issues instead of issuesAndPullRequests.
The `github.rest.search.issuesAndPullRequests()` method is deprecated and slated to be removed in September 2025. The preferred way to search for pull requests is now to use `github.rest.search.issues` in combination with the `is:pr` or `type:pr` qualifiers. Props abcd95. Fixes #63278. git-svn-id: https://develop.svn.wordpress.org/trunk@60314 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5dd29f9 commit 6493acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ ticket }`;
5858
const corePrefix = `Core-${ ticket }`;
5959
const query = `is:pr is:open repo:${ context.repo.owner }/${ context.repo.repo } in:body ${ tracTicketUrl } OR ${ corePrefix }`;
60-
const result = await github.rest.search.issuesAndPullRequests({ q: query });
60+
const result = await github.rest.search.issues({ q: query });
6161
6262
prNumbers = prNumbers.concat(result.data.items.map(pr => pr.number));
6363
}

0 commit comments

Comments
 (0)