Dont load Review if Comment is CommentTypeReviewRequest (#28551) (#29160)

Backport #28551

RequestReview get deleted on review.
So we don't have to try to load them on comments.
This commit is contained in:
6543
2024-02-13 23:29:33 +01:00
committed by GitHub
parent 732d511e04
commit 0ac3186267
3 changed files with 12 additions and 1 deletions

View File

@@ -622,6 +622,9 @@ func AddReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_mo
return nil, err
}
// func caller use the created comment to retrieve created review too.
comment.Review = review
return comment, committer.Commit()
}