From b6feec9e7d9232c0074511e6872e60234167f8d9 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 23 Jan 2024 05:03:26 +0100 Subject: Check for comments in copilot --- etc/tool/copilot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/tool/copilot.py b/etc/tool/copilot.py index 003daf58..348b8bb8 100644 --- a/etc/tool/copilot.py +++ b/etc/tool/copilot.py @@ -217,7 +217,7 @@ def main(): if not pull: print(f"No PR number found") exit() - if pull.get_reviews().totalCount > 0 or pull.get_comments().totalCount > 0: + if pull.get_reviews().totalCount > 0 or pull.get_issue_comments().totalCount > 0: print(f"Has already a review") exit() diff = get_diff(pull.diff_url) -- cgit v1.2.3