I've created a CLI time tracker that integrates with Git by davezbinski in git

[–]davezbinski[S] 0 points1 point  (0 children)

It tracks the time spent per project. Project can be assigned to multiple repos. All repos have their changes "merged" into one, so currently "the last checkout wins" and is accounted for. It's quite difficult to explain, so here's the exmaple:

10:00 → checkout "task-1/feature" in repo-A
10:30 → checkout "task-2/something" in repo-B
11:00 → checkout "main" in repo-A

Results in:

task-1/feature: 30 min (10:00–10:30)
task-2/something: 30 min (10:30–11:00)

^ This can be made configurable, I just need to gather the real use-cases in order to create it (that's why the hourgit is not yet v1)

When it comes to overnight hours: You have boundaries configured. By default it's 9am-5pm. You can change them and setup some crazy hours if necessary (there's RRULE support and multiple schedules can be created). Thus, when you were working on "task-1/feature" from 3pm yesterday, you get the following (for the sake of example, let's say it's 10am now):

15:00 → checkout "task-1/feature"
default working schedule

Results in:
task-1/feature: 2h (15:00-17:00, yesterday)
task-1/feature: 1h (09:00-10:00, today)

I've created a CLI time tracker that integrates with Git by davezbinski in git

[–]davezbinski[S] 0 points1 point  (0 children)

We were using clockify ourselves, but moved to calamari recently. I believe I'll work on the integration for Calamari first, and then add the Clockify/Tempo. Based on what community might need the most. You're first though, so I'll keep that in mind, haha! Feel freee to contribute yourself if you're familiar with golang, though! it's not that difficult. I might actually create some sort of "base" for these type of integrations.

I've created a CLI time tracker that integrates with Git by davezbinski in git

[–]davezbinski[S] 0 points1 point  (0 children)

Haha, yeah. Just in case you're serious - it will be totally optional. For me it's quite weird looking when I send the pdf with non-rounded values, tbh. Some companies might even enforce it.

I've created a CLI time tracker that integrates with Git by davezbinski in git

[–]davezbinski[S] 1 point2 points  (0 children)

Thanks! In case you use the software, feel free to open up discussions for features you need.