You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm relying on codeOwners.getOwners(filePath) to set the correct ownership from a CODEOWNER file at the root of the repository.
I observed two things:
I need to prefix filePath with a / for having a match if it's declared in CODEOWNER
The search does not bubble up till finding an ownership. For instance, if CODEOWNER only defines /packages/foo/ @foo, calling codeOwners.getOwners('/packages/foo/bar/john.txt') will return nothing
The text was updated successfully, but these errors were encountered:
Hi,
Here is the typical piece of code I have in my setup:
I'm relying on
codeOwners.getOwners(filePath)
to set the correct ownership from aCODEOWNER
file at the root of the repository.I observed two things:
filePath
with a/
for having a match if it's declared inCODEOWNER
CODEOWNER
only defines/packages/foo/ @foo
, callingcodeOwners.getOwners('/packages/foo/bar/john.txt')
will return nothingThe text was updated successfully, but these errors were encountered: