-
Notifications
You must be signed in to change notification settings - Fork 26
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]: total_count missing from paginated response types #652
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 |
That only affects types, the field is still there |
Thanks for looking into this!
I agree 👍🏼 I briefly got myself confused because the |
🎉 This issue has been resolved in version 11.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What happened?
In https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/src/databases/code-search-api.ts we're using
octokit.paginate.iterator(octokit.rest.search.code)
and on the response we're checkingresponse.data.total_count
. In the upgrade from21.0.2
to21.1.0
this field seems to have disappeared. It's still there in the response from GitHub (i.e. making the request with curl) but it gets deleted before it reaches our code.We're wondering if this change came from #637 but we're not sure and also check if this was an intentional effect or not. Alternatively, is there another recommended way to access the
total_count
field?Versions
@octokit/rest v21.1.0
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: