CI/CD pipelines Azure devops automatic merge after deploy release I have a classic env. setup like following:

I have 2 branches : Develop and Master.

Is there any way in azure devops to setup the following rule:


When a deploy is succeeded on dev environment (defined in the
release pipeline of azure devops) ------> create automatically a pull request to merge develop into Master.
or the other one: if a Build of develop branch is succeded ------->
    create automatically a pull request to merge develop into Master.


Any help will be appreciated.
I would look into Azure Functions. Create a gate trigger and enable azure function after a successful release. 

References:
https://docs.microsoft.com/en-us/azure/devops/repos/git/create-pr-status-server-with-azure-functions?view=azure-devops