|
9 | 9 | runs-on: ubuntu-latest
|
10 | 10 | steps:
|
11 | 11 | - uses: actions/checkout@master
|
12 |
| - - name: Assign Rob |
13 |
| - uses: actions/github@v1.0.0 |
14 |
| - env: |
15 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
16 |
| - with: |
17 |
| - args: assign @robrbecker |
18 | 12 | - name: Apply triage label
|
19 |
| - uses: actions/github@v1.0.0 |
20 |
| - env: |
21 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 13 | + uses: actions/github-script@v3 |
22 | 14 | with:
|
23 |
| - args: label triage |
| 15 | + github-token: ${{secrets.GITHUB_TOKEN}} |
| 16 | + script: | |
| 17 | + github.issues.addLabels({ |
| 18 | + issue_number: context.issue.number, |
| 19 | + owner: context.repo.owner, |
| 20 | + repo: context.repo.repo, |
| 21 | + labels: ['triage'] |
| 22 | + }) |
24 | 23 | - name: Comment On New Issues
|
25 |
| - uses: actions/github@v1.0.0 |
26 |
| - env: |
27 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + uses: actions/github-script@v3 |
28 | 25 | with:
|
29 |
| - args: comment "Thanks for submitting an issue! @robrbecker will take a look soon!" |
| 26 | + github-token: ${{secrets.GITHUB_TOKEN}} |
| 27 | + script: | |
| 28 | + github.issues.createComment({ |
| 29 | + issue_number: context.issue.number, |
| 30 | + owner: context.repo.owner, |
| 31 | + repo: context.repo.repo, |
| 32 | + body: '👋 Thanks for reporting! @robrbecker will take a look.' |
| 33 | + }) |
0 commit comments