We have a branch structure as under .
prod
|
int
|
test
|
master=dev
We might have hot fix branches under prod which get merged via pull request to prod.
We want these hot fix changes to cascade through master->test->int automatically.
so far with bitbucket server (we run server) we are able to have this happen from prod to dev/master. Any idea how we could do this for the other branches?
I started looking into a plugin to do so but don't know how to merge the changes within the pull request hook. Looked at your previous auto merge code but it uses a merge call from ScmCommandFactory which doesn't exist in the new api .
Any help would be appreciated.