diff options
author | sotho <alex@segv.de> | 2021-03-28 00:37:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 00:37:51 +0100 |
commit | e7609929c18e1107b03bacb3e31049a7cbb6ffc8 (patch) | |
tree | 2cc2ec2b8a3ead75f9ce2907f6e4209c658a55db /modules/convert/pull_review.go | |
parent | 290cf75f9343a43d9770b1d6f8f3332a23357e27 (diff) | |
download | gitea-e7609929c18e1107b03bacb3e31049a7cbb6ffc8.tar.gz gitea-e7609929c18e1107b03bacb3e31049a7cbb6ffc8.zip |
Expose resolver via API (#15167)
* Expose resolver via API
Diffstat (limited to 'modules/convert/pull_review.go')
-rw-r--r-- | modules/convert/pull_review.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go index 18c6c8e58c..b461b27b5a 100644 --- a/modules/convert/pull_review.go +++ b/modules/convert/pull_review.go @@ -86,7 +86,8 @@ func ToPullReviewCommentList(review *models.Review, doer *models.User) ([]*api.P apiComment := &api.PullReviewComment{ ID: comment.ID, Body: comment.Content, - Reviewer: ToUser(comment.Poster, doer), + Poster: ToUser(comment.Poster, doer), + Resolver: ToUser(comment.ResolveDoer, doer), ReviewID: review.ID, Created: comment.CreatedUnix.AsTime(), Updated: comment.UpdatedUnix.AsTime(), |