Skip to content

Support negation globs #116

Description

@mscrivo

Negation globs seemingly don't work. For example, I can't do something like this:

- '!(workspaces)/**/sourcing/**/*'

to say that I want this team to own any folder that has a "sourcing" subfolder in the path, but not within any "workspaces" folders.

This works just fine when tested with compgen. code_ownership doesn't seem to throw an error when validating, but when checking a path that should be owned under that glob, say lib/sourcing/some_file.rb, it incorrect states that it's not owned. Interestingly, it still correctly updates the CODEOWNERS file with the negation glob.

So now, instead of having single glob that covers most of this team's ownership, I will have to explicitly map out each folder instead.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions