support gitlab describe function

This commit is contained in:
Hussam.lawen
2023-07-18 13:03:36 +03:00
parent e5a8ed205e
commit f2b74b6970
4 changed files with 8 additions and 7 deletions

View File

@ -67,7 +67,7 @@ class GithubProvider(GitProvider):
if relevant_line_in_file in line:
position = i
break
elif relevant_line_in_file[0] == '+' and relevant_line_in_file[1:] in line:
elif relevant_line_in_file[0] == '+' and relevant_line_in_file[1:].lstrip() in line:
# The model often adds a '+' to the beginning of the relevant_line_in_file even if originally
# it's a context line
position = i