-
Notifications
You must be signed in to change notification settings - Fork 696
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
Mergify: add no-rebase rule #9108
Conversation
If a pull request gets the "merge+no rebase" label, it' will be merged directly to master without a rebase/squash or queue. This can be useful in cases when contributors don't allow updating their branches.
How frequent is it that contributors disallow changes on their branches? What is their rationale? |
I feel mergify should be smarter, the rebase/squash does not necessarilty need to be pushed to the contributor's branch. |
Thanks everyone for feedback!
Pretty frequent recently: Oleg (phadej) and Phil (philderbeast) both contribute regularly and don't allow updates for various reasons. I think we ought to support this workflow even if it's rare. Otherwise we may get stuck for no good reason. Of course, the idea is that this workflow is not the one we use by default.
I mean... I wish it all just worked but it doesn't. Currently, I have to go into back and forth and do manual merges, which I'm not thrilled about. If there are better workflows than what is proposed here, I'd be happy to listen. I was reading Mergify docs more these days, but I don't really see how to fix the issue. |
Yash, sorry, my comment wasn't very useful |
No worries! Unfortunately, #9120 fixes another, and much bigger problem where Mergify can't rebase a PR from anyone other than admins (details are here), even if the permission to push to dev branch is given. I don't think there's a workaround for the case when no permission given at all (this case being addressed by this PR). But I should confess that I haven't studied Mergify docs as deep as I wanted to, so maybe there's such workaround... |
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.
So be it! No-rebase merging comes at a price for Cabal (a less clean commit history), so hopefully this label will be used only in a sporadic manner.
@andreabedini in case you missed the discussion o f rebase-less strategy on the IRC, here it is:
|
If a pull request gets the "merge+no rebase" label, it' will be merged directly to master without a rebase/squash or queue. This can be useful in cases when contributors don't allow updating their branches.