var reviewComments []*api.PullReviewComment
DecodeJSON(t, resp, &reviewComments)
assert.Len(t, reviewComments, 1)
- assert.EqualValues(t, "Ghost", reviewComments[0].Reviewer.UserName)
+ assert.EqualValues(t, "Ghost", reviewComments[0].Poster.UserName)
assert.EqualValues(t, "a review from a deleted user", reviewComments[0].Body)
assert.EqualValues(t, comment.ID, reviewComments[0].ID)
assert.EqualValues(t, comment.UpdatedUnix, reviewComments[0].Updated.Unix())
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(),
type PullReviewComment struct {
ID int64 `json:"id"`
Body string `json:"body"`
- Reviewer *User `json:"user"`
+ Poster *User `json:"user"`
+ Resolver *User `json:"resolver"`
ReviewID int64 `json:"pull_request_review_id"`
// swagger:strfmt date-time
"type": "string",
"x-go-name": "HTMLPullURL"
},
+ "resolver": {
+ "$ref": "#/definitions/User"
+ },
"updated_at": {
"type": "string",
"format": "date-time",