Create Events on Google Calendar with Git Commit

Create Events on Google Calendar with Git Commit

To track colleagues’ work or let colleagues track my work, we started using Google Calendar with writing Git Commits as events.

Requirements

  • google-api-python-client
  • oauth2
  • rfc3339

Set up

pip install google-api-python-client oauth2 rfc3339

cd /path/to/project
curl -L http://s.liap.us/gcal-post-commit.py > .git/hooks/post-commit
chmod +x .git/hooks/post-commit

vim .git/hooks/post-commit

Create new client on the console and replace variables.

comments powered by Disqus