GitlabApprovalRule
Schema
Only if the project’s spec.approvalRules entire array is left undefined will the configDefaults.approvalsConfig of the referenced GitlabDefaults be used.
For detailed info about the properties, please reference GitLab’s documentation.
| Property | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name of the approval rule |
| approvalsRequired | number | Yes | Number of approvals required from this rule |
| ruleType | any_approver | regular | report_approver | Yes | Type of approval rule: any approver, specific approvers, or report-based approvers |
| appliesToAllProtectedBranches | boolean | Yes | Whether this rule applies to all protected branches or specific branches |
| usernames | string array | No | List of usernames who can approve (only for regular rule type) |
| groupIds | number array | No | List of group IDs whose members can approve (only for regular rule type) |
| protectedBranchIds | number array | No* | List of protected branch IDs this rule applies to (*required when appliesToAllProtectedBranches is false) |
| reportType | license_scanning | code_coverage | No | Type of report that requires approval (only for report_approver rule type) |