Merge branch 'cr_updae' into 'mgx_ops'

Cr updae

See merge request pub/MetaGPT!305
This commit is contained in:
张雷 2024-08-13 08:54:01 +00:00
commit 1db1a1046c

View file

@ -208,6 +208,6 @@ class CodeReview(Action):
comments = await self.confirm_comments(patch=patch, comments=comments, points=points)
for comment in comments:
if comment["code"]:
if not (comment["code"].startswith("-") or comment["code"].isspace()):
if not (comment["code"].isspace()):
result.append(comment)
return result