Skip to content

Commit 6039043

Browse files
authored
ci: add new issues and pull requests to project board (electron#248)
1 parent 7a1aef3 commit 6039043

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
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@a24415515fa60a22f71f9d9d00e36ca82660cde9 # v1.0.1
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)