Skip to content
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

Today, a new line of information exploded on the console. How can I eliminate it and what are the solutions? #2828

Closed
ajiho opened this issue Mar 18, 2025 · 2 comments

Comments

@ajiho
Copy link

ajiho commented Mar 18, 2025

[@octokit/request] "GET https://api.github.com/search/issues?q=repo%3Alaravel-manual%2F11.x%20%22Update%20Required%22%20in%3Atitle%20type%3Aissue&per_page=1" is deprecated. It is scheduled to be removed on Thu, 04 Sep 2025 00:00:00 GMT. See https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-searc[@octokit/request] "GET https://api.github.com/search/issues?q=repo%3Alaravel-manual%2F11.x%20%22Update%20Required%22%20in%3Atitle%20type%3Aissue&per_page=1" is deprecated. It is scheduled to be removed on Thu, 04 Sep 2025 00:00:00 GMT. See https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-searc%22%20in%3Atitle%20type%3Aissue&per_page=1" is deprecated. It is scheduled to be removed on Thu, 04 Sep 2025 00:00:00 GMT. See https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-searc:00 GMT. See https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/

The prompts that appear when using the following API

    const { data } = await this.#octokit.rest.search.issuesAndPullRequests({
      q: query,
      per_page: 1,
    })

This warning message indicates that GitHub API plans to remove the current search/issues query method on September 4, 2025. Your code called octokit. rest. search. issuesAndPullRequests(), and GitHub plans to no longer support it after that date.

How can I adjust my code if I want to achieve equivalent results?

Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@wolfy1339
Copy link
Member

wolfy1339 commented Mar 18, 2025

https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/

The deprecation warning is a bit misleading, as the endpoint itself is not getting deleted, only the functionality is having a major change.

You can use advanced search currently by setting the advanced_search query parameter to true

See also octokit/request.js#746

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

No branches or pull requests

2 participants