Labeler: TypeError: glob pattern string required

I tried to fix this error TypeError: glob pattern string required, and still getting again.

Here’s the link to labeler.yml.

@mittalyashu ,

I can reproduce the same issue and get the same error.
Looks like, when using minimatch globs in the label configuration file, it can’t recognize the paths filter patterns.
According to my test:

  • This does not work, and returns the error.
    repo:
      - any: ['./*', './src/**']
    
  • This can partially work.
    repo:
      - './*'
      - './src/**'
    

I have created an issue ticket (actions/labeler#101) to report the problems to the appropriate engineering team for further investigation and evaluation.
You can follow this issue ticket and add your comments to it.

Is this error from the action itself or in the syntax?

I tried doing something like this

area:frontend:
  - "frontend/**/*"
  - "!frontend/jest.config.js"

area:backend:
  - "server/**/*"
  - "!server/jest.config.js"

On running the workflow it adds both the labels even if I make changes to files in server or frontend directory.

@brightran