Skip to content

Bug Report: /* Pattern Matches Recursively #51

@zsperske

Description

@zsperske

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 [email protected]

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