Skip to content

Wrong order of the standard github locations #40

Open
@joh-klein

Description

@joh-klein

If I interpret this line correctly you are looking for the CODEOWNERS file in this order

1. /CODEOWNERS
2. /.github/CODEOWNERS
3. /docs/CODEOWNERS

But the official documentation says otherwise:

To use a CODEOWNERS file, create a new file called CODEOWNERS in the .github/, root, or docs/ directory of the repository, in the branch where you'd like to add the code owners. If CODEOWNERS files exist in more than one of those locations, GitHub will search for them in that order and use the first one it finds.

Which means the order should be

1. /.github/CODEOWNERS
2. /CODEOWNERS
3. /docs/CODEOWNERS

(no idea, how gitlab does it – sorry)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions