From b4a21ff445a87fceeae81a007c9655cb36bc6932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Fri, 28 Oct 2022 17:56:54 +0200 Subject: [PATCH] feat(CI): auto-assign to all projects --- .github/workflows/add-to-project.yml | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 139cb0791..9221efed1 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -13,6 +13,13 @@ jobs: name: Assign to One Project steps: + - name: Assign issues with `ChromieCraft Generic` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, 'ChromieCraft Generic') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/20' + - name: Assign issues with `1-19` label to their project uses: srggrs/assign-one-project-github-action@1.2.1 if: | @@ -20,3 +27,80 @@ jobs: with: project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/14' + - name: Assign issues with `20-29` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '20-29') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/17' + + - name: Assign issues with `30-39` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '30-39') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/23' + + - name: Assign issues with `40-49` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '40-49') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/24' + + - name: Assign issues with `50-59` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '50-59') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/25' + + - name: Assign issues with `60` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '60') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/22' + + - name: Assign issues with `61-64` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '61-64') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/32' + + - name: Assign issues with `65-69` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '65-69') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/36' + + - name: Assign issues with `70` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '70') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/26' + + - name: Assign issues with `71-74` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '71-74') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/33' + + - name: Assign issues with `75-79` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '75-79') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/37' + + - name: Assign issues with `80` label to their project + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '80') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/38' +