@@ -682,19 +682,20 @@ func (s *MergeRequestsService) GetIssuesClosedOnMerge(pid interface{}, mergeRequ
682
682
// GitLab API docs:
683
683
// https://docs.gitlab.com/ee/api/merge_requests.html#create-mr
684
684
type CreateMergeRequestOptions struct {
685
- Title * string `url:"title,omitempty" json:"title,omitempty"`
686
- Description * string `url:"description,omitempty" json:"description,omitempty"`
687
- SourceBranch * string `url:"source_branch,omitempty" json:"source_branch,omitempty"`
688
- TargetBranch * string `url:"target_branch,omitempty" json:"target_branch,omitempty"`
689
- Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
690
- AssigneeID * int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
691
- AssigneeIDs * []int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
692
- ReviewerIDs * []int `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
693
- TargetProjectID * int `url:"target_project_id,omitempty" json:"target_project_id,omitempty"`
694
- MilestoneID * int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"`
695
- RemoveSourceBranch * bool `url:"remove_source_branch,omitempty" json:"remove_source_branch,omitempty"`
696
- Squash * bool `url:"squash,omitempty" json:"squash,omitempty"`
697
- AllowCollaboration * bool `url:"allow_collaboration,omitempty" json:"allow_collaboration,omitempty"`
685
+ Title * string `url:"title,omitempty" json:"title,omitempty"`
686
+ Description * string `url:"description,omitempty" json:"description,omitempty"`
687
+ SourceBranch * string `url:"source_branch,omitempty" json:"source_branch,omitempty"`
688
+ TargetBranch * string `url:"target_branch,omitempty" json:"target_branch,omitempty"`
689
+ Labels * LabelOptions `url:"labels,comma,omitempty" json:"labels,omitempty"`
690
+ AssigneeID * int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"`
691
+ AssigneeIDs * []int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"`
692
+ ReviewerIDs * []int `url:"reviewer_ids,omitempty" json:"reviewer_ids,omitempty"`
693
+ TargetProjectID * int `url:"target_project_id,omitempty" json:"target_project_id,omitempty"`
694
+ MilestoneID * int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"`
695
+ RemoveSourceBranch * bool `url:"remove_source_branch,omitempty" json:"remove_source_branch,omitempty"`
696
+ Squash * bool `url:"squash,omitempty" json:"squash,omitempty"`
697
+ AllowCollaboration * bool `url:"allow_collaboration,omitempty" json:"allow_collaboration,omitempty"`
698
+ ApprovalsBeforeMerge * int `url:"approvals_before_merge,omitempty" json:"approvals_before_merge,omitempty"`
698
699
}
699
700
700
701
// CreateMergeRequest creates a new merge request.
0 commit comments