Skip to content

Bug Report: /* Pattern Matches Recursively #51

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 codeowners@5.1.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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