Fail the build if a commit cannot be merged