From 4affabd8a671cffa8b9f8edebee95690154afb26 Mon Sep 17 00:00:00 2001 From: Chris Pine Date: Tue, 14 Nov 2023 13:56:43 -0800 Subject: [PATCH] Automate adding issues and PRs to project board (#150) This introduces automation for adding issues and PRs to an org-wide project board. The goal is to have a clear view into incoming issues/PRs so that we know none can fall through the cracks. This was first tested in examples-go: https://github.com/connectrpc/examples-go/pull/145 --- .github/add-to-project.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/add-to-project.yaml diff --git a/.github/add-to-project.yaml b/.github/add-to-project.yaml new file mode 100644 index 00000000..6659162f --- /dev/null +++ b/.github/add-to-project.yaml @@ -0,0 +1,28 @@ +name: Add issues and PRs to project + +on: + issues: + types: + - opened + - reopened + - transferred + pull_request: + types: + - opened + - reopened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - name: Get GitHub app token + uses: actions/create-github-app-token@v1 + id: app_token + with: + app-id: ${{ secrets.CONNECT_EXPORT_APP_ID }} + private-key: ${{ secrets.CONNECT_EXPORT_APP_KEY }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/connectrpc/projects/1 + github-token: ${{ steps.app_token.outputs.token }}