From 7e00656ab18b7591e78efb0dc174df3e6a6b7574 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 26 May 2025 11:35:54 +0200 Subject: [PATCH] fixed condition --- pull_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pull_requests.py b/pull_requests.py index e03ef69..c61b3d5 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -52,8 +52,8 @@ def is_pull_good(pull: PullRequest, verbose: bool = False) -> bool: if comments.totalCount == 2: comment_1, comment_2 = sorted(comments, key=lambda c: c.created_at) - if comment_2.user is not None: - return False # we can't if the second is from the author, so we discard the PR + if comment_2.user is None: + return False if comment_1.user is not None and not ( comment_2.in_reply_to_id == comment_1.id # is reply