Skip to content

Commit

Permalink
Automate adding issues and PRs to project board (#150)
Browse files Browse the repository at this point in the history
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:
connectrpc/examples-go#145
  • Loading branch information
chrispine committed Nov 14, 2023
1 parent 87dff21 commit 4affabd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/add-to-project.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
project-url: https://github.com/orgs/connectrpc/projects/1
github-token: ${{ steps.app_token.outputs.token }}

0 comments on commit 4affabd

Please sign in to comment.