• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 27722771184
67%

Build:
DEFAULT BRANCH: main
Ran 17 Jun 2026 10:09PM UTC
Jobs 1
Files 418
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jun 2026 10:05PM UTC coverage: 66.637% (+0.03%) from 66.609%
27722771184

push

github

web-flow
refactor(github): Centralize GraphQL error handling in `client.graphql()` (#759)

Previously, each GraphQL mutation caller (`add_review_thread`,
`add_review_thread_reply`) had its own inline check for a top-level
`errors` array in the HTTP 200 response. This was inconsistent: the
check only caught the first error message, used `is_null()` instead of
`is_empty()`, and left other callers (e.g. queries) with no error
handling at all, silently returning partial or empty data.

Now `client.graphql()` handles this once: it deserializes the response
as a raw `Value`, checks for a non-empty `errors` array, and returns an
`Err(Error::GitHub)` that joins all error messages before any
deserialization into `T` occurs. Callers drop their duplicated
error-checking blocks entirely.

As a side effect, the inline comment-node mapping in
`fetch_review_comments` was extracted into a standalone
`parse_review_comment_node` helper, which logs a `tracing::warn!` when a
node has no parseable `fullDatabaseId` instead of silently skipping it.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

86 of 90 new or added lines in 2 files covered. (95.56%)

35632 of 53472 relevant lines covered (66.64%)

401.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
78.96
1.65% crates/jp_github/src/handlers.rs
1
68.46
2.07% crates/jp_github/src/client.rs
Jobs
ID Job ID Ran Files Coverage
1 27722771184.1 17 Jun 2026 10:09PM UTC 418
66.64
GitHub Action Run
Source Files on build 27722771184
  • Tree
  • List 418
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27722771184
  • 9088e454 on github
  • Prev Build on main (#27721933543)
  • Next Build on main (#27723188554)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc