From 1c176eb29e72dfe797b0e86be4e09728e59a1fdd Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 14 May 2025 15:13:20 -0400 Subject: [PATCH] Enhance lambda_handler: update template settings serialization to JSON format for configuration file writing --- template_automation/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template_automation/app.py b/template_automation/app.py index 701ddb0..d79f733 100644 --- a/template_automation/app.py +++ b/template_automation/app.py @@ -181,10 +181,11 @@ def lambda_handler(event: dict, context) -> dict: github.create_branch(repo_name, feature_branch, from_ref=default_branch) # Write template configuration + import json github.write_file( repo=repo, path=DEFAULT_CONFIG_FILE, - content=template_input.template_settings.json(), + content=json.dumps(template_input.template_settings, indent=2), branch=feature_branch, commit_message=f"Initialize {DEFAULT_CONFIG_FILE} from template" )