mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
Typo when parsing the suggestion part
This commit is contained in:
@ -294,8 +294,8 @@ class GithubProvider(GitProvider):
|
|||||||
for comment in invalid_comments:
|
for comment in invalid_comments:
|
||||||
try:
|
try:
|
||||||
fixed_comment = copy.copy(comment) # avoid modifying the original comment dict for later logging
|
fixed_comment = copy.copy(comment) # avoid modifying the original comment dict for later logging
|
||||||
if "suggestion```" in comment["body"]:
|
if "```suggestion" in comment["body"]:
|
||||||
fixed_comment["body"] = comment["body"].split("suggestion```")[0]
|
fixed_comment["body"] = comment["body"].split("```suggestion")[0]
|
||||||
if "start_line" in comment:
|
if "start_line" in comment:
|
||||||
fixed_comment["line"] = comment["start_line"]
|
fixed_comment["line"] = comment["start_line"]
|
||||||
del fixed_comment["start_line"]
|
del fixed_comment["start_line"]
|
||||||
|
Reference in New Issue
Block a user