Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions deep_code/utils/github_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ def add_file(self, file_path: str, content):
if not isinstance(content, (dict, list, str, int, float, bool, type(None))):
raise TypeError(f"Cannot serialize content of type {type(content)}")
try:
json_content = json.dumps(content, indent=2, default=serialize)
json_content = json.dumps(
content, indent=2, ensure_ascii=False, default=serialize
)
except TypeError as e:
raise RuntimeError(f"JSON serialization failed: {e}")
with open(full_path, "w") as f:
with open(full_path, "w", encoding="utf-8") as f:
f.write(json_content)
try:
subprocess.run(["git", "add", str(full_path)], check=True)
Expand Down