Skip to content

Commit

Permalink
Automate adding issues and PRs to project board
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 authored Nov 14, 2023
1 parent dc0a51e commit fb3ce5c
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/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/connectrpc/projects/1
github-token: ${{ steps.app_token.outputs.token }}

0 comments on commit fb3ce5c

Please sign in to comment.