-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Merge commit ref shouldn't stay same after changing base branch for a PR #919
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
Comments
Hi, I think I'm seeing a similar problem, although in my case I'm using only 2 branches.
I would expect step 4 to evaluate again how to checkout the repository, however I noticed that it will still use the old version of Is there a way to "force" the github action |
Isn't this by design? like it would be expected from the PR owner to rebase the PR to reflect such changes. I do see there is a faster way to rebase or am I misunderstanding it? |
A rebase is not necessary in this situation and it would be the wrong way to solve the problem. |
Ah now I get it. Thanks for clarifying. Definitely, the action uses incorrect/outdated merge commit in some cases. It has been couple of months since I opened this issue. Not sure if there is a way to escalate this? |
+1 we occasionally hit this too. It can waste a lot of time to debug. |
We know that the workflows triggered via
pull_request
event uses merge commit asGITHUB_SHA
. Now I would expect that if we change the base branch (using 'edit' button on the pull request in GitHub UI) there would be a new merge commit and that should be used if I trigger the workflow. But with my testing theaction/checkout
still uses old merge commit from previous base branch. If I push any further commits everything works as expected andaction/checkout
fetches the updated merge commit.Steps to reproduce
Assuming you have workflow triggered on all
pull_request
events:foo
,bar
,foobar
foo
inbar
.bar
tofoobar
Workaround
Comments
I know it might be the limitation of the system but wanted to open the issue so more people are aware of it.
The text was updated successfully, but these errors were encountered: