From 8cd18c3218ac14ae92da84f237e7c0c95bbcaee1 Mon Sep 17 00:00:00 2001 From: John Guan Date: Fri, 5 Aug 2022 16:37:46 +0800 Subject: [PATCH] Create move_issue_to_project.yml --- .github/workflows/move_issue_to_project.yml | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/move_issue_to_project.yml diff --git a/.github/workflows/move_issue_to_project.yml b/.github/workflows/move_issue_to_project.yml new file mode 100644 index 0000000..a30313f --- /dev/null +++ b/.github/workflows/move_issue_to_project.yml @@ -0,0 +1,33 @@ +name: Move Issue To Project + +on: + issues: + types: + - opened + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + with: + app_id: ${{ secrets.ALPHA_BOT_ID }} + private_key: ${{ secrets.ALPHA_BOT_PEM }} + + - name: Add Alpha Bug Issue To project + uses: actions/add-to-project@v0.3.0 + with: + github-token: ${{ steps.generate_token.outputs.token }} + project-url: https://github.com/orgs/IceWhaleTech/projects/5 + labeled: alpha, bug + label-operator: AND + + - name: Add App Request Issue To project + uses: actions/add-to-project@v0.3.0 + with: + github-token: ${{ steps.generate_token.outputs.token }} + project-url: https://github.com/orgs/IceWhaleTech/projects/8 + labeled: "App Request" + label-operator: AND