GitlabProtectedBranch
Schema
Only if the project’s spec.protectedBranches entire array is left undefined will the configDefaults.protectedBranches 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 or pattern of the branch to protect (e.g., main, release/*) |
| allowForcePush | boolean | Yes | Whether force push is allowed to this protected branch |
| codeOwnerApprovalRequired | boolean | Yes | Whether approval from code owners is required for merge requests targeting this branch |
| mergeAccessLevels | no_one | developer | maintainer | No | Who can merge into this protected branch (nullable - can be empty array) |
| pushAccessLevels | no_one | developer | maintainer | No | Who can push directly to this protected branch (nullable - can be empty array) |
| unprotectedAccessLevels | no_one | developer | maintainer | No | Who can unprotect this branch (nullable - can be empty array) |