[CI] Two pipelines created for first commit if MR is not already open
Summary
I've noticed that two pipelines are created for each commit to a branch in MR pipelines when the MR has not yet been created. Although we do use resource groups to ensure only one environment is modified at a time, it still could lead to unexpected race conditions and wastes cloud resources.
Example: !3051 (comment 1329834050)
It looks like we're getting both the pipeline for the merge request and the pipeline for the branch.
Acceptance criteria
-
Only one pipeline is created per commit
Edited by Mitchell Nielsen