Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-08 15:08:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-08 15:08:26 +0300
commitf149549c3432ffb179f6904e4ba0ea64027202d0 (patch)
tree9c6dca1e76c0de43e5e5f6b5d34c5616abbc7501 /doc/user/project/code_owners.md
parentb001207ce2033589373cd7558ca69c4e5732ce6b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/project/code_owners.md')
-rw-r--r--doc/user/project/code_owners.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/user/project/code_owners.md b/doc/user/project/code_owners.md
index 81bdf1dfb2f..9b0512830c7 100644
--- a/doc/user/project/code_owners.md
+++ b/doc/user/project/code_owners.md
@@ -80,6 +80,14 @@ Once set, Code Owners are displayed in merge requests widgets:
NOTE: **Note**:
While the`CODEOWNERS` file can be used in addition to Merge Request [Approval Rules](merge_requests/merge_request_approvals.md#approval-rules) it can also be used as the sole driver of a Merge Request approval (without using [Approval Rules](merge_requests/merge_request_approvals.md#approval-rules)) by simply creating the file in one of the three locations specified above, configuring the Code Owners to be required approvers for [protected branches](protected_branches.md#protected-branches-approval-by-code-owners-premium) and then using [the syntax of Code Owners files](code_owners.md#the-syntax-of-code-owners-files) to specify the actual owners and granular permissions.
+NOTE: **Note**:
+ Using Code Owners in conjunction with [Protected Branches Approvals](protected_branches.md#protected-branches-approval-by-code-owners-premium)
+ will prevent any user who is not specified in the `CODEOWNERS` file from pushing changes
+for the specified files/paths, even if their role is included in the **Allowed to push** column.
+This allows for a more inclusive push strategy, as administrators don't have to restrict developers
+ from pushing directly to the protected branch, but can restrict pushing to certain
+files where a review by Code Owners is required.
+
## The syntax of Code Owners files
Files can be specified using the same kind of patterns you would use