From 304179a294a244c5e1cf790fa92c7cc743ca0a43 Mon Sep 17 00:00:00 2001 From: KTrain5369 <69028025+KTrain5169@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:41:31 +1000 Subject: [PATCH] change: we're switching the action out --- .github/labeler.yml | 16 ++++++++++++++++ .github/labels.yml | 16 ---------------- .github/workflows/pr_management.yml | 5 +++-- 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 .github/labels.yml 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'