From 926d3a3681854319b732006696c00896ca59eac8 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Tue, 3 Jun 2025 11:51:07 +0200 Subject: [PATCH] now using original start line as default and start line as backup instead of the other way around --- pull_requests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pull_requests.py b/pull_requests.py index 69045da..c22f7df 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -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,