Hi all,
I am trying to implement a stage in a pipeline when a merge request/PR is approved, it should trigger.
Here I am using the below shown rule but the pipeline is triggering when the merge request/PR is created and it doesn’t trigger after approval of the merge request
rules:
- if: $CI_PIPELINE_SOURCE == “merge_request_event” && $CI_MERGE_REQUEST_APPROVED == “true” && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == “devops_test”
I would appreciate if you guys suggest a solution to sort this out. Thanks in advance.