Skip to content

Support for wildcard pattern matching #4

@LMaxence

Description

@LMaxence

Description

It would be nice to have to ability to declare the path of a folder, and have the labeler automatically match folders below that path, and automatically create tags like so:

{parent folder}:{matched folder}

For instance, with this setup:

-- packages
----- package A
----- package B
-- services
---- service A
---- service B

and the following auto_labels.json

{
  "files": {
    "packages/*": "packages",
    "services/*": "services"
  }
}

I would like to create the tags packages/packageA whenever packageA is modified (and only when it is modified). Same for packageB, serviceA and serviceB.

Perhaps an easy implementation could involve to simply pre-process the auto labels json config file, and extend the wildcards into classic label matching rules for every folder that would match the wildcard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions