question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

labeler.yml example to match all repo files

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
Robvdhoutcommented, Nov 11, 2019

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

0reactions
MaksimZhukovcommented, Dec 12, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding Labels Automatically Using GitHub Actions - Diana Lau
While exploring what GitHub Actions can do, I find the Labeler action very useful for this purpose. ... Make sure you have labeler.yml...
Read more >
Github action for auto labeler - Stack Overflow
all : match ALL globs against ALL changed paths. Example .github/workflows/labeler.yml. name: Labeler on: [pull_request] ...
Read more >
jimschubert/labeler-action - Docker Image
This action requires a configuration file defined at .github/labeler.yml in your repository. The contents must follow either the simple schema or the full ......
Read more >
Add useful labels to your Pull Requests with Github Actions
yml file you can configure the action to assign labels per module or part of the app: You can find the syntax of...
Read more >
Labels - GitLab Docs
You can assign labels to any issue, merge request, or epic. ... On the top bar, select Main menu > Projects and find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found