diff --git a/gitlab/payload.go b/gitlab/payload.go index 97ba3ec..3bf4e9f 100644 --- a/gitlab/payload.go +++ b/gitlab/payload.go @@ -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 diff --git a/testdata/gitlab/merge-request-event.json b/testdata/gitlab/merge-request-event.json index eb890fb..785427c 100644 --- a/testdata/gitlab/merge-request-event.json +++ b/testdata/gitlab/merge-request-event.json @@ -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" + } + ] } \ No newline at end of file