From 5170b8deb528598219a2d4c17c6e31c895fed72e Mon Sep 17 00:00:00 2001 From: Inaki Fernandez Date: Sun, 12 Jul 2026 22:59:12 +0200 Subject: [PATCH] fix(gitops): define timestamp_slug globally in apply_multi_file_changes --- src/gitops_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitops_manager.py b/src/gitops_manager.py index 7fefe3b9..cecfa009 100644 --- a/src/gitops_manager.py +++ b/src/gitops_manager.py @@ -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: