From 34354e6e93e125812c66dcdbb4ff1067942dec06 Mon Sep 17 00:00:00 2001 From: Fabi <38692350+fgerschwiler@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:59:32 +0200 Subject: [PATCH] chore: auto assign issues and PR to ZTIADEL project board (#643) * Create main.yml * Update main.yml Co-authored-by: Livio Amstutz --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml 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'