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' +