-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Rebase PR when base branch is merged #544
Comments
That's something that can be done with the rebase action: https://doc.mergify.io/actions.html#rebase The trick is just to set the conditions properly. What should be the criteria for rebasing a PR? (at least in your case). |
Here the issue is that the base branch would change. Ideally PR 43 would be based against |
The My main concern here is still how you want to express the |
Let me rephrase the request (assuming I got it right): We have PR42 wanting to merge Now PR42 is merged in to What now should happen automatically is that the base branch of PR43 is changed from (This now incidentially allows This is all orthogonal to how the merges are done (rebase, squash, normal). |
That's now what I understood, but if that's the case, you'd first need an action that allows you to change the base branch of a PR. We don't have it yet, but that should be straightforward to implement. The conditions to have this action triggered are more tricky though. 🤔 |
Github recently released something that helps with this if I understand correctly: https://github.blog/changelog/2020-05-19-pull-request-retargeting/ |
Related to #291
Say PR 42 has branch
base
and PR 43 usesbase
as base branch. It would be great to have PR 43 be rebased on master automatically when PR 42 is merged.The text was updated successfully, but these errors were encountered: