To expand on ttx's comment, we currently are using a review category to trigger merges. It really should be more of a state, along with a corresponding state transition button. However, this is what we could easily do without making source level changes to Gerrit. We could improve the situation my making a patch to gerrit to add a "Pending merge" state, use a button to transition to it, and have it exit the state back to ready for review if gate tests fail.
That would be very nice, but a slightly longer endeavor.
To expand on ttx's comment, we currently are using a review category to trigger merges. It really should be more of a state, along with a corresponding state transition button. However, this is what we could easily do without making source level changes to Gerrit. We could improve the situation my making a patch to gerrit to add a "Pending merge" state, use a button to transition to it, and have it exit the state back to ready for review if gate tests fail.
That would be very nice, but a slightly longer endeavor.