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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user