Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

wolfy1339
Copy link
Member

Resolves #661


Before the change?

  • When response data from GitHub is an array, the type would have an extra OctokitResponse<T, S> in the data types

After the change?

  • When response data from GitHub is an array, return an empty object in the types

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Instead of returning `T` in `GetPaginationKeys<T>`, we return an empty object, because T would be an `OctokitResponse<T, S>`, and there is no response data in the `data` field

Fixes #661
@wolfy1339 wolfy1339 added the Type: Bug Something isn't working as documented label Feb 18, 2025
Copy link
Contributor

👋 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 wolfy1339 merged commit 9a51aad into main Feb 24, 2025
8 checks passed
@wolfy1339 wolfy1339 deleted the fix-array-types branch February 24, 2025 14:01
Copy link
Contributor

🎉 This PR is included in version 11.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Regression with 11.4.2 adding & OctokitResponse<...> to return type

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.