rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
I've seen this gitlab rule fx here, what I don't really get is what the purpose if $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS is. As I understand it is when a commit has been made to a branch that have an open merge request to it. Why would one want to handle that case specially?