Skip to content

GH Actions: Update deprecated search API in reusable-cleanup-pull-requests #8740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

himanshupathak95
Copy link

@himanshupathak95 himanshupathak95 commented Apr 25, 2025

Trac ticket: https://core.trac.wordpress.org/ticket/63278

This PR updates the reusable-cleanup-pull-requests.yml workflow to use the github.rest.search.issues method instead of the deprecated github.rest.search.issuesAndPullRequests method for finding related pull requests.

The issuesAndPullRequests search method is deprecated by GitHub and scheduled for removal in September 2025. This change ensures the workflow continues to function correctly after the deprecated method is removed. The search.issues method can achieve the same results when used with the existing is:pr filter in the query.

@himanshupathak95 himanshupathak95 changed the title GH Actions: Update deprecated search API in reusable-cleanup-pull-requests. GH Actions: Update deprecated search API in reusable-cleanup-pull-requests Apr 25, 2025
@himanshupathak95 himanshupathak95 marked this pull request as ready for review April 25, 2025 09:40
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props abcd95.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant