Create/.github/workflows/label_issues.yml
douira 0588dd5124
Update issue-labeler and fix the regex (#4512)
* Fix regex in issue labeler config

The regex was wrongly matching extra characters through the use of `.` which matches any character. This also adds the requirement of the match version number being immediately after the `Minecraft Version` section.

* update issue-labeler to v3

* Update labels.yml

* fix backslashes again

* fix that there are actually two newlines

* fix escaping again?

* use sync labels

* use single quotes

* use more double backslashes

* reduce to test if this works at all

* reintroduce minecraft version

* doesn't work

* try previous version

* didn't help

* add back the 1.
2023-03-07 13:28:26 -08:00

16 lines
398 B
YAML

name: "Label Issues"
on:
issues:
types: [opened, edited]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.0
with:
configuration-path: .github/config/labels.yml
enable-versioned-regex: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: 1