Batch logging time entries in freckle
The project now excludes holidays and weekends 🎉
To make use of this script, ensure you have cloned the project. Install requirements;
git clone git@github.com:kevinsamoei/Freckle-logger.git
bundle install
To use:
-
open the file
run
-
Replace the values there with valid details of your project
-
Then execute the script to log hours
./run
Enjoy
You might be wondering what token is, what hours is or even what is the project name Worry no more.
- Token - this is the authentication token from freckle. To get the token, login to your freckle account. Navigate to: Connected apps on the sidebar. Then click the Freckle APi tab and then on Personal Access Tokens. You will be provided with a long string. Copy and use it in the class
- Hours - The number of hours you want to log
- client_name - This is the name of your project/client on freckle. If you work for github you will use, github as the client name.
- days - This is the number of days back you want to log. If you want to log time from one month ago till now, enter 30 as the days.
Right now the tags are hardcorded for billable hours for people on partner engagement(Andela). The hardcorded tags are #parnerEngagement and #clientEngagement. Hopefully this willl change soon.
- Make it a CLI or a chrome extension??
- Not hardcode tags/description
- Consider non ruby users - probably by making it a chrome extension or anything else that will make it easy to use.