Jannchie / codetime-web-v3

Front-end page of codetime, third version.
https://codetime.dev
24 stars 1 forks source link

[feature request] track git branch #8

Open Sibz opened 2 months ago

Sibz commented 2 months ago

Thank you for this great add on!

I would like to see time spent on branches within a repository/project - I typically do one branch per feature/fix, so this would enable me to account for time at the task level which would be enormously beneficial.

Jannchie commented 2 months ago

That sounds like a great idea, I'll give it a try and add this feature.

JackBlair87 commented 2 months ago

I agree this would be an incredible addition! Codetime is absolutely goated.

Jannchie commented 2 months ago

We have successfully implemented a basic feature to track git branches.

https://codetime.dev/en/dashboard/workspace

image

However, there are still many tasks to be completed. I have come to the realization that distinguishing projects based on workspace (folder name) is not ideal. A better approach would be to identify git origin URLs to merge code time directed to the same repository.

Furthermore, the records before the launch of this feature cannot be updated and will currently show as “Unknown.” But I think it is possible to calculate previous code time by reading git logs.

We will continue to make updates to the relevant features.

Sibz commented 2 months ago

Fantastic!

I look forward the project by git origin feature to be introduced.