insightsengineering / coverage-action

Github Action that generates a coverage summary using a Cobertura XML report
https://github.com/marketplace/actions/code-coverage-report-action
MIT License
16 stars 7 forks source link

Get PR head SHA #29

Closed tzing closed 1 year ago

tzing commented 1 year ago

In PR, github.sha does not point to the head commit. It's a merge commit id that is not created by human.

Example: e26c145 in message vs latest commit 7ae5bce

Screenshot 2023-10-03 at 9 06 29 PM

This causes that results for commit: xxxxxx line always not match the commit in PR. And this PR introduces a workaround for this issue.

cicdguy commented 1 year ago

Released in https://github.com/insightsengineering/coverage-action/releases/tag/v2.3.3 Thanks @tzing!