diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..f01905e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +labels: + - label: "add mod" + matcher: + - body: "(\\n|.)*- \\[x\\] Add mod to alternatives page\\n*" + - label: "enhancement" + conditions: + - body: "(\\n|.)*- \\[x\\] Site changes\\n*" + - label: "documentation" + conditions: + - body: "(\\n|.)*- \\[x\\] Chore/documentation updates\\n*" + - label: "BREAKING CHANGE" + conditions: + - body: "(\\n|.)*- \\[x\\] Tick this box if you made changes that may or may not break site functionality(\\n|.)*" + - label: "Merge conflict identified" + conditions: + - mergeable: false diff --git a/.github/labels.yml b/.github/labels.yml deleted file mode 100644 index 724aa19..0000000 --- a/.github/labels.yml +++ /dev/null @@ -1,16 +0,0 @@ -labels: - - name: "add mod" - conditions: - - body: '\b- \[x\] Add mod to alternatives page\b' - - name: "enhancement" - conditions: - - body: '\b- \[x\] Site changes\b' - - name: "documentation" - conditions: - - body: '\b- \[x\] Chore/documentation updates\b' - - name: "BREAKING CHANGE" - conditions: - - body: '^- \[x\] Tick this box if you made changes that may or may not break site functionality.$' - - name: "Merge conflict identified" - conditions: - - mergeable: false diff --git a/.github/workflows/pr_management.yml b/.github/workflows/pr_management.yml index 4953a08..27cedae 100644 --- a/.github/workflows/pr_management.yml +++ b/.github/workflows/pr_management.yml @@ -24,9 +24,10 @@ jobs: - name: Label PR based on content if: github.event.action != 'labeled' id: label-pr - uses: prulloac/configurable-pr-labeler@v1.1.2 + uses: fuxingloh/multi-labeler@v4.0.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + config-path: .github/labeler.yml - name: Assign/unassign reviewers if: github.event.action == 'ready_for_review'