summaryrefslogtreecommitdiffstats
path: root/etc/tool
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-01-23 09:31:02 +0100
committerGitHub <noreply@github.com>2024-01-23 09:31:02 +0100
commitc10f49de5ffd3cb020fc94c390ea3331fa58413d (patch)
treeb2bfafba1f5856ecd911f210767c448fd971ec5b /etc/tool
parentMerge pull request #1504 from hlohaus/sort (diff)
parentCheck for comments in copilot (diff)
downloadgpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar.gz
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar.bz2
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar.lz
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar.xz
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.tar.zst
gpt4free-c10f49de5ffd3cb020fc94c390ea3331fa58413d.zip
Diffstat (limited to 'etc/tool')
-rw-r--r--etc/tool/copilot.py2
1 files changed, 1 insertions, 1 deletions
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)