I am having issues getting my pipeline to trigger when a Merge Request is created in GitLab and am unsure if this is possible. I have two scenarios I would like to try out:
- Execute Drone pipeline once a Merge Request is created
- Once the Drone pipeline succeeds create a Merge Request in Gitlab
For option 1) I have tried adding the following in my pipeline but unfortunately doesn’t kickoff the pipeline once I create a merge request in my
kind: pipeline type: docker name: my-pipeline trigger: branch: branch_name event: pull_request
I am unsure if this is the correct event type that I am looking for with my git hook.
Is there a way to accomplish either (or both) of these scenarios with Drone and GitLab?