Skip to content

Commit

Permalink
Merge pull request Codium-ai#419 from KennyDizi/fix_synstax_error
Browse files Browse the repository at this point in the history
Fix Syntax Error in f-string Expression
  • Loading branch information
hussam789 committed Nov 2, 2023
2 parents 6666a12 + 9fbf896 commit ce64877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pr_agent/tools/pr_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ def _prepare_pr_review(self) -> str:
last_commit_msg = self.incremental.commits_range[0].commit.message if self.incremental.commits_range else ""
incremental_review_markdown_text = f"Starting from commit {last_commit_url}"
if last_commit_msg:
incremental_review_markdown_text += f" \n_({last_commit_msg.splitlines(keepends=False)[0].replace('_', r'\_')})_"
replacement = last_commit_msg.splitlines(keepends=False)[0].replace('_', r'\_')
incremental_review_markdown_text += f" \n_({replacement})_"
data = OrderedDict(data)
data.update({'Incremental PR Review': {
"⏮️ Review for commits since previous PR-Agent review": incremental_review_markdown_text}})
Expand Down

0 comments on commit ce64877

Please sign in to comment.