Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,223
    • Merge requests 1,223
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Merge requests
  • !6916

Merged
Created Aug 16, 2018 by Bob Van Landuyt@reprazentMaintainer5 of 9 tasks completed5/9 tasks

Extract code owners from a CODEOWNERS file

  • Overview 85
  • Commits 2
  • Pipelines 26
  • Changes 29

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?

  • Changelog entry added, if necessary
  • Documentation created/updated
  • Tests added for this feature/bug
  • Conforms to the code review guidelines
  • Conforms to the merge request performance guidelines
  • Conforms to the style guides
  • Conforms to the database guides
  • EE specific content should be in the top level /ee folder
  • For a paid feature, have we considered GitLab.com plans, how it works for groups, and is there a design for promoting it to users who aren't on the correct plan?
Edited Sep 05, 2018 by Bob Van Landuyt
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: bvl-codeowners-file

Enable Gitpod?

To use Gitpod you must first enable the feature in the integrations section of your user preferences.

Cancel Enable Gitpod