Use stash REST api for merge

this require should not be necessary.