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

nicklaw5 / helix / 24360260385
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: copilot/bugfix-helixclient-eventsub-error
DEFAULT BRANCH: main
Ran 13 Apr 2026 06:35PM 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

13 Apr 2026 06:34PM UTC coverage: 92.882% (+0.04%) from 92.843%
24360260385

push

github

web-flow
fix: Return non-nil error when Twitch API responds with an error body (#259)

* Initial plan

* 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>

* Add UPGRADING.md with v3 migration guide

Agent-Logs-Url: https://github.com/nicklaw5/helix/sessions/3fcbaaf4-b4dc-40ec-9306-a88802d12d42

Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

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

1866 of 2009 relevant lines covered (92.88%)

6414.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
0.0
0.0% extension_secrets.go
1
50.0
0.0% entitlement_codes.go
Jobs
ID Job ID Ran Files Coverage
1 24360260385.1 13 Apr 2026 06:35PM UTC 42
92.88
GitHub Action Run
Source Files on build 24360260385
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2217a3dc on github
  • Prev Build on main (#24313148069)
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