From 01a1302e023a55a842928257adf64a9a1625a121 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 28 Mar 2019 10:10:15 +0000 Subject: [PATCH] Add requested_reviewer to GitHub pull request --- github/payload.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/github/payload.go b/github/payload.go index 69d0c77..6edd4bc 100644 --- a/github/payload.go +++ b/github/payload.go @@ -3253,8 +3253,9 @@ type PullRequestPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"sender"` - Assignee *Assignee `json:"assignee"` - Installation struct { + Assignee *Assignee `json:"assignee"` + RequestedReviewer *Assignee `json:"requested_reviewer"` + Installation struct { ID int64 `json:"id"` } `json:"installation"` } @@ -3749,7 +3750,7 @@ type PullRequestReviewCommentPayload struct { Href string `json:"href"` } `json:"pull_request"` } `json:"_links"` - InReplyToID int64 `json:"in_reply_to_id"` + InReplyToID int64 `json:"in_reply_to_id"` } `json:"comment"` PullRequest struct { URL string `json:"url"`