Skip to content

Commit 7c053ed

Browse files
CI: add .strip() to comment/ID file read
Co-authored-by: Aditya Sharad <[email protected]>
1 parent 687ecff commit 7c053ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/scripts/library-coverage/comment-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def comment_pr(repo, run_id):
5959
try:
6060
utils.download_artifact(repo, "comment", "comment", run_id)
6161
with open("comment/ID") as file:
62-
raw_comment_id = int(file.read())
62+
raw_comment_id = int(file.read().strip())
6363
except Exception as e:
6464
# If there is no existing comment, the `comment/ID` artifact
6565
# will not exist. This will cause `utils.download_artifact`

0 commit comments

Comments
 (0)