Make WordPress Core

Changeset 60314


Ignore:
Timestamp:
06/17/2025 11:16:42 PM (10 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-cleanup-pull-requests.yml

    r60110 r60314  
    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));
Note: See TracChangeset for help on using the changeset viewer.