diff --git a/.github/issue_labels.yml b/.github/issue_labels.yml new file mode 100644 index 00000000..d918d027 --- /dev/null +++ b/.github/issue_labels.yml @@ -0,0 +1,23 @@ +1.21.1-NEOFORGE: + - '(1.21.1 - NEOFORGE|- \[X\] 1.21.1 \| NEOFORGE)' + +1.21.1-FABRIC: + - '(1.21.1 - FABRIC|- \[X\] 1.21.1 \| FABRIC)' + +1.20.1-FORGE: + - '(1.20.1 - FORGE|- \[X\] 1.20.1 \| FORGE)' + +1.20.1-FABRIC: + - '(1.20.1 - FABRIC|- \[X\] 1.20.1 \| FABRIC)' + +1.19.2-FORGE: + - '(1.19.2 - FORGE|- \[X\] 1.19.2 \| FORGE)' + +1.19.2-FABRIC: + - '(1.19.2 - FABRIC|- \[X\] 1.19.2 \| FABRIC)' + +1.18.2: + - '1.18.2' + +server: + - '(server|Server)' \ No newline at end of file diff --git a/.github/workflows/auto-label.json5 b/.github/workflows/auto-label.json5 deleted file mode 100644 index 90b38da3..00000000 --- a/.github/workflows/auto-label.json5 +++ /dev/null @@ -1,21 +0,0 @@ -{ - labelsSynonyms: { - "1.21.1-NEOFORGE": ["1.21.1 - NEOFORGE", "- [X] 1.21.1|NEOFORGE"], - "1.21.1-FABRIC": ["1.21.1 - FABRIC", "- [X] 1.21.1|FABRIC"], - "1.20.1-FORGE": ["1.20.1 - FORGE", "- [X] 1.20.1|FORGE"], - "1.20.1-FABRIC": ["1.20.1 - FABRIC", "- [X] 1.20.1|FABRIC"], - "1.19.2-FORGE": ["1.19.2 - FORGE", "- [X] 1.19.2|FORGE"], - "1.19.2-FABRIC": ["1.19.2 - FABRIC", "- [X] 1.19.2|FABRIC"], - "1.18.2": ["1.18.2"], - "server": ["server", "Server"], - "not related": ["not my issue", "report there", "isnt an EC issue"] - }, - labelsNotAllowed: [ - 'duplicate', - 'help wanted', - 'invalid', - 'details' - ], - "failoverLabels": ['1.??.?'] - //defaultLabels: ['bug'] -} diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml deleted file mode 100644 index cd462e99..00000000 --- a/.github/workflows/auto-label.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Labeling new issue -on: - issues: - types: ['opened', 'edited'] -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - issues: write - steps: - - uses: actions/checkout@v4 - with: - sparse-checkout: | - .github/workflows/auto-label.json5 - sparse-checkout-cone-mode: false - - uses: Renato66/auto-label@v3.1.0 - with: - configuration-file: .github/workflows/auto-label.json5 - repo-token: ${{ secrets.GITHUB_TOKEN }} - ignore-comments: false diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_labeler.yml new file mode 100644 index 00000000..0fe1a645 --- /dev/null +++ b/.github/workflows/issue_labeler.yml @@ -0,0 +1,18 @@ +name: "Issue Labeler" +on: + issues: + types: [opened, edited] + +permissions: + issues: write + contents: read + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.4 # RegEx Issue Labeler + with: + repo-token: ${{ github.token }} + configuration-path: .github/issue_labels.yml + enable-versioned-regex: 0