diff options
Diffstat (limited to 'doc/user/project/code_owners.md')
-rw-r--r-- | doc/user/project/code_owners.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/user/project/code_owners.md b/doc/user/project/code_owners.md index a81c0beb6d0..4ab615a1008 100644 --- a/doc/user/project/code_owners.md +++ b/doc/user/project/code_owners.md @@ -25,8 +25,18 @@ specify themselves as a code owner, all before the new changes get merged to the default branch. When a file matches multiple entries in the `CODEOWNERS` file, -the users from all entries are displayed on the blob page of -the given file. +the users from last pattern matching the file are displayed on the +blob page of the given file. For example, you have the following +`CODEOWNERS` file: + +``` +README.md @user1 + +# This line would also match the file README.md +*.md @user2 +``` + +The user that would show for `README.md` would be `@user2`. ## Approvals by Code Owners |