Skip to content

Commit

Permalink
Tag comment body properly
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Nov 13, 2024
1 parent 89013ec commit 63ecb32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/post_lab_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def get_comment_id():

def update_comment(comment_id, new_body):
"""Updates an existing comment by ID with new content."""
tagged_body = f"{new_body}\n\n{COMMENT_ID_STRING}"
url = f"https://api.github.com/repos/{REPO}/issues/comments/{comment_id}"
response = requests.patch(url, headers=headers, json={"body": new_body})
response = requests.patch(url, headers=headers, json={"body": tagged_body})
response.raise_for_status()
print("Comment updated successfully.")

Expand Down

0 comments on commit 63ecb32

Please sign in to comment.