File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Add to Inbox 📥
2
+ on :
3
+ issues :
4
+ types : [opened, reopened]
5
+
6
+ jobs :
7
+ add-to-inbox :
8
+ if : ${{ github.repository == 'primer/behaviors' }}
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ ISSUE_URL : ${{ github.event.issue.html_url }}
12
+ PROJECT_ID : 4503
13
+ steps :
14
+ - id : get-primer-access-token
15
+ uses : actions/create-github-app-token@v1
16
+ with :
17
+ app-id : ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID }}
18
+ private-key : ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY }}
19
+ - name : Add labels to issue
20
+ run : |
21
+ gh issue edit $ISSUE_URL --add-label 'rails,react'
22
+ env :
23
+ GH_TOKEN : ${{ steps.get-primer-access-token.outputs.token }}
24
+ - id : get-github-access-token
25
+ uses : actions/create-github-app-token@v1
26
+ with :
27
+ app-id : ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID_FOR_GITHUB }}
28
+ private-key : ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY_FOR_GITHUB }}
29
+ owner : github
30
+ - name : Add issue to project
31
+ run : gh project item-add $PROJECT_ID --url $ISSUE_URL --owner github
32
+ env :
33
+ GH_TOKEN : ${{ steps.get-github-access-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments