Skip to content

Commit 4e631b7

Browse files
authored
ci: add new issues and pull requests to project board (#82)
1 parent fe1a0e0 commit 4e631b7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/add-to-project.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Add to Ecosystem WG Project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
pull_request_target:
8+
types:
9+
- opened
10+
11+
permissions: {}
12+
13+
jobs:
14+
add-to-project:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Generate GitHub App token
18+
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
19+
id: generate-token
20+
with:
21+
creds: ${{ secrets.ECOSYSTEM_ISSUE_TRIAGE_GH_APP_CREDS }}
22+
org: electron
23+
- name: Add to Project
24+
uses: dsanders11/project-actions/add-item@3a81985616963f32fae17d1d1b406c631f3201a1 # v1.1.0
25+
with:
26+
field: Opened
27+
field-value: ${{ github.event.pull_request.created_at || github.event.issue.created_at }}
28+
project-number: 89
29+
token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)