File tree 1 file changed +5
-22
lines changed 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -488,27 +488,10 @@ type Author struct {
488
488
Email string `json:"email"`
489
489
}
490
490
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
501
493
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"`
514
497
}
You can’t perform that action at this time.
0 commit comments