Typo when parsing the suggestion part

This commit is contained in:
zmeir
2024-01-10 11:59:45 +02:00
parent 19c14b940e
commit b9951fce62

View File

@ -294,8 +294,8 @@ class GithubProvider(GitProvider):
for comment in invalid_comments:
try:
fixed_comment = copy.copy(comment) # avoid modifying the original comment dict for later logging
if "suggestion```" in comment["body"]:
fixed_comment["body"] = comment["body"].split("suggestion```")[0]
if "```suggestion" in comment["body"]:
fixed_comment["body"] = comment["body"].split("```suggestion")[0]
if "start_line" in comment:
fixed_comment["line"] = comment["start_line"]
del fixed_comment["start_line"]