Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labeler.yml example to match all repo files #28

Closed
lucascosti opened this issue Oct 2, 2019 · 5 comments
Closed

labeler.yml example to match all repo files #28

lucascosti opened this issue Oct 2, 2019 · 5 comments

Comments

@lucascosti
Copy link

I'm trying to set up a rule to apply a needs triage label for any file change in a repo, but I can't get it to work without manually specifying at least one folder in the path.

Here are some combinations I've tried without success:

needs triage:
  - '*'
needs triage:
  - '*'
  - '**/*'
needs triage:
  - ./*
  - ./**/*
needs triage:
  - '*'

It works for changes in a single folder if I provide at least part of a path, e.g.:

needs triage:
  - .github/*

Any help would be awesome!

@cpanato
Copy link

cpanato commented Oct 4, 2019

same for me

@azu
Copy link

azu commented Oct 16, 2019

similar issue? isaacs/minimatch#30

@Robvdhout
Copy link

This worked for me:

needs triage:
  - '**'      # index.php | src/main.php
  - '.*'      # .gitignore
  - '.*/**'   # .github/workflows/label.yml

the ./ at the start doesn't do anything for me, it doesn't work

Robvdhout pushed a commit to studyportals/labeler that referenced this issue Nov 11, 2019
It is not clear how to match all files. This example will explain how to match any file.

has been tested with   
```yml
  - '**'      # index.php | src/main.php
  - '.*'      # .gitignore
  - '.*/**'   # .github/workflows/label.yml
```

The `./` at the start actually doesn't work

fixes actions#28
@GMNGeoffrey
Copy link

Thanks I was trying to do the same thing and was confused why the "./*" syntax in the README wasn't working. It would be great if someone from the team addressed the broken documentation.

donmahallem added a commit to manniwatch/manniwatch that referenced this issue Jul 22, 2020
donmahallem added a commit to manniwatch/manniwatch that referenced this issue Jul 22, 2020
mergify bot pushed a commit to manniwatch/manniwatch that referenced this issue Jul 22, 2020
* ci(github): add label action for automatic settings

* chore: label action step

* fix: fix globs for ci label

* ci(mergify): remove ci label action

* chore: test fix for path recognition

* fix: ci paths

according to actions/labeler#28

* chore: add .mergify.yml to label action
eliykat added a commit to bitwarden/server that referenced this issue May 10, 2022
eliykat added a commit to bitwarden/server that referenced this issue Jun 10, 2022
@MaksimZhukov
Copy link
Contributor

Hello everyone!
Thank you @Robvdhout for the provided solution!
The confusing syntax (./) has been removed from the README.
I’m closing the issue. Please contact us if you have any concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants