From 2945c36899a1b4d6d9b450c2748af3f58de2f4a7 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 5 Oct 2023 18:21:52 +0300 Subject: [PATCH] source_branch --- pr_agent/git_providers/gitlab_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/gitlab_provider.py b/pr_agent/git_providers/gitlab_provider.py index 7a8e6bf9..2e6f2140 100644 --- a/pr_agent/git_providers/gitlab_provider.py +++ b/pr_agent/git_providers/gitlab_provider.py @@ -399,7 +399,7 @@ class GitLabProvider(GitProvider): if absolute_position != -1: # link to right file only - link = f"https://gitlab.com/codiumai/pr-agent/-/blob/{self.mr.target_branch}/{relevant_file}?ref_type=heads#L{absolute_position}" + link = f"https://gitlab.com/codiumai/pr-agent/-/blob/{self.mr.source_branch}/{relevant_file}?ref_type=heads#L{absolute_position}" # # link to diff # sha_file = hashlib.sha1(relevant_file.encode('utf-8')).hexdigest()