sclorg / testing-farm-as-github-action

GitHub Action to execute tests by Testing Farm and update Pull Request status
MIT License
13 stars 11 forks source link

fix: don't fail when pull_request context in unavailable #207

Closed jamacku closed 1 month ago

jamacku commented 1 month ago

When running on non pull_request a target (e.g., repository_dispatch), don't fail and provide some meaningful output.

NOTE: Statuses and issue comments are not supported when using such triggers

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 63.26531% with 18 lines in your changes missing coverage. Please review.

Project coverage is 86.69%. Comparing base (276e2a8) to head (ab46c3e).

Files Patch % Lines
src/main.ts 0.00% 10 Missing and 1 partial :warning:
src/pull-request.ts 69.56% 7 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #207 +/- ## ========================================== - Coverage 88.38% 86.69% -1.70% ========================================== Files 10 10 Lines 689 714 +25 Branches 73 83 +10 ========================================== + Hits 609 619 +10 - Misses 78 93 +15 Partials 2 2 ```

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

jamacku commented 1 month ago

I think that this PR should make Action more robust even if it doesn't fix the following issue: