If you want to ensure that No one is allowed to push to branch v1.x, every pattern To be certain that a rule controls the behavior of a branch,Īll other patterns that match must apply less or equally permissive rules. That also match v1.x or v1.* receive the more permissive Maintainer permission. Even though branches matching v* are set to No one, branches Allowed to push and merge: Of the three settings, Maintainer is the most permissive, and controlsīranch behavior as a result.(which each have stricter permissions), users with the Developer role can merge into the branch. Even though the branch also matched v1.x and v* Allowed to merge: Of the three settings, Maintainer + Developer is most permissive,Īnd controls branch behavior as a result.Wildcards: Branch name pattern Allowed to merge Allowed to push and merge v1.x Maintainer Maintainer v1.* Maintainer + Developer Maintainer v* No one No oneĪ branch named v1.x matches all three branch name patterns: v1.x, v1.*, and v*.Īs the most permissive option determines the behavior, the resulting permissions for branch v1.x are: For example, consider these rules, which include When a branch matches multiple rules, the most permissive rule determines the Protected at both the group and project levels, force push settings configuredįor that branch at the project level are ignored. If the group_protected_branches feature flag is enabled and the same branch is.Role can delete a protected branch from the UI or API. No one can delete a protected branch using Git commands, however, users with at least Maintainer.Users with the Developer role can create a project in a group, but might not be allowed to.Push to the branch Anyone with Allowed permission. Action Who can do it Protect a branch At least the Maintainer role. When a branch is protected, the default behavior enforces these restrictions on the branch. Who can modify a protected branchīranch push permission changed to require GitLab administrators to also have the allowed permission in GitLab 16.0. The default branch for your repository is protected by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |