You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add rule_type parameter to merge_request_approval_rule
This is working in the API, and is necessary in order to enable
Eligible Approvers.
* feat: Fix rule_type validation
Based on MR suggestions.
* fix: Add forgotten imports
* feat: Move validRuleTypeValues into RegisterResource
Co-authored-by: Petr Vála <[email protected]>
-**group_ids** (Set of Number) A list of group IDs whose members can approve of the merge request.
71
79
-**id** (String) The ID of this resource.
72
80
-**protected_branch_ids** (Set of Number) A list of protected branch IDs (not branch names) for which the rule applies.
81
+
-**rule_type** (String) String, defaults to 'regular'. The type of rule. `any_approver` is a pre-configured default rule with `approvals_required` at `0`. Valid values are `regular`, `any_approver`.
73
82
-**user_ids** (Set of Number) A list of specific User IDs to add to the list of approvers.
Description: "This resource allows you to create and manage multiple approval rules for your GitLab projects. For further information on approval rules, consult the [gitlab documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).\n\n"+
20
26
"-> This feature requires GitLab Premium.",
@@ -43,6 +49,13 @@ var _ = registerResource("gitlab_project_approval_rule", func() *schema.Resource
43
49
Type: schema.TypeInt,
44
50
Required: true,
45
51
},
52
+
"rule_type": {
53
+
Description: fmt.Sprintf("String, defaults to 'regular'. The type of rule. `any_approver` is a pre-configured default rule with `approvals_required` at `0`. Valid values are %s.", renderValueListForDocs(validRuleTypeValues)),
0 commit comments