Deprecate merge_when_pipeline_succeeds and introduce auto_merge param to merge train api

With the new auto merge work, we need to deprecate the merge_when_pipeline_succeeds in the merge train api and introduce a new auto_merge param

Edited by Marc Shaw