diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-21 20:04:43 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-21 20:04:43 +0100 |
commit | 04a5e33ebea7e69b5477b89e9aea06a801c6571b (patch) | |
tree | 9296ab434f0cd5095ec91833b87db7b910a32726 /etc | |
parent | Fix error in copilot (diff) | |
download | gpt4free-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')
-rw-r--r-- | etc/tool/copilot.py | 4 |
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 |