Skipping pipelines does not work for pipelines for merge requests
Summary
When pushing new commits to a merge request, with --push-option ci.skip it doesn't skip the pipeline that is intended for merge requests only.
It creates a new empty pipeline that is skipped instead, and still runs the original pipeline.
Steps to reproduce
- make a
.gitlab-ci.ymlwith a job that should only run on merge requestsonly: [merge_requests] - Open a merge request
- Push new commits to the merge request with the ci.skip push option as described here (or use
--push-optionif your git version does not support the short version)
Example Project
What is the current bug behavior?
The merge requests gets an extra pipeline that is skipped (and empty) and the pipeline that is run in the merge request context still runs.
What is the expected correct behavior?
The pipeline for merge requests is skipped and no extra pipelines should be created.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
