diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..993c587d5e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Auto Assign to Project(s) + +on: + issues: + types: [opened, labeled] + pull_request: + types: [opened, labeled] +env: + MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + assign_one_project: + runs-on: ubuntu-latest + name: Assign to One Project + steps: + - name: Assign NEW issues and NEW pull requests to project 9 (ZITADEL) + uses: srggrs/assign-one-project-github-action@1.2.0 + if: github.event.action == 'opened' + with: + project: 'https://github.com/orgs/caos/projects/9' + column_name: 'backlog' + + - name: Assign issues and pull requests with `bug` label to project 9 (ZITADEL) + uses: srggrs/assign-one-project-github-action@1.2.0 + if: | + contains(github.event.issue.labels.*.name, 'bug') || + contains(github.event.pull_request.labels.*.name, 'bug') + with: + project: 'https://github.com/orgs/caos/projects/9' + column_name: 'to do'