FIX: gitlab merge request event assignee payload
- gitlab updated their MR payload which adds a parent field for the list of assignees - this fix update the Assignee struct to add the missing `Email` and `ID` field - adds an array of assignees as part of the MR event payload Closes #101
This commit is contained in:
@@ -57,6 +57,7 @@ type MergeRequestEventPayload struct {
|
||||
Project Project `json:"project"`
|
||||
Repository Repository `json:"repository"`
|
||||
Labels []Label `json:"labels"`
|
||||
Assignees []Assignee `json:"assignees"`
|
||||
}
|
||||
|
||||
// PushEventPayload contains the information for GitLab's push event
|
||||
@@ -449,9 +450,11 @@ type MergeRequest struct {
|
||||
|
||||
// Assignee contains all of the GitLab assignee information
|
||||
type Assignee struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Username string `json:"username"`
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// StDiff contains all of the GitLab diff information
|
||||
|
||||
Reference in New Issue
Block a user