summaryrefslogtreecommitdiffstats
path: root/etc/tool/copilot.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 20:04:43 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 20:04:43 +0100
commit04a5e33ebea7e69b5477b89e9aea06a801c6571b (patch)
tree9296ab434f0cd5095ec91833b87db7b910a32726 /etc/tool/copilot.py
parentFix error in copilot (diff)
downloadgpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar.gz
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar.bz2
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar.lz
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar.xz
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.tar.zst
gpt4free-04a5e33ebea7e69b5477b89e9aea06a801c6571b.zip
Diffstat (limited to 'etc/tool/copilot.py')
-rw-r--r--etc/tool/copilot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/tool/copilot.py b/etc/tool/copilot.py
index 61341bb1..def3599e 100644
--- a/etc/tool/copilot.py
+++ b/etc/tool/copilot.py
@@ -31,12 +31,12 @@ def get_pr_details(github: Github) -> PullRequest:
PullRequest: An object representing the pull request.
"""
with open('./pr_number', 'r') as file:
- pr_number = int(file.read().strip())
+ pr_number = file.read().strip()
if not pr_number:
return
repo = github.get_repo(GITHUB_REPOSITORY)
- pull = repo.get_pull(pr_number)
+ pull = repo.get_pull(int(pr_number))
return pull