MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
181 stars 59 forks source link

Link to files incorrect when using `workflow_run` #157

Closed cecheta closed 4 months ago

cecheta commented 7 months ago

workflow_run runs in the context of the default branch, therefore when constructing URLs, it is incorrectly using the commit SHA from the default branch instead of from the pull request.

It should instead use the SHA from workflow_run on the payload.

https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run