Skip to content

Commit

Permalink
fixed relevant_file link
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Aug 9, 2023
1 parent 65eaf9a commit 0c1c99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr_agent/git_providers/github_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ def get_commit_messages(self) -> str:

def generate_link_to_relevant_line_number(self, suggestion) -> str:
try:
relevant_file = suggestion['relevant file']
relevant_file = suggestion['relevant file'].strip('`').strip("'")
relevant_line_str = suggestion['relevant line']
position, absolute_position = find_line_number_of_relevant_line_in_file \
(self.diff_files, relevant_file.strip('`'), relevant_line_str)
(self.diff_files, relevant_file, relevant_line_str)

if absolute_position != -1:
# # link to right file only
Expand Down

0 comments on commit 0c1c99b

Please sign in to comment.