Automatically generate your timesheet using Github API
-
Clone project
git clone https://github.com/vivekmiyani/timesheet.git ~/timesheet -
Install dependency
gem install faraday
-
Generate Github API token
- Open Generate new token (classic)
- Set Expiration to Never
- Select scopes:
repoanduser - Click Generate and copy the token
-
Save the token to
~/.timesheet-tokenin your home folder.
Generate your today's timesheet:
~/timesheet/work.rb $(date '+%Y-%m-%d')Or for any date:
~/timesheet/work.rb 2023-01-01Which produces output:
--------------------------------------------------
acme-inc/admin:
--------------------------------------------------
ACME-110 - Allow users to view other users orders
- Updated users policy
- Fixed broken tests
--------------------------------------------------
acme-inc/app:
--------------------------------------------------
ACME-201 - Implement bug reporting feature
- Added global exception handler