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

sgerrand / ex_bamboo_hr / 35432967332
100%

Build:
DEFAULT BRANCH: main
Ran 19 Sep 2026 08:48AM UTC
Jobs 1
Files 17
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

19 Sep 2026 08:47AM UTC coverage: 100.0%. Remained the same
35432967332

push

github

web-flow
feat(time-tracking): add the REST clock, hour and timesheet endpoints (#113)

* feat(time-tracking): add the REST clock, hour and timesheet endpoints

BambooHR has two current sets of time tracking endpoints. This client
covered only the older /time_tracking/* ones, which work in bulk and are
employee-scoped, so there was no way to read, correct or delete a single
entry, or to page through a large range.

Adds the /time-tracking/* family (note the hyphen): clock entries and
hour entries with full CRUD, the clock-in and clock-out process
resources, and timesheets with their summary and approval. Neither
family is deprecated and both address the same records, so an entry
created through one is visible through the other.

create_clock_in/2 and create_clock_out/2 are named apart from the
existing clock_in/3 and clock_out/3 rather than overloaded on arity:
same idea, different request shape, and confusing the two would post the
wrong body to the wrong URL.

approve_timesheet/3 takes the timesheet's lastChangedAt, which BambooHR
uses for optimistic concurrency; approving a timesheet that changed
since you read it returns 409 rather than silently overwriting.

Adds Client.patch/3, since these endpoints use PATCH for partial
updates, and teaches the spec drift script to recognise PATCH calls.

* docs(time-tracking): use totalItems and totalPages in page meta examples

BambooHR's paginated time tracking responses report totalItems and
totalPages, not total.

* docs(time-tracking): pass hoursLastChangedAt to approve_timesheet/3

Timesheets have no lastChangedAt field, so following the docs passed
nil and raised FunctionClauseError. The spec asks for the timesheet's
hoursLastChangedAt, sent as lastChangedAt. updatedAt can lag behind
changes to the hours.

* docs(time-tracking): minimum page size for clock and hour entries

The spec sets a minimum pageSize of 10 for the clock entries and hour
entries lists. A smaller value returns a 422.

18 of 18 new or added lines in 2 files covered. (100.0%)

256 of 256 relevant lines covered (100.0%)

40.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35432967332.1 19 Sep 2026 08:48AM UTC 17
100.0
GitHub Action Run
Source Files on build 35432967332
  • Tree
  • List 17
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35432967332
  • 0fdc5f61 on github
  • Prev Build on main (#35250610870)
  • Next Build on main (#35434176119)
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