-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG]: octokit.rest.search.issuesAndPullRequests()
reports that it is deprecated but no alternative seems to be provided
#2832
Comments
👋 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 |
Duplicate of #2828 Unfortunately, the deprecation is set for the whole endpoint. There isn't a way to silence it when using the The deprecation warning is a bit misleading, as the endpoint is getting a change in functionality after the deprecation date. The See also octokit/request.js#746 |
Thank you for quick response. The title of the other issue certainly misled me when I was searching for existing reports! The difficulty is the deprecation warning continues to be printed to the console, even with
|
It only prints the deprecation warning when it receives it from GitHub. Which makes me believe that the Other people have reported success using that parameter |
My reading of endpoints-to-methods.ts:withDecorations() is that the warning is always printed, before the request is sent. In endpoints-to-methods.ts:149-151: if (decorations.deprecated) {
octokit.log.warn(decorations.deprecated);
} And when I turn on request logging, I see
|
What happened?
Calling
octokit.rest.search.issuesAndPullRequests()
results in a warning:e.g.
Opening the referenced link mentions that use of the endpoint without the
advanced_search=true
parameter is deprecated. However, adding that parameter does not suppress the warning (and the endpoint remains crossed out in VS Code):Is there an alternate endpoint we should be using, or is this a bug in the deprecation of the issuesAndPullRequests endpoint?
Versions
Octokit 4.1.2 (via NPM)
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: