-
Notifications
You must be signed in to change notification settings - Fork 3
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
Merge PRs in approval order #25
Comments
One argument against this is: Hoff currently doesn't have a notion of PRs which depend on one another. Approval order does not imply a specific merge order, as the following can happen even if Hoff uses approval order to decide what to integrate when:
If we want to avoid that behavior we should have something like |
(also want to mention I don't have a strong preference here, I had just thought of a use case which I thought might happen fairly often. However, it could still be up to the user to wait on the appropriate PRs to be merged before requesting another to be merged) |
There are arguments to be made both for ordering by PR number or by approval time. There was a lot of discussion about it for the Rust merge bot. (some, links, I thought there was a more recent one too but I can’t find it.) But in any case, this matters when the queue is long and builds take a long time; I don’t think it matters for us at this point.
If you create the dependency first, then it will have a lower PR number, and things will work out. |
Ah so @wesleybowman said
I think having to watch out with the order of your approval comments is not too bad in this case. Properly supporting dependencies would be nice, but not easy. #6 is also related to this. |
Moving a subdiscussion from #19
Currently, Hoff does not remember the order in which pull requests were approved. It instead chooses merge candidates based on PR id (lowest go first).
To guarantee fairness and preserve potential user intent (when there dependent PRs) we can consider Hoff maintaining a queue in which merge commands were received. It should rebase + check + merge approved PRs in that order.
CC @wesleybowman
The text was updated successfully, but these errors were encountered: