hub4j / github-api

Java API for GitHub
https://github-api.kohsuke.org/
MIT License
1.12k stars 718 forks source link

Implement ServiceDownException for case GitHub's API is down #1813

Closed The-Huginn closed 4 months ago

The-Huginn commented 4 months ago

Check for reply from GitHub's API for case the service is down. In such case a new ServiceDownException is thrown.

Fixes #1807

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 66.66667% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 80.65%. Comparing base (1aa7178) to head (f395dfb). Report is 3 commits behind head on main.

:exclamation: Current head f395dfb differs from pull request most recent head 0fb591f. Consider uploading reports for the commit 0fb591f to get more accurate results

Files Patch % Lines
...ke/github/GitHubConnectorResponseErrorHandler.java 62.50% 3 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1813 +/- ## ============================================ - Coverage 80.66% 80.65% -0.02% - Complexity 2342 2343 +1 ============================================ Files 220 221 +1 Lines 7082 7102 +20 Branches 379 383 +4 ============================================ + Hits 5713 5728 +15 - Misses 1132 1135 +3 - Partials 237 239 +2 ```

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