mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Fix a bug
This commit is contained in:
parent
bc88e0492f
commit
2dfddd8cea
1 changed files with 1 additions and 2 deletions
|
|
@ -666,8 +666,7 @@ class GithubProvider(GitProvider):
|
||||||
|
|
||||||
# link to diff
|
# link to diff
|
||||||
sha_file = hashlib.sha256(relevant_file.encode('utf-8')).hexdigest()
|
sha_file = hashlib.sha256(relevant_file.encode('utf-8')).hexdigest()
|
||||||
pr_url = self.get_pr_url() # for example 'https://github.com/Codium-ai/pr-agent/pull/1'
|
link = f"{self.base_url_html}/{self.repo}/pull/{self.pr_num}/files#diff-{sha_file}R{absolute_position}"
|
||||||
link = f"{pr_url}/files#diff-{sha_file}R{absolute_position}"
|
|
||||||
return link
|
return link
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if get_settings().config.verbosity_level >= 2:
|
if get_settings().config.verbosity_level >= 2:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue