Skip to content

Extract code owners from a CODEOWNERS file

Bob Van Landuyt requested to merge bvl-codeowners-file into master

What does this MR do?

This MR adds the possibility to set codeowners for files using a CODEOWNERS file that's can be located in .gitlab, docs or the root of the repository.

The syntax of the CODEOWNERS file is similar to that of .gitignore, so patterns can be used to match paths. Users can be linked to patters using their @username or email address.

When a file matches multiple entries in the CODEOWNERS-file, the users from all entries are displayed.

The code owners are displayed on a blob page like this:

Screen_Shot_2018-09-05_at_14.26.35

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6961

CE-port in: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21309

Does this MR meet the acceptance criteria?

Edited by Bob Van Landuyt

Merge request reports