Merge branch 'main' of https://floke-gitea.duckdns.org/Floke/Brancheneinstufung2
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user