From 55695eda39b4bc2e5f7915484eb99c9bfe1edae6 Mon Sep 17 00:00:00 2001
From: Heiner Lohaus <hlohaus@users.noreply.github.com>
Date: Tue, 23 Jan 2024 02:13:36 +0100
Subject: Fix create copilot comment

---
 etc/tool/copilot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'etc')

diff --git a/etc/tool/copilot.py b/etc/tool/copilot.py
index def3599e..003daf58 100644
--- a/etc/tool/copilot.py
+++ b/etc/tool/copilot.py
@@ -239,7 +239,7 @@ def main():
         if comments:
             pull.create_review(body=review, comments=comments)
         else:
-            pull.create_comment(body=review)
+            pull.create_issue_comment(body=review)
     except Exception as e:
         print(f"Error posting review: {e}")
         exit(1)
-- 
cgit v1.2.3