From 0588dd51240ebe8a3fe688b49baae9011c37f6a0 Mon Sep 17 00:00:00 2001 From: douira Date: Tue, 7 Mar 2023 22:28:26 +0100 Subject: [PATCH] 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. --- .github/config/labels.yml | 12 ++++++------ .github/workflows/label_issues.yml | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/config/labels.yml b/.github/config/labels.yml index f3378f6c1..724dff12d 100644 --- a/.github/config/labels.yml +++ b/.github/config/labels.yml @@ -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)?' diff --git a/.github/workflows/label_issues.yml b/.github/workflows/label_issues.yml index 83d771a2c..02ae70908 100644 --- a/.github/workflows/label_issues.yml +++ b/.github/workflows/label_issues.yml @@ -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