@@ -251,9 +251,9 @@ type ListProjectMergeRequestsOptions struct {
251
251
OrderBy * string `url:"order_by,omitempty" json:"order_by,omitempty"`
252
252
Sort * string `url:"sort,omitempty" json:"sort,omitempty"`
253
253
Milestone * string `url:"milestone,omitempty" json:"milestone,omitempty"`
254
- View * LabelOptions `url:"view,omitempty" json:"view,omitempty"`
254
+ View * string `url:"view,omitempty" json:"view,omitempty"`
255
255
Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
256
- NotLabels * Labels `url:"not[labels],comma,omitempty" json:"not[labels],omitempty"`
256
+ NotLabels * LabelOptions `url:"not[labels],comma,omitempty" json:"not[labels],omitempty"`
257
257
WithLabelsDetails * bool `url:"with_labels_details,omitempty" json:"with_labels_details,omitempty"`
258
258
WithMergeStatusRecheck * bool `url:"with_merge_status_recheck,omitempty" json:"with_merge_status_recheck,omitempty"`
259
259
CreatedAfter * time.Time `url:"created_after,omitempty" json:"created_after,omitempty"`
@@ -312,10 +312,10 @@ type ListGroupMergeRequestsOptions struct {
312
312
State * string `url:"state,omitempty" json:"state,omitempty"`
313
313
OrderBy * string `url:"order_by,omitempty" json:"order_by,omitempty"`
314
314
Sort * string `url:"sort,omitempty" json:"sort,omitempty"`
315
- Milestone * LabelOptions `url:"milestone,omitempty" json:"milestone,omitempty"`
316
- View * LabelOptions `url:"view,omitempty" json:"view,omitempty"`
317
- Labels * Labels `url:"labels,comma,omitempty" json:"labels,omitempty"`
318
- NotLabels * Labels `url:"not[labels],comma,omitempty" json:"not[labels],omitempty"`
315
+ Milestone * string `url:"milestone,omitempty" json:"milestone,omitempty"`
316
+ View * string `url:"view,omitempty" json:"view,omitempty"`
317
+ Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
318
+ NotLabels * LabelOptions `url:"not[labels],comma,omitempty" json:"not[labels],omitempty"`
319
319
WithLabelsDetails * bool `url:"with_labels_details,omitempty" json:"with_labels_details,omitempty"`
320
320
WithMergeStatusRecheck * bool `url:"with_merge_status_recheck,omitempty" json:"with_merge_status_recheck,omitempty"`
321
321
CreatedAfter * time.Time `url:"created_after,omitempty" json:"created_after,omitempty"`
@@ -682,10 +682,10 @@ func (s *MergeRequestsService) GetIssuesClosedOnMerge(pid interface{}, mergeRequ
682
682
// https://docs.gitlab.com/ee/api/merge_requests.html#create-mr
683
683
type CreateMergeRequestOptions struct {
684
684
Title * string `url:"title,omitempty" json:"title,omitempty"`
685
- Description * LabelOptions `url:"description,omitempty" json:"description,omitempty"`
685
+ Description * string `url:"description,omitempty" json:"description,omitempty"`
686
686
SourceBranch * string `url:"source_branch,omitempty" json:"source_branch,omitempty"`
687
687
TargetBranch * string `url:"target_branch,omitempty" json:"target_branch,omitempty"`
688
- Labels * Labels `url:"labels,comma,omitempty" json:"labels,omitempty"`
688
+ Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
689
689
AssigneeID * int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
690
690
AssigneeIDs * []int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
691
691
ReviewerIDs * []int `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
@@ -730,12 +730,12 @@ type UpdateMergeRequestOptions struct {
730
730
Title * string `url:"title,omitempty" json:"title,omitempty"`
731
731
Description * string `url:"description,omitempty" json:"description,omitempty"`
732
732
TargetBranch * string `url:"target_branch,omitempty" json:"target_branch,omitempty"`
733
- AssigneeID * LabelOptions `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
734
- AssigneeIDs * LabelOptions `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
735
- ReviewerIDs * LabelOptions `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
736
- Labels * Labels `url:"labels,comma,omitempty" json:"labels,omitempty"`
737
- AddLabels * Labels `url:"add_labels,comma,omitempty" json:"add_labels,omitempty"`
738
- RemoveLabels * Labels `url:"remove_labels,comma,omitempty" json:"remove_labels,omitempty"`
733
+ AssigneeID * int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
734
+ AssigneeIDs * [] int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
735
+ ReviewerIDs * [] int `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
736
+ Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
737
+ AddLabels * LabelOptions `url:"add_labels,comma,omitempty" json:"add_labels,omitempty"`
738
+ RemoveLabels * LabelOptions `url:"remove_labels,comma,omitempty" json:"remove_labels,omitempty"`
739
739
MilestoneID * int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"`
740
740
StateEvent * string `url:"state_event,omitempty" json:"state_event,omitempty"`
741
741
RemoveSourceBranch * bool `url:"remove_source_branch,omitempty" json:"remove_source_branch,omitempty"`
0 commit comments