DocsResource KindsSub ResourcesGitlabProtectedBranch

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.

PropertyTypeRequiredDescription
idnumberNoNumeric ID of the protected branch. Used internally by Frigg.
namestringYesName or pattern of the branch to protect (e.g., main, release/*)
allowForcePushbooleanYesWhether force push is allowed to this protected branch
codeOwnerApprovalRequiredbooleanNoWhether approval from code owners is required for merge requests targeting this branch (Premium+ only)
mergeAccessLevels(no_one | developer | maintainer | admin) arrayNoWho can merge into this protected branch (nullable - can be empty array). admin is only available on self-managed instances.
pushAccessLevels(no_one | developer | maintainer | admin) arrayNoWho can push directly to this protected branch (nullable - can be empty array). admin is only available on self-managed instances.
unprotectedAccessLevels(developer | maintainer | admin) arrayNoWho can unprotect this branch (nullable - can be empty array). no_one is not valid for this field. admin is only available on self-managed instances.