Skip to content

Clarify code owners when using sections

Segolene Bouly requested to merge sbouly-master-patch-62094 into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Current documentation states:

If you use sections, the last user for each section is used.

this should be replaced by:

Only the last pattern matching for each section is applied.

When a file matches multiple entries in the CODEOWNERS file, the users from last pattern matching the file of each section are used. The current wording is confusing as it seems we use only one user per section.

In the issue that implemented the section feature, it is explained that:

Allow multiple section in the CODEOWNERS file, and the most specific rule from each section wins.

(in the screenshots we see multiple users and not a single one).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Segolene Bouly

Merge request reports