From 65f5d607011cfc242cfa889680752dab7e787b87 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 4 Apr 2019 17:20:26 +0100 Subject: [PATCH] Add requested_team to PullRequestPayload --- github/payload.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/github/payload.go b/github/payload.go index 6edd4bc..30b12a3 100644 --- a/github/payload.go +++ b/github/payload.go @@ -3255,7 +3255,19 @@ type PullRequestPayload struct { } `json:"sender"` Assignee *Assignee `json:"assignee"` RequestedReviewer *Assignee `json:"requested_reviewer"` - Installation struct { + RequestedTeam struct { + Name string `json:"name"` + ID int64 `json:"id"` + Slug string `json:"slug"` + Description string `json:"description"` + Privacy string `json:"privacy"` + URL string `json:"url"` + HTMLURL string `json:"html_url"` + MembersURL string `json:"members_url"` + RepositoriesURL string `json:"repositories_url"` + Permission string `json:"permission"` + } `json:"requested_team"` + Installation struct { ID int64 `json:"id"` } `json:"installation"` }