From 1bc03aff171294e055331cac94718c952c5ee381 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 1 Nov 2023 22:31:55 -0700 Subject: [PATCH] ci: add new issues and pull requests to project board --- .github/workflows/add-to-project.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..60b1cb7 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,29 @@ +name: Add to Ecosystem WG Project + +on: + issues: + types: + - opened + pull_request_target: + types: + - opened + +permissions: {} + +jobs: + add-to-project: + runs-on: ubuntu-latest + steps: + - name: Generate GitHub App token + uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1 + id: generate-token + with: + creds: ${{ secrets.ECOSYSTEM_ISSUE_TRIAGE_GH_APP_CREDS }} + org: electron + - name: Add to Project + uses: dsanders11/project-actions/add-item@3a81985616963f32fae17d1d1b406c631f3201a1 # v1.1.0 + with: + field: Opened + field-value: ${{ github.event.pull_request.created_at || github.event.issue.created_at }} + project-number: 89 + token: ${{ steps.generate-token.outputs.token }}