for merging two branches via the REST API I follow this advice:
and do it in 2 steps - create pool request like this:
and then merge this PR via REST API.
it works ok.
but it merges branch1 from the last commit.
now I need merge branch1 to branch2 only till specific commit id from branch1. in git I can do like:
git fetch --all
git merge <commit_id>
git push
and after this branch2 has been merged only with commits till commit_id from branch1. How can I do the same via REST API? Also, as far I understand - this is NOT cherry-pick because I need merge not only ONE commit but more.