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

nicklaw5 / helix / 24290704284
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: copilot/bugfix-helixclient-eventsub-error
DEFAULT BRANCH: main
Ran 12 Apr 2026 06:41PM UTC
Jobs 1
Files 42
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

11 Apr 2026 08:13PM UTC coverage: 92.868% (+0.03%) from 92.843%
24290704284

Pull #259

github

web-flow
Return non-nil error when Twitch API responds with error body

Add ErrTwitchResponseError sentinel and pullErrorFromResponse helper to
helix.go. All endpoint methods now return a wrapped ErrTwitchResponseError
when the response body contains a non-zero error status field, making it
easier for callers to detect Twitch API errors via the standard error
interface or errors.Is.

Also reset response error fields at the start of each doRequest retry loop
so that a successful retry after a token refresh does not inherit the stale
error state from the preceding 401 response.

Update all test files to conditionally check err only for 2xx responses
or handle the new ErrTwitchResponseError for expected non-2xx responses.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>
Pull Request #259: Return non-nil error when Twitch API responds with an error body

123 of 126 new or added lines in 40 files covered. (97.62%)

32 existing lines in 1 file now uncovered.

1862 of 2005 relevant lines covered (92.87%)

6297.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
0.0
0.0% extension_secrets.go
1
50.0
0.0% entitlement_codes.go

Coverage Regressions

Lines Coverage ∆ File
32
88.79
0.18% helix.go
Jobs
ID Job ID Ran Files Coverage
1 24290704284.1 12 Apr 2026 06:41PM UTC 42
92.87
GitHub Action Run
Source Files on build 24290704284
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #259
  • PR Base - v3 (#24313272465)
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