/NotionHook-Python

Git hooks to backup your commits to notion

Primary LanguagePythonMIT LicenseMIT

NotionHook

A YOUTUBE EXPLANATION VIDEO WILL COME SOON!

This script only works on macOS, I haven't been able to make it work on Windows.

These scripts uses notion-py.

With these files you can save in notion a backup of your commit messages, url and time.

  • Move the files in .git/hooks folder inside your project folder, or the one you configured by git config --global core.hooksPath.
  • open the terminal, navigate in the folder and execute python3 ./setHooks.py
  • paste your token and the url of the database view.
  • Now every commit will take some more time, but it will be saved into your database view:

image

Please use the exact same column names!