Asks how long you worked on a commit then logs that amount of time to the corresponding JIRA ticket. Feel free to log issues or send PRs. Here is the blog post if you'd like a walkthrough of the code or if you would like to leave comments, suggestions or share experiences.
- Open your terminal
- cd to your github repo
- enter this command:
curl -sSL https://raw.githubusercontent.com/msolomonTMG/timesheet-githook/master/install.sh | bash
- When you commit on a branch that has a JIRA ticket in the name and you do not log time through a smart commit, a message will pop up asking how long that commit took to code.
- You can override the ticket in your branch name by including the ticket in your commit message
- Answer the question in this format:
- 1d (for one day)
- 2h (for two hours)
- 30m (for thirty minutes)
- 1h 10m (for one hour and ten minutes)
- I welcome pull requests to make this better!