From 30bbd5bb2bea30f2f8ee65c9b74ef390f10d5f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Fri, 28 Oct 2022 17:23:48 +0200 Subject: [PATCH] feat(CI): try assign-to-one-project --- .github/workflows/add-to-project.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index e56931291..9cfdf1a5e 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -1,18 +1,23 @@ -name: Add issues to projects +name: Auto Assign to Project(s) on: issues: types: [opened, labeled] issue_comment: types: [created] +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: - add-to-project: - name: Add issue to project + assign_one_project: runs-on: ubuntu-latest + name: Assign to One Project steps: - - uses: actions/add-to-project@v0.0.5 - with: - project-url: https://github.com/azerothcore/azerothcore-wotlk/projects/14 - github-token: ${{ secrets.GITHUB_TOKEN }} - labeled: 1-19 + - name: Assign issues and pull requests with `bug` label to project 3 + uses: srggrs/assign-one-project-github-action@1.2.1 + if: | + contains(github.event.issue.labels.*.name, '1-19') + with: + project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/14' + column_name: 'Labeled' +