You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Support for rebase+no-fast-forward-merge #734
This is almost identical to the standard rebase workflow, except that the final trivial merge with master is done --no-ff.
Happy to explain why I like that gitflow if anyone wants, but I don't think that's relevant to whether it can be supported. It's the workflow that I prefer and I'd love to see it supported if that's an option?
I guess there's conceptually the option of a more general "configure an entirely custom 'Commi to Master' workflow" defined in terms of variables? I imagine that would be considerably more work, though.
From a technical point of view I think this might be possible. We'd need to use something like the tibdex/github-rebase algorithm to emulate a rebase through GitHub's API, then use the API to create an extra merge commit and update the base ref. It's not immediately clear what would happen in case of merge conflicts, but I assume some step along the way would just fail and you'd have to run the rebase from a command line instead.
However, compared to the current "call a single API to merge with the right flag", this would be a lot of extra code for a somewhat esoteric use case so I'm not convinced the effort is warranted -- sorry. I'm happy leaving this issue open to give the idea some visibility in case others are interested in it too, and perhaps revisit in a while to see if the calculus has changed.
Yep, you've got it right. If you can convince GitHub to offer the feature (and surface it via the API) then we could support it easily. Otherwise, it's a ton of work. Thanks!
Activity
Brondahl commentedon May 15, 2020
I guess there's conceptually the option of a more general "configure an entirely custom 'Commi to Master' workflow" defined in terms of variables? I imagine that would be considerably more work, though.
pkaminski commentedon May 18, 2020
From a technical point of view I think this might be possible. We'd need to use something like the tibdex/github-rebase algorithm to emulate a rebase through GitHub's API, then use the API to create an extra merge commit and update the base ref. It's not immediately clear what would happen in case of merge conflicts, but I assume some step along the way would just fail and you'd have to run the rebase from a command line instead.
However, compared to the current "call a single API to merge with the right flag", this would be a lot of extra code for a somewhat esoteric use case so I'm not convinced the effort is warranted -- sorry. I'm happy leaving this issue open to give the idea some visibility in case others are interested in it too, and perhaps revisit in a while to see if the calculus has changed.
Brondahl commentedon May 18, 2020
Oh, I think I see ... you don't currently "do the rebase yourself", you just tell GitHub to please accept this PR, with 'merge-mode' set to 'rebase'?
Thus anything that isn't already supported by GH is a significant extra chunk of work?
Fair enough :)
shucks :D
Brondahl commentedon May 18, 2020
Raised a feature request with GitHub :D
Maybe it'll get added as an option in the future!
pkaminski commentedon May 18, 2020
Yep, you've got it right. If you can convince GitHub to offer the feature (and surface it via the API) then we could support it easily. Otherwise, it's a ton of work. Thanks!
pkaminski commentedon Jan 30, 2025
So AFAIU from this discussion, GitHub's current "rebase" merge strategy is in fact of the no-fast-forward variety. Reviewable supports this already.
Instead, it looks like we need to support true FF merges!