fix(gitops): define timestamp_slug globally in apply_multi_file_changes

This commit is contained in:
Inaki Fernandez
2026-07-12 22:59:12 +02:00
parent 2bb82455f9
commit 5170b8deb5

View File

@@ -52,11 +52,11 @@ class RepositoryController:
def apply_multi_file_changes(self, updates: dict, metrics: dict, safety_report: str = "") -> str:
import os
timestamp_slug = datetime.now().strftime("%Y%m%d-%H%M")
run_id = os.environ.get("GITHUB_RUN_ID")
if run_id:
branch_name = f"bot/knowledge-update-run-{run_id}"
else:
timestamp_slug = datetime.now().strftime("%Y%m%d")
branch_name = f"bot/knowledge-update-{timestamp_slug}"
try: