We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400de2f commit d384e0fCopy full SHA for d384e0f
image/src/github_pr_comment/comment.py
@@ -374,7 +374,8 @@ def update_comment(
374
if comment.comment_url is not None:
375
response = github.patch(comment.comment_url, json={'body': _to_api_payload(new_comment)})
376
response.raise_for_status()
377
- comment.node_id = response.json().get('node_id')
+ if comment.node_id is None:
378
+ comment.node_id = response.json().get('node_id')
379
else:
380
response = github.post(comment.issue_url + '/comments', json={'body': _to_api_payload(new_comment)})
381
0 commit comments