Skip to content

Commit

Permalink
Enhance lambda_handler: update template settings serialization to JSO…
Browse files Browse the repository at this point in the history
…N format for configuration file writing
  • Loading branch information
Your Name committed May 14, 2025
1 parent 7b7eb3c commit 1c176eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template_automation/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 1c176eb

Please sign in to comment.