DataDog / datadog-ci-rb

Ruby library for Datadog test visibility
https://docs.datadoghq.com/continuous_integration/tests/ruby
Other
8 stars 4 forks source link

[SDTEST-528] Add pull_request extra tags for GitHub Actions #238

Closed anmarchenko closed 1 month ago

anmarchenko commented 1 month ago

What does this PR do? Adds extra tags with Git metadata for Github Actions workflows that are triggered with pull_request event.

Motivation In GHA pull_request workflows HEAD does not point to the last commit in the PR, but to a commit that is the result of merging PR branch with the target branch.

Datadog backend needs additional information in this case to correctly determine the latest commit in the PR branch.

How to test the change? Unit tests are provided

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.95%. Comparing base (f3d84e6) to head (960d008).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #238 +/- ## ======================================= Coverage 98.95% 98.95% ======================================= Files 273 273 Lines 13381 13402 +21 Branches 601 604 +3 ======================================= + Hits 13241 13262 +21 Misses 140 140 ``` | [Flag](https://app.codecov.io/gh/DataDog/datadog-ci-rb/pull/238/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/DataDog/datadog-ci-rb/pull/238/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `98.95% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.