-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat: add parseSuccessResponseBody Option #602
Conversation
The type updates for the function need to made in That can be handled later when this is greenlit |
Ok i modified it. Now test coverage is not 100% but i would add corresponding unit tests, if you say, this is the way to go. |
Tbh i am not that happy about the name parseResponse. Maybe call it parseResponseBody or parseResponseData? |
Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com>
Agree, that's better. We could even make it more explicit and call it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blub
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
In the whole code base it is response.data. |
That is handled by https://github.com/octokit/request.js/pull/599/files#r1256484656 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now!
@Uzlopak Can you confirm the change works for your usecase? To test you can run npm run build
and then import { request }
from the pkg/
folder
I pushed the update to |
@wolfy1339 |
🎉 This PR is included in version 8.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@Uzlopak thank you for seeing this through. I'm sorry I closed #601 prematurely, that was wrong the wrong call. I'm glad you didn't give up on it, the resulting pull request turned out really great and it unlocked a use case I thought we couldn't really cover without adding a lot of complexity to the core functionality of Octokit. Thank you 💐 |
Thank you for your kind words. :) |
This is currently more a poc than the final implementation.
Resolves #601
Behavior
Before the change?
After the change?
Other information
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: Bug
Type: Feature
Type: Documentation
Type: Maintenance