summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 6ee1fb0d..61341bb1 100644
--- a/etc/tool/copilot.py
+++ b/etc/tool/copilot.py
@@ -31,7 +31,7 @@ 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())
+ pr_number = int(file.read().strip())
if not pr_number:
return