Git activity tracker#
Can you track your git activity with a script? Yes.
Why should you? It feels good - at least to me - to have a way to grasp how all the non-work related stuff is going. Writing, games, etc. Some of these activities are on GitHub. So I can track what goes on by tracking it.
The plan#
- Make a script that scans your report on a monthly basis and report on commits. (Yep, commits are a proxy for activity. It could be worse)
- Run it monthly somehow
- Be happy
The stuff#
I used Patrick Loeber’s template to use GitHub actions to run cronjob. Tthere is nice blogpost here giving more details. I had some issues with that code, so I opened branch with the fix I used [here}(https://github.com/1110sillabo/python-github-action-template).
To interact with github I used GitPython.