From e881930b7988beb000976b917db29b492426377d Mon Sep 17 00:00:00 2001 From: Alexandre Paradis Date: Mon, 27 Sep 2021 10:57:34 -0400 Subject: [PATCH] Auto assign to project workflow - Take 4 * Auto assign to project workflow * Switch to GITHUB_TOKEN --- .github/workflows/auto-assign-to-project.yml | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-assign-to-project.yml diff --git a/.github/workflows/auto-assign-to-project.yml b/.github/workflows/auto-assign-to-project.yml new file mode 100644 index 000000000..18e1191a2 --- /dev/null +++ b/.github/workflows/auto-assign-to-project.yml @@ -0,0 +1,26 @@ +name: Auto Assign to Project(s) + +on: + pull_request_target: + types: [opened, labeled] +env: + MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }} + +jobs: + assign-to-project: + runs-on: ubuntu-latest + name: Assign to Project + steps: + - name: Assign pull requests to "Unprioritised" + uses: srggrs/assign-one-project-github-action@1.2.1 + if: github.event.action == 'opened' + with: + project: https://github.com/orgs/simple-icons/projects/2 + column_name: Unprioritised + + - name: Assign `icon outdated` pull requests to "Priority 1" + uses: srggrs/assign-one-project-github-action@1.2.1 + if: contains(github.event.pull_request.labels.*.name, 'icon outdated') + with: + project: https://github.com/orgs/simple-icons/projects/2 + column_name: Priority 1