This commit is contained in:
2026-01-27 09:31:21 +00:00
2 changed files with 22 additions and 17 deletions

View File

@@ -349,16 +349,6 @@ def append_blocks_to_notion_page(token: str, page_id: str, blocks: List[Dict]) -
SESSION_DIR = ".dev_session"
SESSION_FILE_PATH = os.path.join(SESSION_DIR, "SESSION_INFO")
def save_session_info(task_id: str, token: str):
"""Speichert die Task-ID und den Token für den Git-Hook."""
os.makedirs(SESSION_DIR, exist_ok=True)
session_data = {
"task_id": task_id,
"token": token
}
with open(SESSION_FILE_PATH, "w") as f:
json.dump(session_data, f)
def install_git_hook():
"""Installiert das notion_commit_hook.py Skript als post-commit Git-Hook."""
git_hooks_dir = os.path.join(".git", "hooks")