From 2dbe987740fa53b394fdbd4e85c989c30705cbae Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 5 Nov 2018 15:12:41 +0100 Subject: [PATCH] Add a singular 'Assignee' field to PR and Issue payloads This is present when the action for a PR or Issue is "assigned" or "unassiged", detailing the user assigned or unassiged. --- github/payload.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github/payload.go b/github/payload.go index 194fd3a..9291e9c 100644 --- a/github/payload.go +++ b/github/payload.go @@ -1412,6 +1412,7 @@ type IssuesPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"sender"` + Assignee *Assignee `json:"assignee"` } // LabelPayload contains the information for GitHub's label hook event @@ -3171,6 +3172,7 @@ type PullRequestPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"sender"` + Assignee *Assignee `json:"assignee"` Installation struct { ID int64 `json:"id"` } `json:"installation"`