@@ -37,8 +37,8 @@ type IssueEventPayload struct {
37
37
Project Project `json:"project"`
38
38
Repository Repository `json:"repository"`
39
39
ObjectAttributes ObjectAttributes `json:"object_attributes"`
40
- Assignee Assignee `json:"assignee"`
41
- Assignees []Assignee `json:"assignees"`
40
+ Assignee User `json:"assignee"`
41
+ Assignees []User `json:"assignees"`
42
42
Changes Changes `json:"changes"`
43
43
}
44
44
@@ -59,17 +59,13 @@ type MergeRequestEventPayload struct {
59
59
Project Project `json:"project"`
60
60
Repository Repository `json:"repository"`
61
61
Labels []Label `json:"labels"`
62
- Assignees []Assignee `json:"assignees"`
63
- Reviewers []Reviewers `json:"reviewers"`
62
+ Assignees []User `json:"assignees"`
63
+ Reviewers []User `json:"reviewers"`
64
64
}
65
65
66
66
// Reviewers contains all of the GitLab reviewers information
67
- type Reviewers struct {
68
- ID int `json:"id"`
69
- Name string `json:"name"`
70
- Username string `json:"username"`
71
- AvatarURL string `json:"avatar_url"`
72
- }
67
+ // Deprecated: Use User instead
68
+ type Reviewers User
73
69
74
70
// PushEventPayload contains the information for GitLab's push event
75
71
type PushEventPayload struct {
@@ -728,7 +724,7 @@ type ObjectAttributes struct {
728
724
Source Source `json:"source"`
729
725
Target Target `json:"target"`
730
726
LastCommit LastCommit `json:"last_commit"`
731
- Assignee Assignee `json:"assignee"`
727
+ Assignee User `json:"assignee"`
732
728
}
733
729
734
730
// PipelineObjectAttributes contains pipeline specific GitLab object attributes information
@@ -800,18 +796,13 @@ type MergeRequest struct {
800
796
Target Target `json:"target"`
801
797
LastCommit LastCommit `json:"last_commit"`
802
798
WorkInProgress bool `json:"work_in_progress"`
803
- Assignee Assignee `json:"assignee"`
799
+ Assignee User `json:"assignee"`
804
800
URL string `json:"url"`
805
801
}
806
802
807
803
// Assignee contains all of the GitLab assignee information
808
- type Assignee struct {
809
- ID int64 `json:"id"`
810
- Name string `json:"name"`
811
- Username string `json:"username"`
812
- AvatarURL string `json:"avatar_url"`
813
- Email string `json:"email"`
814
- }
804
+ // Deprecated: Use User instead
805
+ type Assignee User
815
806
816
807
// StDiff contains all of the GitLab diff information
817
808
type StDiff struct {
0 commit comments