mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-04 21:28:12 +02:00
now using original start line as default and start
line as backup instead of the other way around
This commit is contained in:
@ -201,13 +201,13 @@ def get_comments(pr: PullRequest) -> list[Comment]:
|
||||
f"Github gave a comment with no lines what so ever {comment}"
|
||||
)
|
||||
|
||||
from_ = comment.start_line
|
||||
from_ = comment.original_start_line
|
||||
if from_ is None:
|
||||
from_ = comment.original_start_line
|
||||
from_ = comment.start_line
|
||||
|
||||
to = comment.line
|
||||
to = comment.original_line
|
||||
if to is None:
|
||||
to = comment.original_line
|
||||
to = comment.line
|
||||
|
||||
comment_to_add = Comment(
|
||||
body=comment.body,
|
||||
|
Reference in New Issue
Block a user