Skip to content

Commit 9c6e22a

Browse files
authored
Automate adding issues and PRs to project board (connectrpc#220)
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
1 parent dc0a51e commit 9c6e22a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/add-to-project.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Add issues and PRs to project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- transferred
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
14+
jobs:
15+
add-to-project:
16+
name: Add issue to project
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Get GitHub app token
20+
uses: actions/create-github-app-token@v1
21+
id: app_token
22+
with:
23+
app-id: ${{ secrets.CONNECT_EXPORT_APP_ID }}
24+
private-key: ${{ secrets.CONNECT_EXPORT_APP_KEY }}
25+
- uses: actions/add-to-project@v0.5.0
26+
with:
27+
project-url: https://github.com/orgs/connectrpc/projects/1
28+
github-token: ${{ steps.app_token.outputs.token }}

0 commit comments

Comments
 (0)