Bug Report: /* Pattern Matches Recursively
Reproducer: https://github.com/zsperske/codeownersReproducer
The library treats /* patterns as recursive (like /**), but GitHub's CODEOWNERS only matches direct children with /*.
Impact:
/packages/* matches packages/other/src/file.js (should only match packages/other)
- Causes false positives in ownership audits
- Diverges from GitHub's actual PR reviewer assignment
Evidence:
- Run
npm test in the reproducer to see the library incorrectly match nested files
- See this PR where GitHub correctly does NOT assign ownership for nested files under
/packages/*
Tested with codeowners@5.1.1
Bug Report:
/*Pattern Matches RecursivelyReproducer: https://github.com/zsperske/codeownersReproducer
The library treats
/*patterns as recursive (like/**), but GitHub's CODEOWNERS only matches direct children with/*.Impact:
/packages/*matchespackages/other/src/file.js(should only matchpackages/other)Evidence:
npm testin the reproducer to see the library incorrectly match nested files/packages/*Tested with codeowners@5.1.1