Merge pull request #131 from riyadhalnur/fix/gitlab-mr-assignee
FIX: gitlab merge request event assignee payload
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
|
||||
|
||||
+10
-1
@@ -136,5 +136,14 @@
|
||||
"group_id": 41
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 6,
|
||||
"name": "User1",
|
||||
"username": "user1",
|
||||
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon",
|
||||
"email": "user1@gmail.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user