Merges the latest version of a deployment from one branch to another.
strThe name of the deployment.
strThe name of the destination branch for merging the deployment.
Optional[str]The name of the origin branch for merging the deployment. By default the current branch (default
main) is used.
Owner roles can merge deployments to protected branches. Users with the
User role can only merge to unprotected branches.
No value is returned. A success status message is printed if the command is successful.
Merge a deployment to the
Merge a deployment from the
staging branch to the
mb.merge_deployment("example_deployment", from_branch="staging", to_branch="prod")