From 23b04d56d37aec48009b2076ba67bcb16b745470 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 14 May 2025 16:45:46 -0400 Subject: [PATCH] Enhance lambda_handler: use a consistent branch name 'repo-init' for triggering workflows instead of the feature branch variable --- template_automation/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template_automation/app.py b/template_automation/app.py index 1e3624e..ce61a6a 100644 --- a/template_automation/app.py +++ b/template_automation/app.py @@ -228,11 +228,11 @@ def lambda_handler(event: dict, context) -> dict: # Optionally trigger initialization workflow if template_input.trigger_init_workflow: try: - logger.info(f"Attempting to trigger workflow initialize.yml in repository {repo_name}") + logger.info(f"Attempting to trigger workflow initialize.yml on branch repo-init in repository {repo_name}") github.trigger_workflow( repo_name=repo_name, workflow_id="initialize.yml", - ref=feature_branch + ref="repo-init" # Using the consistent branch name instead of feature_branch variable ) logger.info(f"Successfully triggered initialize.yml workflow in repository {repo_name}") except requests.exceptions.HTTPError as e: