Automatically choose a branch for deployment