Sure, mistakes happen, which is why the process is typically automated. You have to go out of your way to merge faulty code. It's rare.
Not saying mistakes can't happen, but the person I was replying to didn't seem to be aware of this tooling.
You should strive to do that but you shouldn't be surprised that despite all effort mistakes still happen from time to time.