Get your CI (like TeamCity) to merge after builds pass with a queue of gated merges.
By chatting or signing in you agree to the Terms and chat-message logging (revocable in History).