mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38: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}"
|
f"Github gave a comment with no lines what so ever {comment}"
|
||||||
)
|
)
|
||||||
|
|
||||||
from_ = comment.start_line
|
|
||||||
if from_ is None:
|
|
||||||
from_ = comment.original_start_line
|
from_ = comment.original_start_line
|
||||||
|
if from_ is None:
|
||||||
|
from_ = comment.start_line
|
||||||
|
|
||||||
to = comment.line
|
|
||||||
if to is None:
|
|
||||||
to = comment.original_line
|
to = comment.original_line
|
||||||
|
if to is None:
|
||||||
|
to = comment.line
|
||||||
|
|
||||||
comment_to_add = Comment(
|
comment_to_add = Comment(
|
||||||
body=comment.body,
|
body=comment.body,
|
||||||
|
Reference in New Issue
Block a user