Skip to content

Commit

Permalink
Add the merge_request_iid parameter to CreateMergeRequestApprovalRule…
Browse files Browse the repository at this point in the history
…Options

Signed-off-by: 董红帅 <donghongshuai@mafengwo.com>
  • Loading branch information
董红帅 committed Mar 19, 2024
1 parent 4150445 commit d81cd9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions merge_request_approvals.go
Expand Up @@ -352,6 +352,7 @@ func (s *MergeRequestApprovalsService) GetApprovalState(pid interface{}, mergeRe
type CreateMergeRequestApprovalRuleOptions struct {
Name *string `url:"name,omitempty" json:"name,omitempty"`
ApprovalsRequired *int `url:"approvals_required,omitempty" json:"approvals_required,omitempty"`
MergeRequestIID *int `url:"merge_request_iid,omitempty" json:"merge_request_iid,omitempty"`
ApprovalProjectRuleID *int `url:"approval_project_rule_id,omitempty" json:"approval_project_rule_id,omitempty"`
UserIDs *[]int `url:"user_ids,omitempty" json:"user_ids,omitempty"`
GroupIDs *[]int `url:"group_ids,omitempty" json:"group_ids,omitempty"`
Expand Down

0 comments on commit d81cd9e

Please sign in to comment.