-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
refactor(platform/gitlab): fix api reponse type in createPr
fn
#32428
refactor(platform/gitlab): fix api reponse type in createPr
fn
#32428
Conversation
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.
please split test and code refactoring to separate PR so the risk for regression is much lower
createPr
fn
This comment was marked as outdated.
This comment was marked as outdated.
Pull request was converted to draft
For I have split the |
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.
blocked
createPr
fncreatePr
fn [WIP]
createPr
fn [WIP]createPr
fn
🎉 This PR is included in version 39.26.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
Use correct return type in the
createPr
function. And fix the tests + snaps accordingly.Context
Instead of using
Pr & { iid: number}
which works but is wrong cause many of the corresponding field in the actual repsonse from api has different names. Eg.source_branch
in response butsourceBranch
in typePr
.This also means that we have been saving the pr info in wrong/incorrect form in the runtime config list as well as the snaps are based on this wrong structure which is not good.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: