Skip to content

Commit 8fc5bca

Browse files
authored
Update payload.go
apply go-playground#99
1 parent cb4aa3d commit 8fc5bca

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

gitlab/payload.go

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -488,27 +488,10 @@ type Author struct {
488488
Email string `json:"email"`
489489
}
490490

491-
// Changes contains all changes associated with a GitLab issue or MR
492-
type Changes struct {
493-
LabelChanges LabelChanges `json:"labels"`
494-
}
495-
496-
// LabelChanges contains changes in labels assocatiated with a GitLab issue or MR
497-
type LabelChanges struct {
498-
Previous []Label `json:"previous"`
499-
Current []Label `json:"current"`
500-
}
491+
// Changes contains all the changes in a MergeRequest
492+
type Changes map[string]Change
501493

502-
// Label contains all of the GitLab label information
503-
type Label struct {
504-
ID int64 `json:"id"`
505-
Title string `json:"title"`
506-
Color string `json:"color"`
507-
ProjectID int64 `json:"project_id"`
508-
CreatedAt customTime `json:"created_at"`
509-
UpdatedAt customTime `json:"updated_at"`
510-
Template bool `json:"template"`
511-
Description string `json:"description"`
512-
Type string `json:"type"`
513-
GroupID int64 `json:"group_id"`
494+
type Change struct {
495+
Current interface{} `json:"current"`
496+
Previous interface{} `json:"previous"`
514497
}

0 commit comments

Comments
 (0)