tomfa / git-csv-timesheet Goto Github PK
View Code? Open in Web Editor NEWGenerate CSV timesheet from your git repositories
License: MIT License
Generate CSV timesheet from your git repositories
License: MIT License
Instead of
date;repository;hours
2020-08-25;/Users/tomasfagerbekk/repos/askeladden.toolbox;2.6
2020-08-25;/Users/tomasfagerbekk/repos/digg.client.app;4.8
2020-08-26;/Users/tomasfagerbekk/repos/digg.client.app;11.2
2020-08-27;/Users/tomasfagerbekk/repos/askeladden.toolbox;0.9
2020-08-27;/Users/tomasfagerbekk/repos/digg.client.app;7.6
2020-08-28;/Users/tomasfagerbekk/repos/FoodSociety.App;1.2
2020-08-28;/Users/tomasfagerbekk/repos/Petrus.Web;1.0
2020-08-28;/Users/tomasfagerbekk/repos/digg.client.app;0.5
2020-08-29;/Users/tomasfagerbekk/repos/askeladden.toolbox;1.0
2020-08-29;/Users/tomasfagerbekk/repos/digg.client.app;1.1
2020-08-30;/Users/tomasfagerbekk/repos/askeladden.toolbox;6.8
2020-08-30;/Users/tomasfagerbekk/repos/digg.client.app;1.6
Make it
date;askeladden.toolbox;digg.client.app;FoodSociety.app;Petrus.Web;total
2020-08-25;2.6;4.8;0;0;7.4
2020-08-26;0;11.2;0;0;11.2
2020-08-27;0.9;7.6;0;0;8.5
2020-08-28;0;0.5;1.2;1.0;2.7
2020-08-29;1.0;1.1;0;0;2.1
2020-08-30;6.8;1.6;0;0;8.4
This makes it alot easier to copy paste hours into the "real timetracker".
--compact
flag? Or the inverse, make the old format --readable
?A .timesheetrc located in the git repository should override any .timesheetrc in home, but be overridden by any program arguments
isomorphic-git looks quite promising & does not have installation & nodejs version comparability issues.
For each update, we have to package-dist.json
and src/bin/args.js
. Avoid that would be great
The CLI part of this repository does not work(!)
Would be handy (when you report yearly), to add lastyear/thisyear as time args.
# Returning whole previous year
timesheet --since lastyear --until thisyear
# Returning current year
timesheet --since thisyear
The docs say we can combine several git repositories into a project using a .timesheetrc.repositories
ala
[
{ "project": "Personal blog", "path": "/Users/tomfa/repos/notes" },
{ "project": "Personal blog", "path": "/Users/tomfa/repos/notes-backend" }
]
I would like feature where I can also add to the csv all commit messages, or export it in another file.
What did I do yesterday?
This repo, but just show all commit messages you've commited.
--date
parameterThank you for this tool, git-hours keeps giving me install errors.
Could you please consider making a --total hours switch?
In my case I just wanna know how many hours I have spent in my repository.
The problem is is that my repository has 694 commits, feew...
What I would be really glad is something like:
$ timesheet --total
200 hours
The docs say we can override config on repository level with a .timesheetrc.repository
ala
{
"project": "Client 1",
"path": "/Users/tomfa/repos/backend",
"countMerges": false
}
Logic from git-hours should be callable as an imported library, not as a cli
The repo can be used as a library, eg:
import timesheet from 'git-csv-timesheet';
const config = ...
const summary = timesheet.analyze(config);
I don't care about the path to the repos, really, just the repo name.
Instead of
date;repository;hours
2020-08-25;/Users/tomasfagerbekk/repos/askeladden.toolbox;2.6
2020-08-25;/Users/tomasfagerbekk/repos/digg.client.app;4.8
2020-08-26;/Users/tomasfagerbekk/repos/digg.client.app;11.2
2020-08-27;/Users/tomasfagerbekk/repos/askeladden.toolbox;0.9
2020-08-27;/Users/tomasfagerbekk/repos/digg.client.app;7.6
2020-08-28;/Users/tomasfagerbekk/repos/FoodSociety.App;1.2
2020-08-28;/Users/tomasfagerbekk/repos/Petrus.Web;1.0
2020-08-28;/Users/tomasfagerbekk/repos/digg.client.app;0.5
2020-08-29;/Users/tomasfagerbekk/repos/askeladden.toolbox;1.0
2020-08-29;/Users/tomasfagerbekk/repos/digg.client.app;1.1
2020-08-30;/Users/tomasfagerbekk/repos/askeladden.toolbox;6.8
2020-08-30;/Users/tomasfagerbekk/repos/digg.client.app;1.6
Make it
date;repository;hours
2020-08-25;askeladden.toolbox;2.6
2020-08-25;digg.client.app;4.8
2020-08-26;digg.client.app;11.2
2020-08-27;askeladden.toolbox;0.9
2020-08-27;digg.client.app;7.6
2020-08-28;FoodSociety.App;1.2
2020-08-28;Petrus.Web;1.0
2020-08-28;digg.client.app;0.5
2020-08-29;askeladden.toolbox;1.0
2020-08-29;digg.client.app;1.1
2020-08-30;askeladden.toolbox;6.8
2020-08-30;digg.client.app;1.6
--absolute-path
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.