@@ -498,10 +498,13 @@ func (s service) ListTimeline(ctx context.Context, rs string, id uint64, opt *ch
case "PullRequestReview":
switch event.PullRequestReview.State {
case githubql.PullRequestReviewStateApproved:
// TODO: Make this a thing that ListComments returns, etc. After all, it can have a non-empty body.
e.Payload = changes.ApprovedEvent{}
case githubql.PullRequestReviewStateChangesRequested:
// TODO: Make this a thing that ListComments returns, etc. After all, it can have a non-empty body.
e.Payload = changes.ChangesRequestedEvent{}
default:
continue
}
e.Actor = ghActor(event.PullRequestReview.Author)
e.CreatedAt = event.PullRequestReview.CreatedAt.Time