Closed jakobmerrild closed 1 year ago
👋 @kalanzai Could you reach out to us at support@mergify.com with the PR URL and the timestamp this happened? This would help find the root cause. Thank you!
@jd I can provide the url for the events here. Will that help?
I have sent the email 👍
I got a reply from support.
Mergify does not really dismiss reviews. GitHub does it on our behalf. When you use a stacked pull request and delete_head_branch features of Mergify. Mergify will delete the head branch when the pull request is merged. Then, when the branch is deleted, this triggers a background process on GitHub side to update the second pull request automatically. All actions taken by GitHub in the background process are associated with Mergify. GitHub changes the target branch on our behalf and dismiss the reviews on our behalf. This is why you see Mergify. But in reality, it's a GitHub behavior.
To workaround the issue, I would suggest removing delete_head_branch from Mergify configuration and using the GitHub equivalent: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches
Expected Behavior
Mergify should not dismiss reviews when there are no dissmiss_reviews actions configured
Actual Behavior
Mergify dismisses reviews when the base of a PR is changed by GitHub (due to the base having been merged from a different PR)
Steps to Reproduce the Problem
main
main
Specifications
PR is in private repository, but adding our mergify config here