Skip to content

Underdocumented CODEOWNERS syntax #1407

Closed
@rdelfin

Description

@rdelfin

What article on docs.github.com is affected?

https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

What part(s) of the article would you like to see updated?

The CODEOWNERS syntax seems to not document valid syntax properly. As we recently found on one of our repos, this is invalid:

/directory/to/code       @orgname/myteam-owners  # a comment

Because the inline comment syntax is unsupported. However, .gitignore files do seem to support these comment types. Are there any other exceptions to the .gitignore syntax that are not documented?

Additional information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedAnyone is welcome to open a pull request to fix this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions