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

sgerrand / ex_bamboo_hr / 35247752757
100%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2026 04:37PM UTC
Jobs 1
Files 16
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 Sep 2026 04:37PM UTC coverage: 100.0%. Remained the same
35247752757

push

github

web-flow
feat!: return a BambooHR.Error struct from every failure (#111)

Callers previously had to match three unrelated shapes to handle a
failure: %{status:, body:} for a non-2xx response, %Jason.DecodeError{}
for an undecodable body, and a transport exception such as
%Req.TransportError{}. Matching on a status code also meant knowing which
number BambooHR uses for which condition.

Failures are now always {:error, %BambooHR.Error{}}, carrying a :reason
atom (:not_found, :rate_limited, :transport_error, :decode_error, and so
on), the status, the raw body, and the underlying exception where there
is one.

The struct also surfaces two diagnostics the client used to discard:
BambooHR's x-bamboohr-error-message / X-BambooHR-Message header as
:message, which distinguishes cases a status code cannot (a 404 on an
employee photo means "no photo on file", "no such employee", or "invalid
size"), and X-Request-ID as :request_id for support tickets.

It is a defexception, so Exception.message/1 formats it and callers can
raise it if they want. The client itself still never raises.

Telemetry stop metadata now reports :status as nil for a request that
never got a response, and :reason as the error's reason atom.

BREAKING CHANGE: the :error payload is a %BambooHR.Error{} struct.
Matching on %{status: status} or %{status: status, body: body} keeps
working, since the struct has those keys. Code matching
%Jason.DecodeError{} or %Req.TransportError{} directly must now match
%BambooHR.Error{reason: :decode_error} or
%BambooHR.Error{reason: :transport_error}, reading the original
exception from :exception.

28 of 28 new or added lines in 3 files covered. (100.0%)

216 of 216 relevant lines covered (100.0%)

39.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35247752757.1 17 Sep 2026 04:37PM UTC 16
100.0
GitHub Action Run
Source Files on build 35247752757
  • Tree
  • List 16
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35247752757
  • d0843a93 on github
  • Prev Build on main (#35246686116)
  • Next Build on main (#35250610870)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc