Add admin push access level support for gitlab_branch_protection
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo. -
Add 'admin' to ValidProtectedBranchTagAccessLevelNames in access_level_helpers.go
-
Update documentation to include 'admin' as valid push_access_level value
-
Add example demonstrating admin push access level usage
-
Add import verification test steps to branch protection tests
-
Add comprehensive test coverage for admin push access level functionality
This change allows users to restrict push access to administrators only, addressing enterprise security requirements and fixing import/apply inconsistency for admin access levels.
Closes #6542 (closed)