Can not merge pull requests after approval due to The merge-base changed after approval. #58535
Replies: 50 comments 26 replies
-
I ran into the same problem. In my case I had issued the pull request and requested a review from someone, then before they got to it I pushed a new commit removing some commented code. It seems to be related to these security enhancement changes: https://github.blog/changelog/2023-06-06-security-enhancements-to-required-approvals-on-pull-requests/. Since I am an org owner I was able to look at the branch protection settings and saw the setting in the image below. After I deselected this setting my reviewer was able to approve the PR and merge the changes. From the wording of the setting I think even with it enabled it should have allowed my reviewer to approve and merge the changes, since I made the later commit before he did the review. I think this is a bug. |
Beta Was this translation helpful? Give feedback.
-
I also think this is a bug since closing the pr and re-openning it caused the issue to go away without changing any repository settings. |
Beta Was this translation helpful? Give feedback.
-
Not sure if this will help anyone but I've just had this happen on a branch where I had branched off from an existing branch (didn't mean to do this......) and then the first brach was merged into master/main. This seemed to trigger the message appearing. |
Beta Was this translation helpful? Give feedback.
-
It looks like the pointer to the baseline branch is fixed in a PR, but then there is some process to check that sha. It fails because the baseline tip moved. You can edit a PR and change a baseline from e.g. |
Beta Was this translation helpful? Give feedback.
-
Also getting this happening:
|
Beta Was this translation helpful? Give feedback.
-
We're hitting this now too. Strangely, I turned off the Dismiss stale pull request setting, and now the reviews aren't getting dismissed, but the PR still acts like no one has approved. Closing and re-opening the PR was the only thing that allowed us to move forward. |
Beta Was this translation helpful? Give feedback.
-
Happens to me too. Auto-dismisses my review without any new code. |
Beta Was this translation helpful? Give feedback.
-
Saw this as well with commits and PR created on Aug 7, 2023. As soon as a new review was added the review would be dismissed with the message
Closing the PR and re-opening it did fix the issue. We do have dismiss stale reviews enabled, but no new commits were added. |
Beta Was this translation helpful? Give feedback.
-
We are experiencing this same issue. It requires closing and opening the PR, or having somebody with admin permissions to override the required approval. (Turning off dismiss stale approvals is not something we are willing to do) According to the git history, there were no commits that triggered this condition. |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing this as well. Can't find a rhyme or reason to it. I'll approve a pull and it will immediately be dismissed seconds later. There aren't any new commits being pushed. |
Beta Was this translation helpful? Give feedback.
-
We are also seeing this. My PR is from my branch -> dev. The last commit to both master/dev was over an hour ago, and my last commit on my branch was over 30 minutes ago (I double checked). Every review said "Dismissed - The merge-base changed after approval."
|
Beta Was this translation helpful? Give feedback.
-
In my case, I could merge my PR after adding members on the Collaborators and Teams page in Settings. Just FYI. |
Beta Was this translation helpful? Give feedback.
-
Just a "me too" on this. A PR was stuck like this, pushed another branch name (of the same commit) and it approved and merged successfully. If anyone from GitHub actually wants to try to fix, I have left the "dead" PR open. Feel free to reach out. |
Beta Was this translation helpful? Give feedback.
-
Disabling the branch protection for "Dismiss stale pull request approvals when new commits are pushed" allowed us to get pass the message, "the merge-base changed after approval". This is a weird bug because nobody has made any new commits to our PR and it's annoying because it happens randomly. Any chance that Github Support can investigate this bug? |
Beta Was this translation helpful? Give feedback.
-
Just another person on a team experiencing this bug! |
Beta Was this translation helpful? Give feedback.
-
same here |
Beta Was this translation helpful? Give feedback.
-
Bump. This happened to me today. It's a time waster. Please fix it. Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
We're also experiencing this. It can unduly disrupt our release cycle. Please fix, thanks! |
Beta Was this translation helpful? Give feedback.
-
Can you please stop bumping this issue and just upvote instead? I am tired of receiving a notification and thinking progress has been made / a new insightful comment has been added, only to find it's another troglodyte with a GitHub account. |
Beta Was this translation helpful? Give feedback.
-
This doesn't sounds like an issue, but the intended purpose of the check. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I am also facing the same issue and it definitely looks like a bug. Can anyone from Github team look into this? |
Beta Was this translation helpful? Give feedback.
-
Still experiencing this |
Beta Was this translation helpful? Give feedback.
-
+1 you can't stack branches and easily approve and move through PR's with this feature enabled. |
Beta Was this translation helpful? Give feedback.
-
+1 from my organisation as well. |
Beta Was this translation helpful? Give feedback.
-
Bump. Still experiencing this |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello
Yesterday we noticed that there is a weird message appearing when a PR is approved. We have a feature branch created from main and we are trying to merge it to develop. Once the PR is approved and required checks pass, we see this message suggesting that the merge-base has changed after approval, although it has not.
This has a significant impact on developer experience, so I kindly ask for your support/guidance.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions