diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index 54f016cb..c3e79eb1 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -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"]