Does CODEOWNERs support double asterisk globs? Can it?

Locally, if i wanted to find all javascript files in a subdirectory, recursively in a shell, I could represent this as:


Can I do this for CODEOWNERS? or is only normal wildcards supported?

If this _is_ supported, the github help page should probably reflect it.

The help page for CODEOWNERS mentions this:

> A CODEOWNERS file uses a pattern that follows the same rules used in gitignore files. 

Following the link to the documentation for gitignore files mentions this:

> A slash followed by two consecutive asterisks then a slash matches zero or more directories. For example, “a/**/b” matches “a/b”, “a/x/b”, “a/x/y/b” and so on.

I haven’t tried it personally, but I would expect that given the above that CODEOWNERS does support the double-asterisk style glob.

1 Like