We don't use multi branch pipeline. But , we use pipeline Jenkins job written in jenkisnfile.I want to know the steps to do on github and jenkinsfile side to trigger the Jenkins job if a pull request is merged to a particular branch.
I want to use only pullrequestevent, so when a pull request is merged, it should run a script or hook, which would do all the checks likeif a pull request is merged or not / if teh branch is release or not etc.if teh condition satisfies, it shoud run the jenkins job