Commit 403dc0d5 authored by Marcia Ramos's avatar Marcia Ramos

Merge branch 'docs/205394-codeowners-match' into 'master'

Documentation: Conflicting information when a file matches multiple entry in CODEOWNERS

Closes #205394

See merge request gitlab-org/gitlab!25084
parents 6a18c72b e5f206ff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment