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.
This commit is contained in:
Pieter Lexis
2018-11-05 15:12:41 +01:00
parent b3a5a8edf7
commit 2dbe987740
+2
View File
@@ -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"`