diff options
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/event_types.go')
-rw-r--r-- | vendor/github.com/xanzy/go-gitlab/event_types.go | 61 |
1 files changed, 38 insertions, 23 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/event_types.go b/vendor/github.com/xanzy/go-gitlab/event_types.go index b4f48631..ae04a049 100644 --- a/vendor/github.com/xanzy/go-gitlab/event_types.go +++ b/vendor/github.com/xanzy/go-gitlab/event_types.go @@ -561,28 +561,20 @@ type MergeEvent struct { Email string `json:"email"` } `json:"author"` } `json:"last_commit"` - WorkInProgress bool `json:"work_in_progress"` - URL string `json:"url"` - Action string `json:"action"` - OldRev string `json:"oldrev"` - Assignee struct { - Name string `json:"name"` - Username string `json:"username"` - AvatarURL string `json:"avatar_url"` - } `json:"assignee"` + WorkInProgress bool `json:"work_in_progress"` + URL string `json:"url"` + Action string `json:"action"` + OldRev string `json:"oldrev"` + Assignee MergeAssignee `json:"assignee"` } `json:"object_attributes"` - Repository *Repository `json:"repository"` - Assignee struct { - Name string `json:"name"` - Username string `json:"username"` - AvatarURL string `json:"avatar_url"` - } `json:"assignee"` - Labels []Label `json:"labels"` - Changes struct { - AssigneeID struct { - Previous int `json:"previous"` - Current int `json:"current"` - } `json:"assignee_id"` + Repository *Repository `json:"repository"` + Assignee MergeAssignee `json:"assignee"` + Labels []Label `json:"labels"` + Changes struct { + Assignees struct { + Previous []MergeAssignee `json:"previous"` + Current []MergeAssignee `json:"current"` + } `json:"assignees"` Description struct { Previous string `json:"previous"` Current string `json:"current"` @@ -591,17 +583,40 @@ type MergeEvent struct { Previous []Label `json:"previous"` Current []Label `json:"current"` } `json:"labels"` - UpdatedByID struct { + SourceBranch struct { + Previous string `json:"previous"` + Current string `json:"current"` + } `json:"source_branch"` + SourceProjectID struct { Previous int `json:"previous"` Current int `json:"current"` - } `json:"updated_by_id"` + } `json:"source_project_id"` + TargetBranch struct { + Previous string `json:"previous"` + Current string `json:"current"` + } `json:"target_branch"` + TargetProjectID struct { + Previous int `json:"previous"` + Current int `json:"current"` + } `json:"target_project_id"` Title struct { Previous string `json:"previous"` Current string `json:"current"` } `json:"title"` + UpdatedByID struct { + Previous int `json:"previous"` + Current int `json:"current"` + } `json:"updated_by_id"` } `json:"changes"` } +// MergeAssignee represents a merge assignee. +type MergeAssignee struct { + Name string `json:"name"` + Username string `json:"username"` + AvatarURL string `json:"avatar_url"` +} + // MergeParams represents the merge params. type MergeParams struct { ForceRemoveSourceBranch bool `json:"force_remove_source_branch"` |