Skip to content

Commit

Permalink
fix: be ready to have no PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 27, 2024
1 parent abdf8bb commit ad0884f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dinghy/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,10 @@ async def _process_pull_request(self, pull):
com0 = thread["comments"]["nodes"][0]
com0[DD_children] = thread["comments"]["nodes"][1:]
com0["isResolved"] = thread["isResolved"]
rev_id = com0["pullRequestReview"]["id"]
review_comments = reviews[rev_id].setdefault(DD_children, [])
review_comments.append(com0)
if com0["pullRequestReview"]:
rev_id = com0["pullRequestReview"]["id"]
review_comments = reviews[rev_id].setdefault(DD_children, [])
review_comments.append(com0)

# For each review, show it if it has a body, or if it has children, or
# if it's not just "COMMENTED".
Expand Down

0 comments on commit ad0884f

Please sign in to comment.