-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(platform): update pr baseBranch #20811
feat(platform): update pr baseBranch #20811
Conversation
Missing the code-changes for |
Nice one @RahulGautamSingh 👏 |
There seems to be a problem. renovate/lib/workers/repository/update/pr/index.ts Lines 320 to 323 in 11b71b4
For this we will need to comapre the PR's target branch with the current base branch Below are the 2 approaches I could think of:
I tried (2) but into an issue that the targetBranch (base.ref in case of github) isn't being fecthed. Do we need some code-change to get the target-branch when we fetch PR information using API? |
Example PR info , github: I got this as PR info from Github
|
"targetBranch" is an optional field in the renovate/lib/modules/platform/types.ts Line 75 in 01a1af5
|
renovate/lib/modules/platform/github/common.ts Lines 10 to 22 in 67b076a
Adding for github for now for testing and will do the same for other platforms if found missing. |
This check will create issue for us when trying to update the targetBranch of a PR. renovate/lib/workers/repository/update/branch/index.ts Lines 201 to 205 in a3cc159
Issue explanation: Basically there are 2 cases:
We need to handle the 2 cases differently by updating the if-check. |
Yes, the question is can we tell the difference between:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
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.
just remove from review list 😁
Blocked by: #21724 |
20c99e1
to
9c6dc13
Compare
Changes
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: