Is your feature request related to a problem? Please describe:
When using GitLab's merge request pipelines, CI_COMMIT_BRANCH does not exist. Instead, CI_MERGE_REQUEST_SOURCE_BRANCH_NAME needs to be used.
Describe the solution you'd like:
Use CI_MERGE_REQUEST_SOURCE_BRANCH_NAME when CI_COMMIT_BRANCH is not set.
Describe alternatives you've considered:
There are none.
Is your feature request related to a problem? Please describe: When using GitLab's merge request pipelines,
CI_COMMIT_BRANCH
does not exist. Instead,CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
needs to be used.Describe the solution you'd like: Use
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
whenCI_COMMIT_BRANCH
is not set.Describe alternatives you've considered: There are none.
Additional context: