def METHOD_NAME(
    github_pr_synchronized_approvers_controller: GithubController, mocker: MockerFixture
):
    merge_state_status = mocker.MagicMock()
    merge_state_status.return_value = MergeStateStatus.DIRTY
    mocker.patch(
        "sqlmesh.integrations.github.cicd.controller.GithubController._get_merge_state_status",
        merge_state_status,
    )
    controller = github_pr_synchronized_approvers_controller
    controller._pull_request = AttributeDict({"merged": False})
    with pytest.raises(CICDBotError, match=r"^Merge commit cannot be cleanly created.*"):
        controller.deploy_to_prod()