Skip to content

Using '/' as a target in the CODEOWNERS file doesn't match anything.  #28

@tjoneslo

Description

@tjoneslo

This may be a user error on our part or a disagreement about the interpretation of the CODEOWNER spec.

If I have a CODEOWNERS file with the first line of / it doesn't match anything. Accord to one part of the spec, having a path ending with a / should match everything in the directory, and all sub-directories. By extension just a / should match everything in the repository.

from codeowners import CodeOwners
code_file = '''
... / @ORG/MyTeam
... '''
codeowner = CodeOwners(code_file)
codeowner.of("build.config")
[]

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