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.
This commit is contained in:
douira 2023-03-07 22:28:26 +01:00 committed by GitHub
parent 95afdbed9c
commit 0588dd5124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View File

@ -1,12 +1,12 @@
1.14:
- "1.14"
- '1\.14(?:\.\d)?'
1.15:
- "1.15"
- '1\.15(?:\.\d)?'
1.16:
- "1.16"
- '1\.16(?:\.\d)?'
1.17:
- "1.17"
- '1\.17(?:\.\d)?'
1.18:
- "1.18"
- '1\.18(?:\.\d)?'
1.19:
- "1.19"
- '1\.19(?:\.\d)?'

View File

@ -7,8 +7,9 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.0
- 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