github / issue-labeler

An action for automatically labelling issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to auto label all issues with a regex maching any string

evgenyfadeev opened this issue · comments

We want to have all new issues in a repo to be labeled, unfortunately I was unable to set this up. Here is what I have:

labeler:

critical:
    - '^.*$'

Btw, I've tried '.*', '' as regexes and nothing worked - i.e. the label was to applied.
The label "critical" was created as a custom label. We are using a PM tool and want all issues from this repo have a bright label.
Thanks!

workflow:

name: "Issue Labeler"
on:
  issues:
    types: [opened]

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: github/issue-labeler@v2.0
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        configuration-path: .github/labeler.yml
        enable-versioned-regex: 0

This seems to be a duplicate of #19. In both cases, the goal is to label all issues, regardless of their content.

Hi guys, https://github.com/github/issue-labeler/blob/e24a3eb6b2e28c8904d086302a2b760647f5f45c/src/main.ts#LL201C3-L213C4. I found this line, so if you want to match wildcard you should use /.*/ instead.