MishaKav / pytest-coverage-comment

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

report-only-changed-files does not work for forks when using `workflow_run` #159

Closed cecheta closed 5 months ago

cecheta commented 8 months ago

When using workflow_run or workflow_dispatch, the base and head are determined directly from the branches of the PR. However, this does not work for forks, because the head branch is in a different repo.

This can be used by using label instead of ref, as this includes the repo owner, e.g. MishaKav:main