DataDog / datadog-ci

Use Datadog from your CI.
https://datadoghq.com
Apache License 2.0
127 stars 55 forks source link

Support GitLab merge request pipelines #328

Closed nesl247 closed 1 year ago

nesl247 commented 3 years ago

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.

Additional context:

hsantanabt commented 1 year ago

Would this request add support for GitLab as one of the supported providers in the --repository-url flag?

edrevo commented 1 year ago

Fixed in https://github.com/DataDog/datadog-ci/pull/387