mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +08:00
Fix a bug
This commit is contained in:
@ -666,8 +666,7 @@ class GithubProvider(GitProvider):
|
||||
|
||||
# link to diff
|
||||
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"{pr_url}/files#diff-{sha_file}R{absolute_position}"
|
||||
link = f"{self.base_url_html}/{self.repo}/pull/{self.pr_num}/files#diff-{sha_file}R{absolute_position}"
|
||||
return link
|
||||
except Exception as e:
|
||||
if get_settings().config.verbosity_level >= 2:
|
||||
|
Reference in New Issue
Block a user