Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit e8b85a2

Browse files
committed
Fix renaming Labels to LabelOptions
Somehow (I think the LSP) started to shift up the changes to fields directly above the actual location that needed to be updated.
1 parent c26aaf2 commit e8b85a2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

merge_requests.go

+14-14
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ type ListProjectMergeRequestsOptions struct {
251251
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
252252
Sort *string `url:"sort,omitempty" json:"sort,omitempty"`
253253
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"`
255255
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"`
257257
WithLabelsDetails *bool `url:"with_labels_details,omitempty" json:"with_labels_details,omitempty"`
258258
WithMergeStatusRecheck *bool `url:"with_merge_status_recheck,omitempty" json:"with_merge_status_recheck,omitempty"`
259259
CreatedAfter *time.Time `url:"created_after,omitempty" json:"created_after,omitempty"`
@@ -312,10 +312,10 @@ type ListGroupMergeRequestsOptions struct {
312312
State *string `url:"state,omitempty" json:"state,omitempty"`
313313
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
314314
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"`
319319
WithLabelsDetails *bool `url:"with_labels_details,omitempty" json:"with_labels_details,omitempty"`
320320
WithMergeStatusRecheck *bool `url:"with_merge_status_recheck,omitempty" json:"with_merge_status_recheck,omitempty"`
321321
CreatedAfter *time.Time `url:"created_after,omitempty" json:"created_after,omitempty"`
@@ -682,10 +682,10 @@ func (s *MergeRequestsService) GetIssuesClosedOnMerge(pid interface{}, mergeRequ
682682
// https://docs.gitlab.com/ee/api/merge_requests.html#create-mr
683683
type CreateMergeRequestOptions struct {
684684
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"`
686686
SourceBranch *string `url:"source_branch,omitempty" json:"source_branch,omitempty"`
687687
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"`
689689
AssigneeID *int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
690690
AssigneeIDs *[]int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
691691
ReviewerIDs *[]int `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
@@ -730,12 +730,12 @@ type UpdateMergeRequestOptions struct {
730730
Title *string `url:"title,omitempty" json:"title,omitempty"`
731731
Description *string `url:"description,omitempty" json:"description,omitempty"`
732732
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"`
739739
MilestoneID *int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"`
740740
StateEvent *string `url:"state_event,omitempty" json:"state_event,omitempty"`
741741
RemoveSourceBranch *bool `url:"remove_source_branch,omitempty" json:"remove_source_branch,omitempty"`

0 commit comments

Comments
 (0)