Skipping pipelines commit option does not work for merge request pipelines OR merged results pipelines
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=27955) </details> <!--IssueSummary end--> ### Problem 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 1. make a `.gitlab-ci.yml` with a job that should only run on merge requests `only: [merge_requests]` 1. Open a merge request 1. Push new commits to the merge request with the ci.skip push option as described [here](https://docs.gitlab.com/ee/user/project/push_options.html#push-options-for-gitlab-cicd) (or use `--push-option` if your git version does not support the short version) ### Example Project https://gitlab.com/Pandabehr/example/merge_requests/11/pipelines ### What is the current 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 desired behavior? The pipeline for merge requests is skipped and no extra pipelines should be created without using extra `workflow:rules:if` entries in the `.gitlab-ci.yml` file. ### Relevant logs and/or screenshots ![image](/uploads/fdf3e52f1da17015805003fd73839745/image.png) ### Use Cases / Extra Details 1. This can be complicated when users also need to setup the merge request pipelines to [avoid duplicate](https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines) branch and merge request pipelines. 2. It is [documented](https://docs.gitlab.com/ee/user/project/push_options.html#push-options-for-gitlab-cicd) that push options do not support `ci.skip` for merge request pipelines yet. ### Possible workarounds 1. It may be possible to setup a `workflow:rule:if` entry to check the `$CI_COMMIT_MESSAGE` for "skip ci" or "ci skip" and skip pipeline creation. This may result in unexpected pipelines.
issue