Merge branch 'cr_update' into 'mgx_ops'

update: cr读取patch文件指定编码

See merge request pub/MetaGPT!286
This commit is contained in:
张雷 2024-08-08 12:40:10 +00:00
commit dc685c000f

View file

@ -85,7 +85,7 @@ class CodeReview:
if pre:
patch_file_content = pre.text
else:
async with aiofiles.open(patch_path) as f:
async with aiofiles.open(patch_path, encoding="utf-8") as f:
patch_file_content = await f.read()
await EditorReporter().async_report(patch_path)